Commit Graph
27737 Commits
Author SHA1 Message Date
Arun Patidar 1542b3e13a Applied patch for "Added CRUD services for CustRequestCategory entity" from issue [OFBIZ-8095]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759883 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:32:53 +00:00
Arun Patidar e4c096eb32 Applied patch for "Added CRUD services for CountryTeleCode entity" from issue [OFBIZ-8094]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759882 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:29:27 +00:00
Arun Patidar 053c3fe492 Applied patch for "Added CRUD services for CountryCode entity" from issue [OFBIZ-8093]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759881 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:25:16 +00:00
Arun Patidar 7723efa970 Applied patch for "Added CRUD services for CountryCapital entity" from issue [OFBIZ-8092]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759879 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:19:04 +00:00
Arun Patidar 189efaa723 Applied patch for "Added CRUD services for CostComponentTypeAttr entity" from issue [OFBIZ-8086]
Thanks Rohit Koushal and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759878 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:01:32 +00:00
Arun Patidar abad9a5784 Applied patch for "Added CRUD services for ContainerType entity" from issue [OFBIZ-8084]
Thanks Rohit Koushal and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759877 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 17:58:30 +00:00
Arun Patidar e706f93a87 Applied patch for "Added CRUD services for ContainerType entity" from issue [OFBIZ-8083]
Thanks Rohit Koushal and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759876 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 17:53:33 +00:00
Arun Patidar 11ecd0c46d Applied patch for "Added CRUD services for ContainerType entity" [OFBIZ-8082]
Thanks Rohit Koushal and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759875 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 17:50:14 +00:00
Nicolas Malin 830cc34a54 add new test testCreatePartyGroup on party component, thanks to Pawan Verma for this adding by issue OFBIZ-8144
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759706 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 21:17:13 +00:00
Jacques Le Roux 6d51841718 A patch from Pierre Smits for "Menu Item in FacilityMenus has wrong permission" OFBIZ-8172
The menu-item ShipmentGatewayConfig has a permission condition from accounting (PAYPROC), but should have a facility related permission.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759678 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 19:43:06 +00:00
Jacopo Cappellato 9e387ffe93 Removed several jar files and a script that didn't seem to be used and were not mentioned in our LICENSE files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759593 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 11:55:19 +00:00
Jacopo Cappellato 399d3ba463 Removed the jars from "eBay SDK for Java", that are licensed under CDDL which is a license that is not fully compatible with ASL2.0, and disabled the component.
Added instructions about how to run it to the component's README file.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759583 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 10:52:19 +00:00
Jacopo Cappellato 43211780f8 Minor improvements, with no functional changes: made fields and methods private, moved variables into inner scope.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759578 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 10:32:47 +00:00
Jacques Le Roux 88a9927834 After an exchange with Jacopo on dev ML, removes the need for the webtools.properties file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759573 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 09:50:54 +00:00
Jacques Le Roux 0ee80218e2 Fixes a vulnerability in the form widget sort-order element
By manipulating the UL parameter externalLoginKey it is possible to pass  valid Freemarker directives to the Template Engine that are reflected on the webpage
With Freemarker it is possible to create and use Java classes that implement the TemplateModel, including the freemarker.template.utility.Execute class
An attacker can pass arbitary commands via this class, which are executed on the server. 

This fixes it using 2 redundant mechanisms (better safe than sorry):
1) linkUrl = URLEncoder.encode(linkUrl, "UTF-8");
2) sr.append("\" linkUrl=r\"");

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759555 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 07:42:45 +00:00
Arun Patidar 29a8324347 Applied patch from jira issue - OFBIZ-8081 - Added CRUD services for Container entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759532 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 01:18:09 +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
Arun Patidar 250d3f0c41 Applied patch from jira issue - OFBIZ-8018 - Added CRUD services for CarrierShipmentBoxType entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759529 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 01:07:37 +00:00
Arun Patidar fddabfbdbd Applied patch from jira issue - OFBIZ-8006 - Added CRUD services for BudgetScenarioRule entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759528 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 01:01:39 +00:00
Arun Patidar 11124912c0 Applied patch from jira issue - OFBIZ-7891 - Added CRUD services for BudgetRevisionImpact entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759527 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:55:35 +00:00
Arun Patidar 97979f788f Applied patch from jira issue - OFBIZ-7870 - Added CRUD services for AgreementTypeAttr entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759526 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:51:59 +00:00
Arun Patidar 7679921b17 Applied patch from jira issue - OFBIZ-7853 - Added CRUD services for AcctgTransType entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759524 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:47:47 +00:00
Arun Patidar 7872d23119 Applied patch from jira issue - OFBIZ-7873 - Added CRUD services for BillingAccountTermAttr entity . Thanks Chinmay Patidar and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759521 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:42:08 +00:00
Arun Patidar a0aafa9e69 Applied patch from jira issue - OFBIZ-7869 - Added CRUD services for AgreementTermAttribute entity . Thanks Chinmay Patidar and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759520 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:37:34 +00:00
Arun Patidar 0109d9c079 Applied patch from OFBIZ-7847. Added CRUD services for entity AcctgTransEntryType. Thanks Chinmay Patidar and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759519 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:28:49 +00:00
Jacques Le Roux c750a95810 Fixes "The "Only Not Used Labels" option of the Label Manager is broken" OFBIZ-8114
Simply replaces the parenthesis in ServiceUtil.getResource() by 2 spaces when parsing files with getLabelsFromJavaFiles() and getLabelsFromFtlFiles(). 
ServiceUtil.getResource() breaks the parsing
Note: no occurrences of ServiceUtil.getResource() yet in FTL files, and only 16 in Java files.

Also replaces "script" by "minilang" in getLabelsFromSimpleMethodFiles()

This adds a getResourceRegex  in a new webtools.properties files. This property
* Allow to remove this string from files when parsing with Label Manager, else it breaks 
* Moreover the string can't be in the LabelReferences.java file, to avoid side effects

I have also increased the transaction-timeout of the screen "SearchLabels" to 600. 
Because when using the "Only Not Used Labels" option the 1st pass can be long. 10 min should plenty enough, even on old machines. Not blocking anyway, just a bad stack trace in log
I'm sorry you will see a lot of false changes because the LabelManagerScreens.xml had no svn:properties at all, here they are now.


We have 5237 "Not Used Labels". I wondered if they were all real, I just checked some an indeed, they were not used. 
But there are also a huge bunch of *.description.* labels which certainly make sense. I'll remove them from the "Only Not Used Labels" result in another Jira I'll create

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759457 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 16:38:14 +00:00
Shi Jinghai 2b85678b7f Clean OFBizSolrContextFilter.java to follow ContextFilter.java's changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759401 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 10:05:59 +00:00
Jacques Le Roux eb1ddfced8 A patch from Fumiyoshi To for "No States/Provinces Exist when Request a New Account" https://issues.apache.org/jira/browse/OFBIZ-8136
When I choose Japan in new customer screen, no states/province exists occurred, and I cannot register as a customer through ecommerce.
It is because of no data exist for Japan in CountryAddressFormat[GeoData.xml].

jleroux: I'm not sure it's really a bug, but anyway committing this is a good thing


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759378 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 08:03:12 +00:00
Jacopo Cappellato 8150cf2e2d Throw an exception rather than failing with a NPE if delegatorInfo is null: this can happen for example when the entityconfig.xml file is missing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759372 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 07:18:01 +00:00
Jacopo Cappellato 4cbedfc518 Improved error message logged by DelegatorFactoryImpl.getInstance(...) when a delegator can't be created; added a TODO comment to remind that the code should be refactored to throw the exception instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759371 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 07:15:21 +00:00
Jacopo Cappellato 8fdaa37885 Fixed wrong module name in the DelegatorFactory class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759370 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 07:12:28 +00:00
Jacopo Cappellato 6b18c49e6c Removed unused container for Geronimo TX.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759369 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 07:10:57 +00:00
Jacopo Cappellato 9778235247 OFBIZ-8142 Additional cleanups related to OFBiz servlet filters
* introduced a constant for the "control" mount point
* moved public fields and methods from the ContentUrlFilter to the OfbizContentAltUrlTransforms and made them private (since they are only used by this class)
* no more need for the UrlServletHelper to extend the ContextFilter



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759368 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 07:09:03 +00:00
Divesh Dutta 3992656604 [OFBIZ-7394, OFBIZ-7403] Allow user to select multiple options in Purchase by Product and Purchases by Payment Method report. Thanks Swapnil Shah for creating the issue and Mohammad Kathawala for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759343 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 18:51:28 +00:00
Divesh Dutta e12867c6a0 [OFBIZ-7440] Not donation amount over sales order will not get pro-rated based on shipped quantity in case of partial shipments. Thanks Swapnil Shah for reoprting the issue and Ankush Upadhyay for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759339 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 18:29:50 +00:00
Divesh Dutta fb7d5ea2b6 [OFBIZ-7533] Now user will be able to set new lotId to existing inventory item. Thanks Swapnil Shah for reporting the issue and Ankush Upadhyay for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759336 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 17:41:08 +00:00
Divesh Dutta ee0d3faae8 [OFBIZ-7721] Fixed: auto-completer does not work to search Data Resource Id and owner content id. Thanks Ankush Upadhyay for reporting and fixing the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759333 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 17:05:43 +00:00
Jacopo Cappellato 948dbc646c OFBIZ-8142 A series of cleanups related to OFBiz servlet filters:
* removed an unused filter (UrlRegexpContextFilter)
* moved a series of methods from ContextFilter to WebAppUtil, where they make more sense; changed one of them to be a static method
* made private some methods of ContextFilter and WebAppUtil because they were not used outside of their classes



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759332 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 16:56:04 +00:00
Divesh Dutta 08db5125a1 [OFBIZ-7724] Fixed: System allows to change status from cancel to empty for return and allow-empty flag of form widget does not honour to add or not empty option field in drop-down. Thanks Ankush for reproting and fixing this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759331 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 16:39:15 +00:00
Jacques Le Roux 049f9c58ac A slightly modified Taher's patch for "Load the OWASP dependency checker Gradle plugin efficiently" I reported at OFBIZ-7930
Using OWASP-DC with Gradle was impossible w/o the corresponding plugin. Unfortunately using the suggested way at https://plugins.gradle.org/plugin/org.owasp.dependencycheck loads a lot of dependencies which are only needed by OWASP-DC. So Taher wrote a specific solution to avoid downloading useless libs to a normal use of OFBiz, there it is.


jleroux: I have simply formatted the "if(" to "if ("

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759250 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 12:24:21 +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
Nicolas Malin 60d4b2635e Add crud entity-auto service for AgreementType, thanks to Rishi Solanki and Pratik Kulshreshth for this patch trow OFBIZ-7871.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759181 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 17:58:57 +00:00
Divesh Dutta 6aac00975e [OFBIZ-7475] Provided the option to update Check Payment Method from Party profile page. Introduced new service updateCheckAccount. Thanks Jagpreet Kaur for the patch and Swapnil for creating the ticket.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759180 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 17:11:08 +00:00
Shi Jinghai 5981061dcf OFBIZ-8137 Entityname starts with schema name causes error in PostgreSQL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759155 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 08:57:44 +00:00
Ashish Vijaywargiya 4a63aaba7d Applied patch from jira issue - OFBIZ-8091 - Clean up commented out code in XML for Common component. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759152 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 07:37:15 +00:00
Ashish Vijaywargiya 6f013aea3e Applied patch from jira issue - OFBIZ-8070 - Clean up commented out code in Groovy for Content. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759151 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 07:32:47 +00:00
Ashish Vijaywargiya 6b3717e026 Applied patch from jira issue - OFBIZ-8071 - Clean up commented out code in Groovy for Manufacturing. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759150 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 06:56:50 +00:00
Ashish Vijaywargiya c1f693f38a Applied patch from jira issue - OFBIZ-8072 - Clean up commented out code in Groovy for Marketing. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759149 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 06:47:47 +00:00
Ashish Vijaywargiya 7effe002ce Applied patch from jira issue - OFBIZ-8073 - Clean up commented out code in Groovy for WorkEffort. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759148 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 06:44:37 +00:00
Ashish Vijaywargiya b15974a6f6 Applied patch from jira issue - OFBIZ-8074 - Clean up commented out code in Groovy for Order. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759147 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 06:41:20 +00:00