Commit Graph
27737 Commits
Author SHA1 Message Date
Adrian Crum 1ac3b31bda Added comment about a warning, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649930 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 20:17:46 +00:00
Jacopo Cappellato 409dc4303c OFBIZ-5944: before trying to pull the values for the form's fields, check if the key exists in order to avoid an IllegalArgumentException if the map is a GenericEntity. Thanks to Christian Carlow for the report and to Deepak Dixit and Divesh Dutta for the research and useful comments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649742 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 07:43:00 +00:00
Adrian Crum b20c4adfbc Make sure InputStream is closed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649701 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 01:05:29 +00:00
Adrian Crum a02828a34e Improvement: Remove unnecessary resource check from UtilURL.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649696 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 23:58:06 +00:00
Adrian Crum ffc11dc5a3 Some code cleanup in UtilProperties.java:
1. Removed redundant cache.
2. Removed unnecessary synchronized block.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649686 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 22:54:42 +00:00
Adrian Crum 184fe56ac1 Improvement: Enable XML validation for properties files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649675 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:46:54 +00:00
Adrian Crum e64fbd6c9f Improvement: Replace library-specific concrete class with library-agnostic factory method call in UtilXml.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649674 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:43:46 +00:00
Adrian Crum 201162f6a4 Bug fix: remove invalid element from CommonUiLabels.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649669 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:40:46 +00:00
Adrian Crum 79ecbea037 Bug fix: add missing attribute to ofbiz-properties.xsd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649668 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:39:46 +00:00
Adrian Crum 91feff5f51 Updated the UI label files so they reference a schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649666 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:24:18 +00:00
Adrian Crum 40e1ee8490 Oops, forgot a file in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649621 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:24:07 +00:00
Adrian Crum 9d83f49c45 New Feature: EntityClassLoader. This should be a better solution than the current EntityProperties implementation. Includes example usage in ControlServlet.java (commented out for now).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649620 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:22:56 +00:00
Adrian Crum 66adcd9de2 Fix Web Tools FindGeneric screen so it can display byte-array field types.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649615 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:15:24 +00:00
Adrian Crum 0f18840dd3 Fixed a bug in the entity engine that prevented data loading into a byte-array field type.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649614 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 19:06:41 +00:00
Ashish Vijaywargiya b068b9ce52 Applied patch from jira issue - OFBIZ-5364 - Incorrect quantityNotAvailable for OrderItemShipGrpInvRes when issuing items to shipments.
Thanks Christian for creating the issue. Thanks Swapnil providing additional details and Divesh for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649405 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 20:19:01 +00:00
Ashish Vijaywargiya 44d1bbb9bc Applied patch from jira issue - OFBIZ-5925 - Pack order flow is broken.
Thanks Deepak for creating the issue and thanks Divesh for the patch. Thanks Jacopo!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649396 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 20:03:19 +00:00
Ashish Vijaywargiya cbbdc011d3 Applied patch from jira issue - OFBIZ-3464 - Added check if the creditcard number string is numeric in validation method isCreditcard in UtilValidate.
Thanks Nils for creating the issue and providing the patch for the same. Thanks Divesh for your help in verification. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649393 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 19:53:29 +00:00
Adrian Crum d2375c12d0 Fix a C&P error in ModelMenuItem.java - https://issues.apache.org/jira/browse/OFBIZ-5943
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649384 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 19:02:29 +00:00
Adrian Crum 0b3a5ef360 JavaDocs for widget actions, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649331 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 13:41:03 +00:00
Adrian Crum 6db50a5b0a Update tree widget schemas & models to reuse shared actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649329 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 13:39:35 +00:00
Adrian Crum 31135b6076 Update widget schemas to reuse shared actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649291 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 04:51:08 +00:00
Adrian Crum 1f4c7e268f ModelMenuAction.java thread safety.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649286 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:17:28 +00:00
Adrian Crum d2ca9a7a0c Remove unused widget class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649285 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:16:39 +00:00
Adrian Crum f2190af53e Refactor ModelFormAction.java to reuse common widget action models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649283 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:07:40 +00:00
Adrian Crum d3c7dbb53e Code cleanup and thread safety in ModelWidgetAction.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649281 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 02:41:56 +00:00
Adrian Crum 73cc6c2cbf ModelWidgetAction.java code formatting, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649280 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 01:40:36 +00:00
Adrian Crum 88a71146d1 Tree widget documentation, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649275 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 00:12:24 +00:00
Adrian Crum 9cbe119625 Final pass at making tree widget thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649272 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 00:02:04 +00:00
Adrian Crum 2f920b837c Renamed ModelWidgetAction factory method to newInstance - which better describes what it does.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649248 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 21:00:04 +00:00
Adrian Crum 9db32ed762 Fixed a bug in tree rendering - https://issues.apache.org/jira/browse/OFBIZ-5313
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649239 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 19:52:21 +00:00
Adrian Crum 34fcdd98b7 Small code cleanup in MacroTreeRenderer.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649238 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 19:50:42 +00:00
Adrian Crum 9344bbcc2f Second pass at making tree widget thread-safe. This is a WIP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649230 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 18:40:39 +00:00
Adrian Crum 888b7c08cc Fix for rev 1649090. In that rev I removed the hard-coded Content default entity, but that broke trees that didn't specify Content as their default entity. This commit specifies the Content entity in the Content tree definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649222 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 17:30:50 +00:00
Adrian Crum 98b1b64741 First pass at making tree widget thread-safe. This is a WIP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649096 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 19:26:30 +00:00
Adrian Crum e46c5a3bc5 Tree widget - remove stored references to Delegator and LocalDispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649090 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 18:55:48 +00:00
Adrian Crum c8604d941a Code formatting in ModelTree.java, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649086 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 18:11:11 +00:00
Adrian Crum ee0093ae71 Refactor tree widget to reuse common condition models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649084 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 17:52:29 +00:00
Adrian Crum 18cf8f749a Reverting rev 1646969 because it breaks tree rendering.
I need this fixed so I can begin working on tree widget refactoring. During refactoring I will most likely solve the problem rev 1646969 was trying to fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649083 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 17:49:49 +00:00
Adrian Crum 55761dfeb3 Rewrite ModelMenuItem.java to make it thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649072 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 16:12:09 +00:00
Jacopo Cappellato 9ce782f90b Removed a bunch of dependencies of Owasp Esapi classes after I realized (by studying the Esapi source files and the integration in OFBiz) that we were using a small part of that product; this made it possible to upgrade to the latest release of Owasp Esapi (2.1.0) without having to include a bunch of jars.
I had to comment out two lines in the unit tests because they were failing after the upgrade; still investigating on this.
This commit resolves OFBIZ-5343.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648747 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:31:16 +00:00
Jacques Le Roux 2739265d35 A slightly modified patch from Divesh Dutta for "The <delete> action in <entity-engine-xml> definitions throw an error in tests" https://issues.apache.org/jira/browse/OFBIZ-5906
Data loading for xml data was working fine when <delete>,<create>, <create-update> tag were used . But these tags were not working when data was loaded at the time of running J-unit tests. So after researched that how data loading was working fine for simple data load. So I used the same way than in EntityDataLoader.java to parse the XML file. 

jleroux: I simply removed the old code Divesh commented out in his patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648668 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 10:01:56 +00:00
Jacopo Cappellato a5879b6f8f Moved code dependent on OWASP ESAPI and utilities for codec tasks from StringUtil to a new UtilCodec class: now the UtilCodec class is the only class dependent on OWASP ESAPI.
The DefaultEncoder from OWASP ESAPI, used internally by UtilCodec is now built with the default constructor that also adds the JavascriptCodec to the list of codecs used to canonicalize and validate the input.
Renamed the UrlEncoder class to UrlCodec in order to better describe its behavior.
Misc minor cleanups.
Added to the list of tests of the base component a series of Junit test classes that were missing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648403 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 18:24:57 +00:00
Jacopo Cappellato b969e376ed A series of cleanup to the integration with OWASP ESAPI. Isolated dependencies on the external OWASP ESAPI jar into the StringUtil class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648298 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 09:24:46 +00:00
Hans Bakker debf19025c wrong default map name causing field conflict error, fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648286 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 03:08:27 +00:00
Adrian Crum dfb9f37a1f Refactor menu widget to reuse common condition models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648153 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 08:13:28 +00:00
Adrian Crum 51f7152723 Extract screen widget condition models to a separate class so they can be reused in other widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648152 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 07:37:03 +00:00
Adrian Crum 1fc589d681 Some fixups for the Form widget refactor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648142 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 02:22:06 +00:00
Adrian Crum 5f231ec005 Fixed a NPE I introduced in rev 1647606. Reported by Pierre Smits on dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648139 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 00:58:44 +00:00
Adrian Crum cd3ed9f83d Begin work on ModelMenu.java thread safety.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648093 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 19:18:12 +00:00
Nicolas Malin ad65c5f333 add test on server ensurePartyRole, related to the issue OFBIZ-5853
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648017 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 20:42:33 +00:00