Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux f8699d535d A patch from Atul Vani for an issue reported by Soumya Jyoti Guru at http://markmail.org/message/whb4am3n6ngsuwgk. It's related to https://issues.apache.org/jira/browse/OFBIZ-3667 - OFBIZ-3667
Atul's note: I noticed some strange behavior (like there's little shifting of elements).
Jacques's note: I noticed them too (it's in the calling form or layer) but it's far better than before and IMO acceptable

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949174 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 13:27:36 +00:00
Jacques Le Roux 47b0020afe A patch from Ankit Jain, removes useless redundant <request-map uri="authview">, it's now in the common controller(https://issues.apache.org/jira/browse/OFBIZ-3469) - OFBIZ-3469
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949142 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 10:30:46 +00:00
Jacques Le Roux 6193dd4e53 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux eccde35aa0 Do we really need to have an <owner> element there? At least OOTB it's always empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949100 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:38:25 +00:00
Vikas Mayur d94a79b584 Minor improvement over the commit in r948414. Moving the code out of the loop since the code is just intended to be run for non-serialized inventory.
The code inside the loop runs only once for non-serialized inventory but in case of serialized inventory the code inside loop runs equivalent to the 
number of the quanity accepted and hence the code for status checking may run multiple times based on the quantity accepted. So as a performance check
it will now run only once.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949097 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:01:52 +00:00
Scott Gray e5551546f0 Be a little more explicit about what didn't return success when a preprocessor event fails
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949088 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 03:30:47 +00:00
Jacques Le Roux 63fd94e778 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Jacques Le Roux a4987cc819 A patch from Sascha Rodekamp "atalog Services HTML Safe" (https://issues.apache.org/jira/browse/OFBIZ-3785) - OFBIZ-3785
Set text parameter to 'safe'(allow HMTL), now you can add some HTML Tags in your Product/Category Simple Text (maybe highlighting tags etc.).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948811 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 12:49:31 +00:00
Jacques Le Roux c1e14e1a35 A patch from Sascha Rodekamp "Identifying the website id" (https://issues.apache.org/jira/browse/OFBIZ-3784) - OFBIZ-3784
Sascha : here is a little patch to improve the identification of the websites. The original method seems a little bit bare.
Jacques: I can't see any problems with this improvement, though I did not test all cases



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948761 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 10:23:30 +00:00
David E. Jones 0c3b76171d Added removeUserPreference service, needed because you can't pass an empty value to the set service to clear out preferences, also this actually removes the record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948697 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 07:18:59 +00:00
Jacques Le Roux c974d3224e A patch from Sascha Rodekamp "The position attribute (at least center) does not work when used in a lookup called from another lookup " (https://issues.apache.org/jira/browse/OFBIZ-3781) - OFBIZ-3781
Here is a little patch to fix the center issue. I had to remove some code which is not needed anymore.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948694 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 07:07:05 +00:00
Adam Heath 416fd4ad66 Set the source format to 3.0 (quilt), to make it easier to have local
changes that might have binary files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948566 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 20:05:45 +00:00
Adam Heath 747d7272c7 Don't install build/lib/*-test.jar into the packages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948565 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 20:05:40 +00:00
Adam Heath 7de2657860 Remove use of openjdk-6-jdk, instead sun-java6-jdk; it doesn't compile
some things correctly(generics markup), and has issues with some https
urls.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948563 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 20:05:35 +00:00
Erwan de Ferrieres f9c4de5efc Avoiding possible errors when adding portlets via web interface and logged as admin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948479 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 15:47:47 +00:00
Jacques Le Roux 52520adaab Clean imports, I also wondered if we should keep addAllFileTableValues which is not used internally (hence I guess useless) but I finally stopped as there were also some other Type Safety warnings and I did not have time to continue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948460 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:48:00 +00:00
Adam Heath 6e07055341 Re-apply 948328, which brings us back to using the more efficient clhm,
but now UtilCache is not strictly least-recently-used.  Instead, it's
more of a less-recently-used.  This difference can be seen when reducing
the max-in-memory setting(but not reducing completely to 0).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948449 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:11 +00:00
Adam Heath 39faca3863 Allow for dynamic registering of additional operators for extensions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948448 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:03 +00:00
Adam Heath 14b1bc46a7 Remove unneeded cast.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948447 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:57 +00:00
Adam Heath 6a9efe212d Remove synchronized on masterClassManagers, switching to
FastMap(non-blocking).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948446 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:51 +00:00
Adam Heath c2a39dcb52 Remove synchronized on staticTimers access(non-blocking).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948444 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:46 +00:00
Adam Heath 3ffebd5910 Always set memberModelEntities; there's no reason to check for null, as
the population methods always get called during construction anways.
This was discovered while looking at code coverage.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948443 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:40 +00:00
Adam Heath b861401e71 Fix view entities that have view entities as members, with complex aliases, or functions on the nested view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948442 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:34 +00:00
Adam Heath ffa0a69829 Allow processTrackingCode to be called externally, to allow for other ways of extracting the code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948441 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:27 +00:00
Adam Heath 4488c44a32 Add support for UPPER and LOWER functions in index fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948440 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:21 +00:00
Adam Heath 9ea996dcb8 There is no reason to convert the controller xml url to a file first.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948439 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:14 +00:00
Adam Heath 9161cc6e3e When use-iterator=true, then no caching is possible. So, if caching was
requested during an inventory lookup, then turn off the use of the
iterator, so that the cache can actually be used.  This is a speedup.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948438 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:08 +00:00
Adam Heath 773df43a27 If promotion processing is turned off, then don't attempt to see of the
requested productPromoCodeId is valid and usable.  This is to support
loading of promo codes from the database during loadCartFromOrder.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948437 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:02 +00:00
Vikas Mayur 807e017f95 An alternative fix to the status of non-serialized inventory item when a return is received. This also fix an issue when a
defective inventory item is reserved against a non-serialized inventory while placing a sales order.

Bug reported by Ratnesh Upadhyay.
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948414 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 12:37:11 +00:00
David E. Jones 18da3d8395 Some changes to address issue of conflicting fromDate when expiring one ProductAverageCost record and creating another, this also checks for sub-second difference between old fromDate and new so that this stuff works more reliably on funny databases like MySQL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948387 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 10:28:12 +00:00
Adam Heath d945ef3d65 Add putIfAbsent method; disk-based variant of this method is not yet
tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948333 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:59 +00:00
Adam Heath 464c710f02 JDBM isn't multi-thread safe, so protect against concurrent access.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948332 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:52 +00:00
Adam Heath bb2d32984f Inline postRemove, it's only called from one place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948331 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:45 +00:00
Adam Heath 95e6fc9f7d Revert "As suggested by Ben Manes at "Upgrade ConcurrentLinkedHashMap" (https://issues.apache.org/jira/browse/OFBIZ-3779) - OFBIZ-3779"
The new library does *not* function correctly.  It breaks the
testChangeMemSize test case.  Reducing the memory size *must* still obey
the LRU settings; the new library removes items at random.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948328 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 05:52:11 +00:00
Adam Heath 7ebc344daf Fix stand-alone tests target, broken when separated -test.jar logic was
added.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948327 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 05:52:03 +00:00
Jacques Le Roux 7aaf80b6c2 Fix a bug introduced while updating ConcurrentLinkedHashMap implementation at r947993. Reported by Christian on dev ML.
I used the default Weigher (see JavaDoc)

BTW this new implementation is really faster (tried with ArtifactInfo)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948037 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 13:38:39 +00:00
Jacques Le Roux 21ec172143 A patch from Sam Hamilton "Extending the search when receiving a Purchase Order" (https://issues.apache.org/jira/browse/OFBIZ-3777) - OFBIZ-3777
This patch is to add a couple of extra ways to look for a purchase order when receiving it into a facility

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948020 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 12:17:09 +00:00
Jacques Le Roux 3b6f4516c4 A patch from Ankit Jain "Edit/Navigate Global GL Account - Found URL parameter [glAccountId] passed to secure (https) request-map with uri [updateGlAccount]" (https://issues.apache.org/jira/browse/OFBIZ-3316) - OFBIZ-3316
The error can be reproduced as following:

Steps:
1) Go to Accounting > Global GL Settings > Select any value(100000) from the list > in the "Edit GL Account" update the record > now in the "Navigate Accounts" section click on any node .

Then you will get the error .......

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948017 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 12:08:24 +00:00
Jacques Le Roux 8a9c6ea716 As suggested by Ben Manes at "Upgrade ConcurrentLinkedHashMap" (https://issues.apache.org/jira/browse/OFBIZ-3779) - OFBIZ-3779
The UtilCache class should use v1.0 of the CLHM library. While the previous version is fully functional, I am no longer supporting it. The new design should be faster and more reliable due to not needing to use a pseudo LRU algorithm for performance (which has degradation scenarios). A true LRU is now supported with no lock contention issues. Please consider upgrading when convenient.

http://code.google.com/p/concurrentlinkedhashmap/

JavaDoc:
http://concurrentlinkedhashmap.googlecode.com/svn/wiki/release-1.0-LRU/index.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947993 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 10:08:04 +00:00
Jacques Le Roux f59221875d Fix a bug due to multi-tenant introduction. I guess this bug appears only if you use the multi-tenant mode.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947988 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 09:53:56 +00:00
Jacques Le Roux e8b9e8bb5b A patch from Ankit Jain "Security issue in update store payment setting." https://issues.apache.org/jira/browse/OFBIZ-2395 - OFBIZ-2395
Steps:
1) Go to catalog > Stores > Select OFBiz E-Commerce Store
2) Click on Payment tab.

Now there are two options. Error come only with one of them.

Option 1: Edit any Payment Method. Submit the form at the bottom. Now click on NEXT link, you will see the error.

Option 2: Click on NEXT link, no errors.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947679 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 15:48:30 +00:00
Erwan de Ferrieres d512d97150 Removing some hard-coded uilabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947663 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 15:05:12 +00:00
Erwan de Ferrieres 002a8ed79f Adding generic service messages for error/succes, so any service could use them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947611 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 11:50:10 +00:00
Erwan de Ferrieres ee7d17c8cd Better French uiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947506 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 22:08:00 +00:00
Jacques Le Roux 8b5da45213 Some languages don't use # for number http://en.wikipedia.org/wiki/Number_sign
Should be last pass (reasonable enough...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947491 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 20:31:48 +00:00
Jacques Le Roux 2b49c6049d Some languages don't use # for number http://en.wikipedia.org/wiki/Number_sign
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947485 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 20:18:07 +00:00
Jacques Le Roux cb591b9c6a Some languages don't use # for number http://en.wikipedia.org/wiki/Number_sign
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947483 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 20:15:49 +00:00
Jacques Le Roux ca77bb5166 Fixes some French labels related to # which is n° in French
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947479 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 20:07:55 +00:00
Jacques Le Roux b76b4f3808 A patch from Sascha Rodekamp " Calendar Don't open in Lookups" (https://issues.apache.org/jira/browse/OFBIZ-3780) - OFBIZ-3780
After all the last Patches the calendar didn't opened in the lookups ... But here is the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947424 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 15:08:57 +00:00