Commit Graph
181 Commits
Author SHA1 Message Date
Jacques Le Roux daa2c243a9 "Applied fix from trunk for revision: 1859877"
------------------------------------------------------------------------
r1859877 | jleroux | 2019-05-24 15:47:08 +0200 (ven. 24 mai 2019) | 10 lignes

Fixed: Services allow arbitrary HTML for parameters with allow-html set to "safe"
(OFBIZ-5254)

This was reopened after discussion at 
https://markmail.org/message/jnaitmwahjcjmdn5

This is a new solution which follows the work done with OFBIZ-6669 and OFBIZ-10187
Roughly said, it uses org.owasp.html.PolicyFactory and org.owasp.html.Sanitizers

Thanks: Christoph Neuroth for report
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1859878 13f79535-47bb-0310-9956-ffa450edef68
2019-05-24 13:51:26 +00:00
Jacopo Cappellato cfc477c22f Applied fix from trunk for revision: 1858539
===

Improved: Replaced permission-service with required-permissions in order to 
perform permission checks in a way that is more consistent with the screen 
permissions set in the ecommerce blog/forum screens.

Fixes CVE-2019-10073

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1858540 13f79535-47bb-0310-9956-ffa450edef68
2019-05-02 13:42:19 +00:00
Jacopo Cappellato e7b4322ed0 Applied fix from trunk for revision: 1858432
===

[Fixed]: Added permission checks to three blog/forum services; improved the 
configuration for the "add article forum" form (the source tab is not needed in 
the ecommerce application).

Fixes CVE-2019-10073

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1858436 13f79535-47bb-0310-9956-ffa450edef68
2019-04-30 14:48:30 +00:00
Suraj Khurana f79f6fd797 Fixed: Forum Group update not working, throwing an error.
(OFBIZ-10744)
It was due to missing default entity name in service definition while using entity-auto.
Thanks Ayushi Rathod for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849740 13f79535-47bb-0310-9956-ffa450edef68
2018-12-26 07:55:09 +00:00
Deepak Dixit 55d6c0011d Improved: Convert updateContent and removeContent service to entity-auto
(OFBIZ-10625)
Thanks Aditya Sharma for reporting the issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849025 13f79535-47bb-0310-9956-ffa450edef68
2018-12-16 12:29:49 +00:00
Gil Portenseigne 9fbb3765e4 Implemented : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

This commit introduce a new way to manage file transfer in OFBiz.
Inspired by mailing communication event management, a new communicationEventTypeId is created ('FILE_TRANSFER_COMM').

Such commEvent with classics : partyIdFrom/partyIdTo/contactMechIdTo/entryDate etc. are analysed by a job (like sendEmailDated), to send associated contents to a configured FTP/SFTP/FTPS server. If failure happens, it is catched and stored in communicationEvent, waiting for a new try.

For this purpose :

A new contactMechTypeId is introduced (FtpAddress), with its corresponding table. This contactMech store needed information for basic user/password authentication (server url and protocol, port, username, password, etc.)
A new service sendFileTransferDated that will look for pending file transfer and call following service.
A new service sendCommEventAsFtp that take a selected commEvent, check its structure and manage its status after trying the associated content file transfers.
A new service sendContentToFtp, that take a content and transfer it to a given FtpAddress.
A seca createCommEventFromFtpTransfer on sendContentToFtp to manage plural content file transfer, creating children communicationEvent to follow each content transfer separately (only for several content transfers).
A new Interface FtpClientInterface, with the 3 implementations of FTP, FTPS (To Implement), SFTP clients to manage Ftp connection and transfer.
A new property file to enable and manage redirection for testing purpose.

With this implementation, creating a communicationEvent, with a FtpAddress contactMechIdTo, and sendFileTransferDated job planned, the file is transfered to the ftp : communication event status set to COM_COMPLETE, if error occured the communication event status is set to COM_BOUNCED with error message on communicationEvent note.

Thanks Rishi for your feedbacks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831867 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 15:53:35 +00:00
Jacques Le Roux f1676f1aec Improved: Migrate createContent service from Minilang to Entity Auto
(OFBIZ-10401)

Like Suraj did for createRequirement, this uses 
  <override name="statusId" default-value="CTNT_IN_PROGRESS"/>
to replace the only thing specific in the Minilang implementation

Improves 2 related French labels


Thanks: Deepak for discussion and Suraj for initial idea

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831511 13f79535-47bb-0310-9956-ffa450edef68
2018-05-13 10:09:06 +00:00
Deepak Dixit 645e6e1c47 Fixed: Fix typo 'paramters' => 'parameters'
(OFBIZ-10394)
Thanks Mathieu Lirzin for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1830936 13f79535-47bb-0310-9956-ffa450edef68
2018-05-04 19:34:07 +00:00
Deepak Dixit 616f180e6e Fixed: service:updateTextContent fails (OFBIZ-10112)
Thanks Wai for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819120 13f79535-47bb-0310-9956-ffa450edef68
2017-12-23 08:40:56 +00:00
Deepak Dixit 87b230b5b5 Fixed: service:createContent fails to create proper entity:ContentAssoc entry (OFBIZ-10098)
Thanks Wai for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818693 13f79535-47bb-0310-9956-ffa450edef68
2017-12-19 17:55:49 +00:00
Deepak Dixit 80ae23f5ef Fixed xml validation error found while console read
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818244 13f79535-47bb-0310-9956-ffa450edef68
2017-12-15 08:46:55 +00:00
Jacques Le Roux 57bdcb3db3 Improved: Remove unused service checkContentAssocIds and its usage
(OFBIZ-9999)

All cases were not handled if contentAssocTypeId is also passed while creating 
a content.

Thanks: Suraj Khurana

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816637 13f79535-47bb-0310-9956-ffa450edef68
2017-11-29 15:38:57 +00:00
Akash Jain f48f17b96b Improved: Remove unused service checkContentAssocIds and its usage, applied patch from jira issue (OFBIZ-9999)
Thanks, Suraj Khurana for reporting the issue and Sonal Patwari for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816266 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 08:21:21 +00:00
Arun Patidar 8a2ec7ddd4 IMPROVED: Replace ContentAssoc related CRUD services with entity-auto. (OFBIZ-9907)
Thanks Mr. Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813623 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:56:17 +00:00
Arun Patidar 98d5d599f9 Fixed typo of entity name and invoke attribute in service defination.(OFBIZ-8834)
Thanks Devanshu for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802883 13f79535-47bb-0310-9956-ffa450edef68
2017-07-25 05:57:23 +00:00
Arun Patidar e8b73fbc18 Improvements in CommEventContentAssoc entity definition and services. (OFBIZ-8843)
Applied improved patch. thanks Devanshu for  your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802772 13f79535-47bb-0310-9956-ffa450edef68
2017-07-24 09:24:15 +00:00
Ashish Vijaywargiya 1ce72c550d Improved: OFBIZ-7471: Improve all the service level error messages for missing required field for content component.(OFBIZ-8713)
Thanks Jagpreet and Shikha for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802667 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 09:59:31 +00:00
Arun Patidar 1623fadf00 Improvements in CommEventContentAssoc entity definition and services. (OFBIZ-8843)
Thanks Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802656 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 05:43:28 +00:00
Jacques Le Roux 371ebe2913 Fixed: Create new blog article entry error.
(OFBIZ-9373)

After using plain text for the field [articleData], when I post the form, 
I get the following error message:
 The following required parameter is missing: [IN] 
 [createElectronicText.dataResourceId]]
 
jleroux: it was a bug introduced with r1765319 while refactoring to use 
entity-auto

Thanks: Daniel Coric who find the reason and Yao who initially reported and 
helped to find a solution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799088 13f79535-47bb-0310-9956-ffa450edef68
2017-06-18 14:32:36 +00:00
Jacques Le Roux 25e965cb2e Implemented: New implementation of Birt. Easier user possibility of
report creation
(OFBIZ-6919)

This are a non functional changes not yet used OOTB. 
They are only intended to ease the sync between the svn trunk repo and 
the github branch (using a fork)

So still a WIP...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1777586 13f79535-47bb-0310-9956-ffa450edef68
2017-01-06 10:54:20 +00:00
Deepak Dixit 333d8e65ce Fixed: Set required parameter as option false at service definition level.
(OFBIZ-8358)
Thanks Avnindra Sharma and Pawan Verma for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768256 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 17:33:42 +00:00
Deepak Dixit 3eca8d6aad Improved: Added generic permission service for following
- facility
- marketting
- return
- entitysync
Also moved  the permission check from implementation level to service defination level

(OFBIZ-8673)(OFBIZ-8673)(OFBIZ-8674)(OFBIZ-8739)(OFBIZ-8823)(OFBIZ-8825)(OFBIZ-8827)(OFBIZ-8850)(OFBIZ-8876)(OFBIZ-8875)(OFBIZ-8824)(OFBIZ-8826)(OFBIZ-8851)

Thanks Nameet Jain for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768188 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:10:57 +00:00
Arun Patidar 3584666dbc Implemented: Added CRUD services for ProdConfItemContentType, ProductAssocType, UserPrefGroupType, WebPreferenceType, WorkEffortAssocAttribute, WorkEffortAssocType, WorkEffortAssocTypeAttr, WorkEffortBilling, WorkEffortContentType, WorkEffortGoodStandardType, WorkEffortPurposeType, WorkEffortType, WorkEffortTypeAttr, WorkReqFulfType, UomType, UomGroup, ProductPricePurpose, ProductPriceType, ProductStoreGroupRole and ProductStoreGroupRollup entities.
(OFBIZ-8729)(OFBIZ-8730)(OFBIZ-8792)(OFBIZ-8793)(OFBIZ-8794)(OFBIZ-8795)(OFBIZ-8796)(OFBIZ-8797)(OFBIZ-8798)(OFBIZ-8799)(OFBIZ-8800)(OFBIZ-8801)(OFBIZ-8802)(OFBIZ-8803)(OFBIZ-8788)(OFBIZ-8789)(OFBIZ-8767)
(OFBIZ-8768)(OFBIZ-8769)(OFBIZ-8770)

Thanks: Chinmay Patidar, Amit Gadaley and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767965 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 20:30:52 +00:00
Jacques Le Roux d2aa6aa9ee Fixed: Updating Party Content Image does not work
(OFBIZ-8458) (OFBIZ-8347)

Actually it was a regression introduced by r1765499 for a ticket which did not
exist.

This also fixes OFBIZ-8347 for a typo (UPDATE permission instead of DELETE)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766183 13f79535-47bb-0310-9956-ffa450edef68
2016-10-22 11:19:28 +00:00
Deepak Dixit 5b853bae42 Improved: Converted some CRUD services from simple to entity-auto.
(OFBIZ-8384)(OFBIZ-8388)(OFBIZ-8295)(OFBIZ-8294)(OFBIZ-8389)(OFBIZ-8390)(OFBIZ-8391)(OFBIZ-8392)(OFBIZ-8393)(OFBIZ-8407)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765500 13f79535-47bb-0310-9956-ffa450edef68
2016-10-18 19:33:49 +00:00
Deepak Dixit 510e3b6fdd Improved: Converted some DataResource related CRUD services from simple to entity-auto.
(OFBIZ-8346)(OFBIZ-8347)(OFBIZ-8349)(OFBIZ-8350)(OFBIZ-8351)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765499 13f79535-47bb-0310-9956-ffa450edef68
2016-10-18 19:21:09 +00:00
Deepak Dixit 982d1be463 Improved: Convert ElectronicText entity related CRUD services from simple to entity-auto.
(OFBIZ-8371)(OFBIZ-8372)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765319 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:56:27 +00:00
Deepak Dixit 1a201bd974 Improved: Convert DataResourceTypeAttr entity related CRUD services from simple to entity-auto.
(OFBIZ-8352)(OFBIZ-8353)(OFBIZ-8354)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765317 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:41:26 +00:00
Deepak Dixit 983a0efa1d Improved: Convert CharacterSet entity related CRUD services from simple to entity-auto.
(OFBIZ-8355)(OFBIZ-8356)(OFBIZ-8357)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765315 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:35:40 +00:00
Deepak Dixit fcbe0815f2 Improved: Convert FileExtension entity related CRUD services from simple to entity-auto.
(OFBIZ-8359)(OFBIZ-8360)(OFBIZ-8361)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765314 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:31:02 +00:00
Deepak Dixit fcc47f237a Improved: Convert MetaDataPredicate entity related CRUD services from simple to entity-auto.
(OFBIZ-8362)(OFBIZ-8363)(OFBIZ-8364)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765313 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:24:01 +00:00
Deepak Dixit 023e0d77b0 Improved: Convert MimeTypeHtmlTemplate entity related CRUD services from simple to entity-auto.
(OFBIZ-8368)(OFBIZ-8369)(OFBIZ-8370)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765308 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:17:37 +00:00
Deepak Dixit a0db7bb553 Improved: Convert MimeType entity related CRUD services from simple to entity-auto.
(OFBIZ-8365)(OFBIZ-8366)(OFBIZ-8367)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765305 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:10:34 +00:00
Jacques Le Roux 4dde5f83d8 Fixes: Error : Column 'DATA_CATEGORY_ID' cannot accept a NULL value
(OFBIZ-8282)

Steps to regenerate :
1) Login into webtools component.
2) Run "createDataCategory" service without passing any parameter.
3) Following error message occured : (Column 'DATA_CATEGORY_ID' cannot accept 
a NULL value) PFA attached screenshot.

In this patch I have changed service engine to "entity-auto" and removed 
service implementation.

Thanks: Pawan Verma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762996 13f79535-47bb-0310-9956-ffa450edef68
2016-10-01 10:12:55 +00:00
Jacques Le Roux d4b63838eb Fixes: Unable to run service findContentParents from webtools
(OFBIZ-8322)

Steps to regenerate
1. Login into webtools application
2. Try to run service findContentParents after passing parameters
3. Cannot find service error occurs.


Thanks: Tanmay Muley for the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762331 13f79535-47bb-0310-9956-ffa450edef68
2016-09-26 12:23:26 +00:00
Arun Patidar 693a3d3f7b Implemented: Added CRUD services for DocumentType, DocumentTypeAttr and EmplPositionTypeClass entity.
(OFBIZ-8164) (OFBIZ-8165) (OFBIZ-8166)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761199 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 11:35:30 +00:00
Arun Patidar 411fbfb43c Implemented: Added CRUD services for DocumentAttribute, Document and DesiredFeature entity.
(OFBIZ-8161) (OFBIZ-8162) (OFBIZ-8163)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761193 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 11:03:20 +00:00
Arun Patidar d8562e4821 Implemented: Added CRUD services for Deduction, DataTemplateType and CustomMethodType entity.
(OFBIZ-8035) (OFBIZ-8045)(OFBIZ-8046)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761136 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 07:17:36 +00:00
Arun Patidar a41015ae20 Applied patch from jira issue - OFBIZ-8022 - Added CRUD services for CommContentAssocType entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759530 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 01:14:39 +00:00
Jacopo Cappellato 4eb7b2bebb Completed the fix for securing the management of blog entries by preventing tags to be added to the content of an entry when it is updated.
[CVE-2016-6800] Apache OFBiz blog stored XSS vulnerability
The default configuration of the OFBiz framework offers a blog
functionality. Different users are able to operate blogs which are
related to specific parties. In the form field for the creation of new
blog articles the user input of the summary field as well as the article
field is not properly sanitized. It is possible to inject arbitrary
JavaScript code in these form fields. This code gets executed from the
browser of every user who is visiting this article.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759218 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 09:16:57 +00:00
Jacopo Cappellato f7e3f2a1f4 In rev. 1536324 Jacques Le Roux changed the value of the attribute allow-html from "safe" to "any" and deprecated the usage of the "safe" value.
However the "safe" behavior is necessary to allow these fields to accept tags in a safe way: for this reason that commit should be reverted and a different solution should be implemented.
In the meantime, this commit changes the allow-html values for the blog entries to "none". 

[CVE-2016-6800] Apache OFBiz blog stored XSS vulnerability
The default configuration of the OFBiz framework offers a blog
functionality. Different users are able to operate blogs which are
related to specific parties. In the form field for the creation of new
blog articles the user input of the summary field as well as the article
field is not properly sanitized. It is possible to inject arbitrary
JavaScript code in these form fields. This code gets executed from the
browser of every user who is visiting this article.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759065 13f79535-47bb-0310-9956-ffa450edef68
2016-09-03 09:49:12 +00:00
Mridul Pathak 45abf6d85e [OFBIZ-7529] Part 4 (final) of "Delete stale java files from applications and framework". Deleted following file/directories and their references. Had to do some adjustments in ComDocServices.java as Open Office specific "convertDocumentByteBuffer" service was being referenced there.
applications/content/src/main/java/org/apache/ofbiz/content/openoffice
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeByteArrayInputStream.java
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeByteArrayOutputStream.java
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeServices.java
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeWorker.java

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754644 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 09:42:41 +00:00
Ashish Vijaywargiya 903b57d898 Applied patch from jira issue - OFBIZ-7612 - Party content in party component is not getting updated.
Thanks Ravi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752952 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 13:04:34 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Pranay Pandey e314e8a5ee [OFBIZ-7519] Updated optionality to required for attributes in entity auto services where pk fields were mentioned optional. It helps service engine to validate IN attributes and return error for missing ones.
Cases considered for this update are:
 1. One PK: Takes new sequence if PK not passed.
 2. Two PK: Both PK should be mandatory except the case of secondary primary key (like agreementItemSeqId) where next subsequence is generated.
 3. More than two PK's, all PK's should be mandatory except the fromDate.
 Thanks Amardeep Singh Jhajj for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749532 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 14:37:30 +00:00
Divesh Dutta 219db8600d [OFBIZ-7374] Added capability to expire or remove the content for a party. Thanks Ankush Upadhyay for your patch and thanks Swapnil Shah for suggeting this improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749091 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 20:29:51 +00:00
Jacques Le Roux 4e1d52c9a5 A modified patch from Amardeep Singh Jhajj for "Error on deleting Content Type Attribute" https://issues.apache.org/jira/browse/OFBIZ-7369
Please find attached screenshot.

Steps to regenerate:

1. Go to https://localhost:8443/content/control/EditContentTypeAttr
2. Add ContentTypeAttribute.
3. Now try to delete it from list, error occurs.

The reason of error was missing default-entity-name in service entity-auto.

jleroux: while trying I noticed that if you did not fill the attribute name you got a non readable error message, I forced the attribute name to optional=false

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748854 13f79535-47bb-0310-9956-ffa450edef68
2016-06-17 13:16:39 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Deepak Dixit 9f279ed58b (OFBIZ-7043) Remove commented code labeled as "TO BE REMOVED" since 2008.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742503 13f79535-47bb-0310-9956-ffa450edef68
2016-05-06 06:48:38 +00:00
Jacques Le Roux 5d65e6e84b A modified patch from James Young based on a an original patch from Christoph Neuroth for "Improved CMS tree: more functionality and faster for large trees" - https://issues.apache.org/jira/browse/OFBIZ-4502
We here at [Lusini|http://www.lusini.de/] did several improvements to the CMS backend to make it more usable for large CMS installations. 

* Improved performance of CMS tree
** loading nodes dynamically using AJAX
*** Created ContentJsonEvents to handle the JSON calls
** use OFBiz entity caches
** removed duplicate execution of WebSitePublishPoint.groovy
*** removed reference from controller.xml as it is not used anywhere

* Moving nodes in CMS tree possible now using drag'n'drop
** ContentJsonEvents returns updated node attributes
** Adjusted WebSiteCMSNav.ftl to update the moved node with the data from the ajax request
** Needed to replace the jstree jQuery plugin by the current version available on the jstree website

* Made nodes deleteable
** added remove to context menu
** We did not want to delete the WebSitePathAlias entities right away, so we added a fromDate and thruDate to it. 
*** extended WebSitePathAlias entity definition: added fromDate and thruDate
*** now checking for date range everywhere when accessing path aliases
*** This also allows users to publish or unpublish contents under a certain URL automatically at some time in the future. 
** created event to "delete" a node
*** thruDate of all assocs pointing to this node are set to current timestamp
*** thruDate of WebSitePathAliases pointing to this content or any contents below are set to current timestamp
*** this way nothing is actually removed from the DB and a "undo" would be possible if necessary
** extracted context menu to variable so it can be reused for all trees

* fixed missing references to uiLabels in CMS menu bar

* Activated cookie plugin so the selected node is remembered



jleroux: I made few changes
* Use of UtilGenerics.cast() in new ContentJsonEvents.java rather than @SuppressWarnings("unchecked")
* Removal of the commented out block "Lusini: disable RTE". I see no reasons why we would not use elRTE. Notably in relation with adding errors where it's currently used in trunk demo
* I changed the line 
    var unmovableSubtrees = [false, "categoryChildren_LusiniBrowseRoot", "homeContentsRoot", "merchantContentsRoot"];
    We have no such subtrees OOTB but it's good to keep the idea, I just renamed categoryChildren_LusiniBrowseRoot to categoryChildren and put an explaining comment
* I have roughly added the labels ContentWebSiteErrors, ContentWebSiteAddNewErrors and ContentWebSiteAddError, though I have a doubt about how this works. At least it's different than on trunk demo where it seems to works better (despite having uncommented out elRTE in this commit). ALso I don't remember how to add a menu worked (if it worked).
* I checked the version of jstree we use is the same than in the original patch from Christoph Neuroth. BTW at r1559769 I tried to update jstree  to jstree 3 but gave up.
* I removed the jquery.cookie.js implemnentation and replaced link in WebSiteCMSNav.ftl. I already updted to jquery.cookie-1.4.0 at r1559769

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738588 13f79535-47bb-0310-9956-ffa450edef68
2016-04-11 14:17:30 +00:00