Unfortunately the bug has been backported by Jacques to the 11.04 branch but I don't have time to backport the fix to the branches at the moment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347559 13f79535-47bb-0310-9956-ffa450edef68
Security is now by default not loaded because not part of seed anymore this will make all component hidden and not accessible .
It is still loaded as part of the reader 'demo'
to load the security files:
./ant load-readers -Ddata-readers=security
Now it is possible to load only a selection of the security files in your hot-deploy component as follows:
<entity-resource type=data reader-name=seed loader=main location=../../framework/security/data/SecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../framework/webtools/data/WebtoolsSecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../applications/party/data/PartySecurityData.xml/>
This will enable only standard groups, the party and the webtools application.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346255 13f79535-47bb-0310-9956-ffa450edef68
Revert r1345660, I was caught by the cache I thought it was only that when another change I put before was also needed: the findByHand signature has recently changed. I wonder why this would not affect other groovy scripts as well, there are 245 instances at all. A not neglectable part don't fill the orderBy list (often null is used otherwise) But I run out of time to continue on this...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345661 13f79535-47bb-0310-9956-ffa450edef68
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345652 13f79535-47bb-0310-9956-ffa450edef68
While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable,,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer.
Error can be reproduced by following link :
https://localhost:8443/catalog/control/createBulkProductPromoCodeEmail?productPromoCodeId="Name of : Product Promo Code Id"
Or with help of attached screenshot.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345547 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I simply removed some useless ?? when ?has_content was enough. I also found 3 other cases in returnPolicy.ftl that I fixed the same way than Ankit (using ??)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345532 13f79535-47bb-0310-9956-ffa450edef68
Thanks to Jacopo spotting this (was harmful but stupid, really the kind of errors I make when too tired, not enough focus:D )
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345484 13f79535-47bb-0310-9956-ffa450edef68
Refactored code (simplified and removed duplicated block) that logs, in these cases, the output of the service; now the service output is only printed in verbose mode (of course if the other conditions hold true).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345005 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343792 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343785 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
* refactored code to be more inline with best practices for thread safefy: removed the method readNotificationGroups() (that was only used by the same class in one place) that was called with a lock held and inlined its logic into the colling method; this simplifies thecode and its readability
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343783 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343729 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343728 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343727 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343724 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* replaced some put with putIfAbsentAndGet to slightly simplify the code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343717 13f79535-47bb-0310-9956-ffa450edef68
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
* removed unnecessary null checks
* moved code that initializes static cache fields out of constructors
* replaced get+null check+get with get+null check
* replaced containsKey + null check + get with get + null check
* replaced some put with putIfAbsentAndGet
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343696 13f79535-47bb-0310-9956-ffa450edef68
* removed unnecessary synchronization
* protected the UtilCache object (static field) by making it private and final
* replaced non atomic containsKey+put+get with get + putIfAbsentAndGet
* replaced containsKey + null check + get with get + null check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343692 13f79535-47bb-0310-9956-ffa450edef68
* removed unnecessary synchronization
* protected the UtilCache object (static field) by making it private and final
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343662 13f79535-47bb-0310-9956-ffa450edef68
* removed unnecessary synchronization
* protected the UtilCache object (static field) by making it private and final
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343646 13f79535-47bb-0310-9956-ffa450edef68
* removed unnecessary synchronization
* replaced non atomic containsKey+put+get with get + putIfAbsentAndGet
* protected the UtilCache object (static field) by making it private and final
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343643 13f79535-47bb-0310-9956-ffa450edef68