Commit Graph
8093 Commits
Author SHA1 Message Date
Jacques Le Roux 3a047fadda Mark this feature as deprecated, due to OFBIZ-6228
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1670999 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 06:43:26 +00:00
Nicolas Malin d445d74d19 Apply patch OFBIZ-6209 Error when call updateNote service report by Supachai Chaima-ngua
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1670952 13f79535-47bb-0310-9956-ffa450edef68
2015-04-02 19:04:49 +00:00
Deepak Dixit 6f30b5de01 Fixed NPE while rendering content using screen widget, if content.dataResouceId is null then ModelScreenWidget throwing NPW.
Applied patch from jira issue OFBIZ-6219

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1669588 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 13:44:45 +00:00
Adrian Crum f315f0d5be Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Jacopo Cappellato da98976ab0 Fixed code to prevent that two or more threads at startup run the same startup services (defined in serviceengine.xml using the startup-service element) more than once.
This will also prevent a deadlock condition (similar to the one fixed with rev. 1655046) that could occur at bootstrap under certain conditions and unlucky timing.
Thanks to Deepak Dixit and Ravi Lodhi for the report, tests and feedback.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668657 13f79535-47bb-0310-9956-ffa450edef68
2015-03-23 14:46:46 +00:00
Adrian Crum f5a0e74f27 Added comments for cache settings. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668351 13f79535-47bb-0310-9956-ffa450edef68
2015-03-22 10:27:58 +00:00
Adrian Crum 0f2db40ee3 Initial commit of the fix for the dirty cache reads problem - https://issues.apache.org/jira/browse/OFBIZ-5534.
This fixes the PK cache only, the other caches will be fixed after this commit is reviewed.

I didn't include a unit test because Derby deadlocks while testing for this. Actually, the deadlock proves the problem is fixed. I will continue trying to find a way to provide a unit test.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668267 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 13:44:55 +00:00
Adrian Crum 755ee6ae6f Oops, I forgot to include unit tests in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668261 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 12:51:34 +00:00
Adrian Crum f20303d0e3 Some work on GenericEntity and its subclasses: Enforce GenericPK != GenericEntity and GenericValue != GenericEntity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668257 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 12:36:44 +00:00
Deepak Dixit bdba71d230 OFBIZ-6183: Update ComponentConfig code to allow empty mount point, as if need to mount website on root then mount-point should be "" instead of "/".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668236 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 11:14:55 +00:00
Adrian Crum 6dd1483da2 Some small optimizations in the entity engine - don't repeatedly build things that don't change over time.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668232 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 10:47:49 +00:00
Jacques Le Roux 39c362e60f Move appserver component to Attic https://issues.apache.org/jira/browse/OFBIZ-6195
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1668192 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 04:01:29 +00:00
Jacques Le Roux 6c650d849a A patch from Pierre Smits for "Adding GeoPoints overview to geo management" https://issues.apache.org/jira/browse/OFBIZ-6148
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667969 13f79535-47bb-0310-9956-ffa450edef68
2015-03-20 09:48:24 +00:00
Jacques Le Roux 4e2d290f69 Fixes <<You can't rely on Lookup field description-field-name attribute in a form having skip-start="true">> https://issues.apache.org/jira/browse/OFBIZ-6170
Instead of adding a form-name attribute only in lookup sub-element, I added it a the field level and removed the one at the lookup level.So the form-name field attribute can be used in the field of both the lookup and if needed the field set in the lookup description-field-name attribute. I only tested it in a version more near 13.07 but I believe it's ok here

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667774 13f79535-47bb-0310-9956-ffa450edef68
2015-03-19 14:38:37 +00:00
Deepak Dixit 4ae74fa8a9 OFBIZ-6183: Fixed String index out of range exception if webapp mounted on "".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667733 13f79535-47bb-0310-9956-ffa450edef68
2015-03-19 12:55:28 +00:00
Jacques Le Roux 70410138ca Fixes "Removes ASL2 license headers from files generated by create-component ant target" https://issues.apache.org/jira/browse/OFBIZ-6176
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667683 13f79535-47bb-0310-9956-ffa450edef68
2015-03-19 09:40:09 +00:00
Adrian Crum 9158c3af82 Fixed a bug in screenlet widget: If there is no Screenlet's preferenceKey in requestParameters, the initially-collapsed always be false. https://issues.apache.org/jira/browse/OFBIZ-6172
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667492 13f79535-47bb-0310-9956-ffa450edef68
2015-03-18 10:53:48 +00:00
Jacopo Cappellato b387dcb2b4 Upgraded Tomcat from 7.0.57 to the latest bug fix release 7.0.59.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667253 13f79535-47bb-0310-9956-ffa450edef68
2015-03-17 10:52:34 +00:00
Jacopo Cappellato 38017100b3 Upgraded the following commons jars:
- codec from 1.6 to 1.10
- validator from 1.4.0 to 1.4.1
- logging from 1.1.2 to 1.2
- net from 3.1 to 3.3
- csv from 1.0 to 1.1
Resolves OFBIZ-6157, OFBIZ-6158, OFBIZ-6159, OFBIZ-6160, OFBIZ-6161



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667055 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 16:17:49 +00:00
Jacopo Cappellato 0db5888047 OFBIZ-6156: Upgraded commons-pool2 from 2.2 to.2.3 and commons-dbcp2 from 2.0.1 to 2.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666958 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 10:58:26 +00:00
Jacopo Cappellato f69e599355 Upgrade to latest bug fix release of Freemarker: 2.3.22
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666949 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 10:31:13 +00:00
Jacopo Cappellato 68723a2130 Upgrade to latest release of Log4j
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666939 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 09:20:14 +00:00
Jacques Le Roux a7e97a9abd Patches from Taher Alkhateeb for "party id cannot be specified through GUI while creating a Party (Person or Party Group)" https://issues.apache.org/jira/browse/OFBIZ-3480 reported by Babu Sreekanth
1. While creating an organization, it is possible to specify a meaningful party id through ofbiz setup.
2. But, it is NOT possible to specify the party id through GUI while creating a Party (Person or Party Group). this means, all the parties created get a sequence id for party id.


If the user inputs a party ID to any of the party creation screens (person, party group, customer, employee or prospect) then that ID will be used, otherwise it will pull a party ID from the sequence bank






git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666794 13f79535-47bb-0310-9956-ffa450edef68
2015-03-15 12:02:41 +00:00
Adrian Crum c30924d47f Removed unnecessary screenlet widget from the Find Geos screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666511 13f79535-47bb-0310-9956-ffa450edef68
2015-03-13 16:48:36 +00:00
Jacques Le Roux 2e4cfd552f Fixes <<"Lookup fields break when used with a form having skip-start="true">> https://issues.apache.org/jira/browse/OFBIZ-6139
We neglected this aspect so far, adding a "form-name" attribute to the lookup element fixes it. You then need also to set the correct id-name value on field element.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665535 13f79535-47bb-0310-9956-ffa450edef68
2015-03-10 13:29:40 +00:00
Scott Gray 270542d98a Fix bug in EntityQuery where performing queryFirst() while using cache and filtering by date would return invalid results due to the database result being prematurely limited by setMaxRows(1). The full result is needed before we can properly perform in memory date filtering. Thanks to Deepak Dixit for the bug report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665311 13f79535-47bb-0310-9956-ffa450edef68
2015-03-09 17:34:42 +00:00
Jacopo Cappellato 7ddccd0b6c Fix for issue happening when a service event was executed using JSON (i.e. parameters in the request body) after a getParameter was called (by other framework code) to fetch the parameter from the body; in that case an io error was thrown because the reuest body stream can be read only once.
This fix move the code that reads the JSON parameters from the body into the ContextFilter: the parameters are then stored as attributes that can be later used by events and other artifacts (service events, simple events, scripts events support this and Java events if they use UtilHttp.getCombinedMap(request) to get the map of input parameters. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665162 13f79535-47bb-0310-9956-ffa450edef68
2015-03-09 09:26:18 +00:00
Jacopo Cappellato f232ce4446 Fix for bug causing an error trace when a query was executed (with cache on) using conditions created using EntityConditionBuilder:
java.lang.UnsupportedOperationException: hashCode: org.ofbiz.entity.condition.EntityConditionBuilder$ConditionHolder
     [java] java.lang.UnsupportedOperationException: hashCode: org.ofbiz.entity.condition.EntityConditionBuilder$ConditionHolder

Thanks to Deepak Dixit for the bug report and for his tests.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665154 13f79535-47bb-0310-9956-ffa450edef68
2015-03-09 08:34:30 +00:00
Jacques Le Roux 9422ab9c95 A slightly modified patch from Christian Carlow for "date-find in form widget does not persist value" https://issues.apache.org/jira/browse/OFBIZ-5074
Reported by Taher:
Any search form that calls "performFind" and has a "date-find" tag will not persist but it will give correct search results. 
For example, If I go to Order -> Requests and search using any of the date fields, the result will be correct but the field will be blank upon returning results. This behavior affects only dates.
I suspect the main offender here is a bug in performFind service or one of the services it calls (prepareFind or executeFind). I believe that the "queryStringMap" does not contain the date-find fields in its returned value. I did not look heavily into the code but I think "fld" types are not persisted in-between requests.

Christian:
This issue is still relevant and needed. The <date-find> values are not persisted after submission due to MacroFormRenderer.java not evaluating value and value2 correctly. In face, value2 isn't event passed to the definition in framework/widget/templates/htmlFormMacroLibrary.ftl. This is a starting point for this functionality. I said starting point because I'm not sure if it handles default values and other field settings that may need to be applied after my patch.

jleroux: It indeed needs to be improved, at least to keep the related date operator... I don't close yet, but would be better to open a new Jira issue...
I simply formatted the patch (tabs instead of 4 spaces) and used UtilGenerics.checkMap() instead of (Map<String, Object>) 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664696 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 18:53:42 +00:00
Jacques Le Roux fdb68903f1 Removes 2 old wrong ar labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664604 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 12:49:31 +00:00
Jacques Le Roux ec07424fcb Patches from Taher Alkhateeb for "Translations of CommonUiLabels.xml & CommonEntityLabels.xml to Arabic" https://issues.apache.org/jira/browse/4966
I have translated fully the framework/common/config/CommonUiLabels.xml & CommonEntityLabels.xml to Arabic. Attached is the patch for both files.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664602 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 12:38:42 +00:00
Jacques Le Roux cb972c9d49 An improved patch from Christian Carlow for "Allow FOP to support <fo:external-graphic></fo:external> for -Dportoffset" https://issues.apache.org/jira/browse/OFBIZ-6120
FOP <fo:external-graphic/> images do not appear when portoffset used:
2015-02-28 18:12:12,249 |http-bio-8445-exec-4 |ApacheFopWorker               |I| FOP FontBaseURL: file:/home/anon/workspace/ofbiz/framework/webapp/config/
2015-02-28 18:12:12,254 |http-bio-8445-exec-4 |FOP                           |D| target-resolution set to: 72.0dpi (px2mm=0.35277778)
2015-02-28 18:12:12,593 |http-bio-8445-exec-4 |FOP                           |E| Error with opening URL 'http://localhost:8080/content/control/stream?contentId=10004': Connection refused
2015-02-28 18:12:12,616 |http-bio-8445-exec-4 |FOUserAgent                   |E| Image not found. URI: /content/control/stream?contentId=10004. (See position 40:158)

In framework/webapp/config/fop.xconf <base>http://localhost:8080</base> is hardcoded
This patch employs FopFactory.setBaseUrl() along with the portOffset from Start class. 
A better solution might be to extract the port from the baseUrl of fop.xconf and then apply the offset to that but I don't have time to implement that yet.

jleroux: I followed Christian's tip to complete his patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1663979 13f79535-47bb-0310-9956-ffa450edef68
2015-03-04 13:11:41 +00:00
Jacopo Cappellato 3c2da3b211 With this change the "secure" attribute of <@ofbizURL/> will be honoured (as it was until 13.07) even when the request-map doesn't have a "security" element, i.e.:
<@ofbizUrl secure="true">SomeRequest</@ofbizUrl>

will actually use the https protocol. Thanks to Deepak Dixit for reporting discussing the issue and fix with me. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662919 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 11:18:30 +00:00
Jacques Le Roux f529b182ef Fixes "Birt doesn't work" reported by Leon at https://issues.apache.org/jira/browse/OFBIZ-5870
Workaround:
revert the commit r1621801 https://fisheye6.atlassian.com/changelog/ofbiz?cs=1621801, since ServletContextHashModel is being used by Birt, not the unused stuff.
revert the commit r1621953 to ControlServlet.java https://fisheye6.atlassian.com/changelog/ofbiz?cs=1621953 to import necessary packages
add "commons-discovery-0.4.jar" back to framework/base/lib/commons, or add it to specialpurpose/birt/lib folder, since it's depended by axis-1.4 https://fisheye6.atlassian.com/changelog/ofbiz?cs=1623042

jleroux: "commons-discovery-0.4.jar" has been already added back for OFBIZ-5876 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662812 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 20:52:10 +00:00
Adrian Crum 5100649ffb Fix bug in entity reference screen - https://issues.apache.org/jira/browse/OFBIZ-6114.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662500 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 17:24:52 +00:00
Jacopo Cappellato f64ef66cd1 Removed some old code that, as can be easily noticed by reviewing the lines I am removing, was completely useless; it was probably an half baked experiment that has been committed by error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662393 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 09:09:04 +00:00
Adrian Crum 5dc2a447ac Fixed form widget rendering bug caused by widget refactor - https://issues.apache.org/jira/browse/OFBIZ-6051.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662120 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 21:19:09 +00:00
Adrian Crum eb7283f61d Fixed NPE in widget model toString() method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662119 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 21:17:33 +00:00
Adrian Crum f6d334704b Added null check to avoid intermittent NPE - https://issues.apache.org/jira/browse/OFBIZ-5879.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662084 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 19:00:36 +00:00
Adrian Crum 5bf807a075 Fixed a bug in form widget extends feature - https://issues.apache.org/jira/browse/OFBIZ-6084.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661760 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 20:05:55 +00:00
Ashish Vijaywargiya 835a77bfa8 Applied patch from jira issue - OFBIZ-4977 - Limitation and issue with delegator.findByPrimaryKeyPartial method : returns error when partialKeyset contains PK value.
Thanks Sumit for creating the issue and providing the patch for the same. Thanks Arun for the verification. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661292 13f79535-47bb-0310-9956-ffa450edef68
2015-02-21 06:59:57 +00:00
Jacopo Cappellato 29afa23882 OFBIZ-6071: fix for issue in decrypting entity fields (encrypt="true" in entity definition) in tenant mode. Thanks to Divesh Dutta and Rohit Koushal for the report, the fix and the tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660579 13f79535-47bb-0310-9956-ffa450edef68
2015-02-18 09:02:15 +00:00
Jacques Le Roux 27c6b8dab5 Actually cleans unitData.xml after r1660412 for OFBIZ-6059
It was already there, I just committed it at r1660392

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660414 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 15:30:00 +00:00
Jacques Le Roux 129994acf2 A patch from Ron Wheeler for "UOM missing 2 entries" https://issues.apache.org/jira/browse/OFBIZ-6059
<Uom abbreviation="Pb" description="Petabyte of Data" uomId="DATA_Pb" uomTypeId="DATA_MEASURE"/>
<UomConversion uomId="DATA_Pb" uomIdTo="DATA_Tb" conversionFactor="1024"/>

were left out when PB was added.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660412 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 15:23:14 +00:00
Jacques Le Roux 046eb40f2a A patch from Ron on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660392 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 14:38:30 +00:00
Jacopo Cappellato 4d485d7046 Applied patch contributed by Gareth Carter in OFBIZ-5910: it is a fix for a bug introduced by the fix for OFBIZ-3382.
The issue reported in OFBIZ-3382 and the fix committed for it need to be reviewed and possibly reworked but in the meantime this fix will solve the problem with broken links reported recently.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660031 13f79535-47bb-0310-9956-ffa450edef68
2015-02-16 06:50:41 +00:00
Adrian Crum 98017c1e2e Fix an exception in MacroScreenViewHandler.java - https://issues.apache.org/jira/browse/OFBIZ-6074.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1659965 13f79535-47bb-0310-9956-ffa450edef68
2015-02-15 18:24:51 +00:00
Jacopo Cappellato 34beacd425 Relaxing default behavior of canonicalization in order to allow mixed and multiple encodings: with this change, in these cases, instead of throwing an error it will simply log a worning message.
This should fix, at least as a temporary solution, the recent issues happening after the upgrade to the new ESAPI.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1659224 13f79535-47bb-0310-9956-ffa450edef68
2015-02-12 11:17:46 +00:00
Ashish Vijaywargiya 804de4890b Applied patch from jira issue - OFBIZ-5986 - Error on accessing new tenant.
Thanks Arun for discussing things with respect to this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1658369 13f79535-47bb-0310-9956-ffa450edef68
2015-02-09 11:37:23 +00:00
Adrian Crum 99763dffaf Fix C&P error in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1658214 13f79535-47bb-0310-9956-ffa450edef68
2015-02-08 16:59:09 +00:00