Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 74277595d3 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Oops this one was missing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742200 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:47:19 +00:00
Jacques Le Roux 57b7d64caf No functional change, moves the FindFixedAssetOptions form back to its original position
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742199 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:17:50 +00:00
Jacques Le Roux e5f4abf1a7 No functional change, removes a file committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742198 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:15:21 +00:00
Jacques Le Roux 6d5dd1c5ba Things got totally wrong with r1742196 which contained much more than expected.
This reverts things which should not have been committed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742197 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:03:11 +00:00
Jacques Le Roux 31ef1f9186 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Completes in screens the changes done in forms at r1741873. I then replaced few form lists by grids, where it was possible to do it with regexp.
Also complete StatsForms.xml to use only grids and "searchList" form in ecommerce ContentForms to NOT use grid (not called in screen)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742196 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 20:50:10 +00:00
Jacques Le Roux 5490605e30 Reverts useless changes introduced with r1742126 for INVALID "Bug when getting to webtools/control/FindUtilCache" - https://issues.apache.org/jira/browse/OFBIZ-7033
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742195 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 20:41:48 +00:00
Jacques Le Roux 90c726d018 Fixes "Bug when getting to webtools/control/FindUtilCache" - https://issues.apache.org/jira/browse/OFBIZ-7033
With OFBIZ-7029 I replaced some widget list forms by grids. I don't know why yet but there are some cases, like at webtools/control/FindUtilCache, where it crashes.

I mean I know why, but I don't know why yet it's not in all places. For instance accounting/control/ListFixedAssets has not this problem.

I'll later check what is the difference between both cases

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742126 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 15:25:48 +00:00
Jacques Le Roux b92b1c0f69 A patch from Pierre Smits for "Adding Uom descriptor for selection and display in invoice forms" https://issues.apache.org/jira/browse/OFBIZ-7032
Currently there is no Uom selector in the terms form. And the display field in the terms list form only shows the uomId.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742103 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 11:38:42 +00:00
Jacques Le Roux ea10b89ab9 A better fix, thanks to Deepak. I just used "null" instead of "void" which was weird to me (maybe a legacy from BSh)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742097 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 11:29:03 +00:00
Jacques Le Roux 780457fa86 A patch from Pierre Smits for "Add links to edit/delete a term, for instance from the list" https://issues.apache.org/jira/browse/OFBIZ-6866
This patch addresses the visibility of the 'add/edit' terms form. Additionally it reorders the sequence of the roles form and removes a wrong screenlet title.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742087 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 10:42:53 +00:00
Jacques Le Roux 44e7df3d7a Fixes an issue found by chance. This was changed from bsh to groovy by r1613432 but does not work. I tried many variants but none works, all return
groovy.lang.MissingPropertyException: No such property: payment for class: script....
So back to origin :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742018 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 18:12:08 +00:00
Jacques Le Roux e586f71289 A patch from Ingo Wolfmayr for "Agreement Search List requires partyIdFrom/partyIdTo or fails" - https://issues.apache.org/jira/browse/OFBIZ-7030
How tot test!
Create a new agreement and fill the following fields:

    partyTo (for ex. DemoCustomer)
    Role Type Id From (for ex. Client)
    Role Type Id To(for ex. Bill-to customer)
    Agreement Type ID (for ex. Sales)
    Description: test

error: Error in form [ListAgreements] calling service with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getPartyNameForDate.partyId]java.lang.IllegalArgumentException: Error in form [ListAgreements] calling service with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getPartyNameForDate.partyId]

I create a generic agreement (from company to all customers with no specific agreements) - I could not access it after creation.

This more a workaround than a fix but it works and is better than an error message. Missing fields will be set to empty field. Service will be called and return nothing.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741960 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 11:02:36 +00:00
Jacques Le Roux 8baab2a5bf Updates dependency-check-report.html after OFBIZ-7026 (Hadoop libs vulnerability)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741956 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 10:43:45 +00:00
Shi Jinghai 509b4a3e5c OFBIZ-7026 Remove duplicated jars under solr component
Upgrade hadoop jars from 2.6.0 to 2.7.2 to avoid https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-1776.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741942 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 09:18:27 +00:00
Jacques Le Roux b3d642f68b Revert r1741925 It was not a correct solution:
======================================================================================================================================================
A patch from Ingo Wolfmayr for "Agreement Search List requires partyIdFrom/partyIdTo or fails" - https://issues.apache.org/jira/browse/OFBIZ-7030

How tot test!
Create a new agreement and fill the following fields:

    partyTo (for ex. DemoCustomer)
    Role Type Id From (for ex. Client)
    Role Type Id To(for ex. Bill-to customer)
    Agreement Type ID (for ex. Sales)
    Description: test

error: Error in form [ListAgreements] calling service with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getPartyNameForDate.partyId]java.lang.IllegalArgumentException: Error in form [ListAgreements] calling service with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getPartyNameForDate.partyId]

I create a generic agreement (from company to all customers with no specific agreements) - I could not access it after creation.

I added a not-empty check.
======================================================================================================================================================

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741930 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 08:24:48 +00:00
Jacques Le Roux 717278a82f A patch from Ingo Wolfmayr for "Agreement Search List requires partyIdFrom/partyIdTo or fails" - https://issues.apache.org/jira/browse/OFBIZ-7030
How tot test!
Create a new agreement and fill the following fields:

    partyTo (for ex. DemoCustomer)
    Role Type Id From (for ex. Client)
    Role Type Id To(for ex. Bill-to customer)
    Agreement Type ID (for ex. Sales)
    Description: test

error: Error in form [ListAgreements] calling service with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getPartyNameForDate.partyId]java.lang.IllegalArgumentException: Error in form [ListAgreements] calling service with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getPartyNameForDate.partyId]

I create a generic agreement (from company to all customers with no specific agreements) - I could not access it after creation.

I added a not-empty check.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741925 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 07:35:38 +00:00
Deepak Dixit c2f0e1ea2f Removed some unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741923 13f79535-47bb-0310-9956-ffa450edef68
2016-05-02 05:15:55 +00:00
Jacques Le Roux a57f9779b5 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Replaces few form lists by grids, where it was possible to do it with regexp. For a reason I still don't understand I could not do it for all...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741873 13f79535-47bb-0310-9956-ffa450edef68
2016-05-01 17:36:52 +00:00
Jacques Le Roux 2a39f125f3 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
This 
Updates the XSD documentation
Removes the list type when the grid element is used

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741866 13f79535-47bb-0310-9956-ffa450edef68
2016-05-01 14:45:46 +00:00
Jacques Le Roux 97b11d893e An enhanced patch from Christian Carlow for "Add ability to change Routing statuses" - https://issues.apache.org/jira/browse/OFBIZ-6307
Only ROU_ACTIVE statusItem exists for statusTypeId ROUTING_STATUS.  Adding another such as ROU_INACTIVE would allow for more control over routings.  Doing so entails adding the statusId to the find and edit screens.
ROU_INACTIVE was add as a StatusItem and currentStatusId was added to the routing find form as a multi-drop down

jleroux: I added use of common/webcommon/includes/setMultipleSelectJs.ftl and French labels

Oops, just spotted that I applied the patch I attached to the issue, since then setMultipleSelectJs.ftl has moved! This fixes the previous commit

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741817 13f79535-47bb-0310-9956-ffa450edef68
2016-04-30 21:24:03 +00:00
Jacques Le Roux f5d8feac88 An enhanced patch from Christian Carlow for "Add ability to change Routing statuses" - https://issues.apache.org/jira/browse/OFBIZ-6307
Only ROU_ACTIVE statusItem exists for statusTypeId ROUTING_STATUS.  Adding another such as ROU_INACTIVE would allow for more control over routings.  Doing so entails adding the statusId to the find and edit screens.
ROU_INACTIVE was add as a StatusItem and currentStatusId was added to the routing find form as a multi-drop down

jleroux: I added use of common/webcommon/includes/setMultipleSelectJs.ftl and French labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741789 13f79535-47bb-0310-9956-ffa450edef68
2016-04-30 18:43:10 +00:00
Jacques Le Roux 9d6072b3d8 Changes for "Use SecureRandom instead of Random where appropriate, and randomUUID for externalKey" - https://issues.apache.org/jira/browse/OFBIZ-7028
Because using SecureRandom comes with a cost, I have identified the places where it's reasonable to keep the non secured Random (like tests, internal sequences, etc.).
Ant to use UUID.randomUUID to generate the external link id

Also, though there are no real proven vulnerabilities, I decided to backport as much as possible since it's now public.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741684 13f79535-47bb-0310-9956-ffa450edef68
2016-04-29 18:54:49 +00:00
Jacques Le Roux 4f243ac529 No functional changes, removes duplicate ";"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741674 13f79535-47bb-0310-9956-ffa450edef68
2016-04-29 17:36:31 +00:00
Taher A. Alkhateeb ebf0bd299d refactor Start.java as per guidelines in OFBIZ-6783
This specific commit achieves the following:

- remove private comments relating to the class to the JavaDoc location 
  at the top of the class
- relocate class fields to the top of the class as per Java conventions
- relocate the constructor with its singleton instance to the top of the
  class below the fields
- sort all the methods starting with main, followed by public, default 
  and private
- add JavaDoc to main
- remove System.exit(99) from main and replace it with throw new 
  StartException(e); I did this because main declares that it throws a
  StartupException which it never does
- breakup the logic part to evaluate ofbiz command to a new method
  called evaluateOfbizCommand(String[] args). I will replace this
  eventually with apache commons-cli
- make startStartLoaders private, since it is not called outside Start.java


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741624 13f79535-47bb-0310-9956-ffa450edef68
2016-04-29 12:50:57 +00:00
Wei Zhang 3fefdb2617 OFBIZ-5732 Error in sendMailHiddenInLog service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741563 13f79535-47bb-0310-9956-ffa450edef68
2016-04-29 07:53:44 +00:00
Jacques Le Roux ee9b9306f8 Fixes a typo reported by Florian Montalbano on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741465 13f79535-47bb-0310-9956-ffa450edef68
2016-04-28 15:49:04 +00:00
Jacques Le Roux 3067a14b81 Updates OWASP dependency check files.
Several changes, notably:
* removes all Tomcat libs suppresses (in catalina\lib) and rather adds a sole suppress based on CVEs (current Tomcat version not concerned) 
* same for jsp-api-2.3
* a new vulnerability is identified: CVE-2015-1776 for hadoop libs (in solr component)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741416 13f79535-47bb-0310-9956-ffa450edef68
2016-04-28 11:51:08 +00:00
Jacques Le Roux b681f251df A patch from Ingo Wolfmayr for "Email-Notification send multiple times" - https://issues.apache.org/jira/browse/OFBIZ-7025
Enable E-Mail Notifications
Create order (trigger sendOrderConfirmation)

--> createOrderNotificationLog fails due to missing PK in "entity-auto"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741393 13f79535-47bb-0310-9956-ffa450edef68
2016-04-28 08:47:12 +00:00
Shi Jinghai 7a53271169 OFBIZ-7026 Remove duplicated jars under solr component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741386 13f79535-47bb-0310-9956-ffa450edef68
2016-04-28 05:36:14 +00:00
Taher A. Alkhateeb ab26e12819 update the .classpath to reflect all the updated libraries
This includes the following:
- pdfbox upgraded to 1.8.11
- jempbox upgraded to 1.8.11
- fontbox upgraded to 1.8.11
- commons-compress to 1.11


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741151 13f79535-47bb-0310-9956-ffa450edef68
2016-04-27 06:38:20 +00:00
Wei Zhang 210c162e32 OFBIZ-7024 Attribute 'placeholder' is not allowed to appear in element 'text'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741146 13f79535-47bb-0310-9956-ffa450edef68
2016-04-27 04:50:26 +00:00
Jacques Le Roux 2ff49110ca Fixes an issue with path to Tomahawk theme data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741035 13f79535-47bb-0310-9956-ffa450edef68
2016-04-26 14:15:06 +00:00
Jacques Le Roux e90be02370 Fixes "ExampleCompoundWidgets throws errors" - https://issues.apache.org/jira/browse/OFBIZ-7023
Actually this is due to both compound-widgets.xsd and ExampleCompoundWidgets.xml errors. Both have not visible effects but in logs

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741022 13f79535-47bb-0310-9956-ffa450edef68
2016-04-26 13:35:07 +00:00
Deepak Dixit deb3df7a5e (OFBIZ-7022) relocate .ftl files for all the theme component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740682 13f79535-47bb-0310-9956-ffa450edef68
2016-04-24 08:45:28 +00:00
Jacques Le Roux df3075f5ce No functional change, this file is not used so useless, removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740635 13f79535-47bb-0310-9956-ffa450edef68
2016-04-23 04:32:12 +00:00
Jacques Le Roux 3168a01d10 A patch from Swapnil M Mane for "Calling Groovy as Event generates error when delegator.find used" reported by Wai at https://issues.apache.org/jira/browse/OFBIZ-6808
We are using Groovy as event in the controller request, everything works fine for us but as we used delegator.find()
it generates the following error


ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.
     [java] java.lang.Exception: Stack Trace
     [java] 	at org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1757) [ofbiz-entity.jar:?]
     [java] 	at org.ofbiz.entity.Delegator$find.call(Unknown Source) [ofbiz-entity.jar:?]
     [java] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [groovy-all-2.2.1.jar:2.2.1]
     [java] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [groovy-all-2.2.1.jar:2.2.1]
     [java] 	at ProductInventory$_run_closure1.doCall(ProductInventory.groovy:18) [script:?]

Reason: 

Since we are using find method of GenericDelegator.java
As per the code implementation it required the transaction should exist 
   if (!TransactionUtil.isTransactionInPlace()) {
if not, it generate error
    ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.

-----------------------------------------------------------------------------------------------------------------------------------------------------------

Solution: initialize the transaction when the groovy is called as event and commit the transaction after the completion.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740629 13f79535-47bb-0310-9956-ffa450edef68
2016-04-23 03:51:13 +00:00
Deepak Dixit 9979e67e26 (OFBIZ-6831) relocate .ftl files in the specialpurpose/example component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740583 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:53:41 +00:00
Deepak Dixit 4d12b065b5 (OFBIZ-6836) relocate .ftl files in the specialpurpose/scrum component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740582 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:46:03 +00:00
Deepak Dixit 1ccc285eda (OFBIZ-6839) relocate .ftl files in the specialpurpose/lucene component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740580 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:39:49 +00:00
Deepak Dixit 15db21d363 (OFBIZ-6838) relocate .ftl files in the specialpurpose/passport component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740579 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:36:22 +00:00
Deepak Dixit 288ce94f5d (OFBIZ-6834) relocate .ftl files in the specialpurpose/googlecheckout component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740578 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:32:56 +00:00
Deepak Dixit 437c645b35 (OFBIZ-6833) relocate .ftl files in the specialpurpose/googlebase component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740577 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:25:44 +00:00
Deepak Dixit c3e9188d1a (OFBIZ-6829) relocate .ftl files in the specialpurpose/ebaystore component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740504 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:52:41 +00:00
Deepak Dixit ffa034eec1 (OFBIZ-6829) Corrected the ebay ftl file path.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740501 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:43:18 +00:00
Deepak Dixit 5a63f3da7b (OFBIZ-6829) Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740499 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:41:15 +00:00
Deepak Dixit fd3f23be70 (OFBIZ-6829) relocate .ftl files in the specialpurpose/ebay component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740498 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:37:21 +00:00
Deepak Dixit 209b95cbbf (OFBIZ-6823) relocate .ftl files in the framework/common component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740497 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:28:46 +00:00
Deepak Dixit 3f2b77aa66 (OFBIZ-6821) Added missing content folder in specialpurpose/ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740489 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 12:02:20 +00:00
Deepak Dixit 1269706cee (OFBIZ-6821) relocate .ftl files in the specialpurpose/ecommerce component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740485 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 11:42:03 +00:00
Deepak Dixit c302846f7f (OFBIZ-6811) Renamed ecommerce/templates to ecommerce/tempalte to make it consistent.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740483 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 11:22:42 +00:00