Commit Graph
72 Commits
Author SHA1 Message Date
Jacopo Cappellato 892ed70e57 Completely refactored the SequenceUtil class:
* the class is now thread safe
* the class is now cleaner (no references to delegator etc...)
* replaced the collision detection algorithm with a simpler/reliable/efficient one based on: update with no changes (to get a lock) + select + update (to increase the last sequence id)
* removed ugly special code for "clusters" that is no more needed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621438 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:17:07 +00:00
Jacques Le Roux ff0730b8de Fixes a typo reported by Brett Palmer in user ML
Adds more info about DCC

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1584873 13f79535-47bb-0310-9956-ffa450edef68
2014-04-04 19:41:08 +00:00
Jacques Le Roux c28edba6d8 This fixes the geolocation in OFBiz, for both Google Maps and OpenLayers. It seems few changes, it took me more time than I thought. I hope this will last few years again, and it should be easier to maintain now.
What I did:
Upgraded from Google Maps API 2 to 3, which also means removing the keys in general.properties. They are no longer needed in API-3 (at least for our demo and local test uses), one worry less!
Refactored Google Maps code in geolocation.ftl: put more things in common,  simplified code (the API-3 is better from this POV).

For OpenLayers, due to most browsers now rejecting mixed content (HTTP vs HTTPS), I had to follow their advice and put OpenLayers-2.13.1.js + images and theme(finally not used) in the framework. Not a big deal in term of size but again one more lib to worry about. Anyway geolocation is not vital for OFBiz. I have also added a zoom and navigation widget in maps. Note that IE warns about mixed content, but you can bypass it.

While working on editGeoLocation (in Party) I noticed it does not update the elevation. I found it was possible http://www.daftlogic.com/sandbox-google-maps-find-altitude.htm but I did not implement it, lack of time...
Also I got once a NPE in CallSimpleMapProcessor (when using editGeoLocation) but was unable to reproduce (w/o changes before and after)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554536 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 15:22:21 +00:00
Jacques Le Roux 99199dd213 https.www.ofbiz.it does not exist anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1435529 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 12:31:35 +00:00
Jacques Le Roux 899598caba Moves throwRequestHandlerExceptionOnMissingLocalRequest from general.properties to requestHandler.properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1393367 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 09:25:19 +00:00
Jacques Le Roux ecfc317a79 Closes "ControlServlet - Exception thrown for requests not defined by controller.xml" https://issues.apache.org/jira/browse/OFBIZ-5037
This has been tested in a custom project and work as expected it does not add any functional features for OFBiz if you don't use external requests in controllers. So should have any impacts OOTB

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1391037 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 14:49:20 +00:00
Hans Bakker 2874803c43 property to either show currency decimals when zero or not
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307303 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 08:29:28 +00:00
Hans Bakker 25c5483493 make the currencyRounding a property variable, using the value which is hardcoded now. contribution of 'Tor'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1300817 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 06:31:32 +00:00
Hans Bakker b64da95ceb add 2 new tenant ant commands to load seed/demo data for a specific tenant only: './ant run-install-tenant -DtenantId' and './ant run-install-tenant-all' for all tenants in the tenant enttity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172989 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 06:23:02 +00:00
Jacques Le Roux 458fc97948 Update the comment about default VisualTheme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153069 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 08:55:03 +00:00
Jacques Le Roux 18434fafea Better comment on the cluster properties usage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1144791 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 08:58:13 +00:00
Jacques Le Roux 43aa95aaa3 Closes "SequenceUtil may generate duplicate IDs in Load Balancing mode" https://issues.apache.org/jira/browse/OFBIZ-2353
Pb: If OFBiz is deployed on 2 servers in Load Balancing Mode, SequenceUtil will generate duplicate IDs because synchronization is done at JVM level instead of doing it in DB.

The OFBIZ-2353 SELECT FOR UPDATE solution.patch provides a simple mean to quickly resolve this issue. I did not remove the bank loop (useless since there is a DB contention). 
I created a cluster general property. But since, most of the time, when you use a cluster you use also a sole database with a delegator having distributed-cache-clear-enabled set to true, I retrieve this information to automatically use SELECT FOR UPDATE in this case

This has been tested on a cluster with JMeter. BTW I found that UserLoginHistory can throw errors because it does not use a SeqId in PK but only login+fromDate. I guess there are other cases like that but in reality it's unlikely that someone log on 2 diff machines with the  same login at the same time (ms), just a JMeter side effect...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1144537 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 22:58:35 +00:00
Hans Bakker 2227bee7bb update of rev1126364 after a comment from scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126412 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 09:51:44 +00:00
Hans Bakker 60d3edace0 add general.properties setting for default rounding and precision in convertUom service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126364 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 07:54:32 +00:00
David E. Jones 3b20b9c06f Reversing accidental commit in rev 1072292
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072301 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 10:38:13 +00:00
David E. Jones 2d28cc3d66 VUA-429 full implementation to add a path through the screens for creating a sales order for a contact and add a customer for the contact in the process
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072292 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 10:13:50 +00:00
Bruno Busco 25965626af Reverted revision 1042196 as suggested by Adam.
This change introduces framework dependencies from applications.
More work is needed to the patch in https://issues.apache.org/jira/browse/OFBIZ-4037 before committing again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042250 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 22:29:33 +00:00
Bruno Busco 587e93ba82 https://issues.apache.org/jira/browse/OFBIZ-4037
Moved the feature that allows a new user to register for an account from MyPortal to the framework so that it is available in any application.
It has also been slightly reworked (code cleaning and internationalization).
Two flags in general.properties allows to configure if the register function must be enabled or not and if the captcha function should be used.
The captcha function needs to be improved because at the moment the code is contained in an hidden field so that it is very easy for a computer to bypass it.
A possible fix for this could be to put the MD5 coding of the captcha code in the hidden field.
Then the event that checks the code should compare the MD5 codes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042196 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 14:58:18 +00:00
Hans Bakker 6cab58f905 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Ashish Vijaywargiya db765efdd2 Reverting my commit r938446 based on the comments received on mailing list. For now I am keeping old email address in place (i.e ofbiztest@yahoo.com) keeping in mind that email will not go in spam folder. If others think test@example.com will also behave same then please go ahead commit the changes.
Very soon I will revert my changes on release10.04 branch.
Thanks to everybody who has provided their comments!  

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940814 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 11:57:35 +00:00
Jacques Le Roux 070e1388db Correct previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938448 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 13:27:39 +00:00
Ashish Vijaywargiya 148318f7fd Changing email address ofbiztest@yahoo.com -> ofbiztesting@gmail.com - this was creating too much problem since long in development effort.
Following points were there in my mind before doing this change.

-- AFAIK ofbiztest@yahoo.com email doesn't exists.
-- Bounce email issue if you have enabled Javamail container. This drastically slow down your system performance. 
-- Now anyone can use ofbiztesting@gmail.com account settings for Sendmail, Javamail container etc.
-- Send mail service triggered again and again with failure message on console if any of the email not found bccAddress inside ProductStoreEmailSettings entity. Again slow speed of your development machine.
-- Please let me know where to share the password of this account? Dev list?


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938446 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 13:17:45 +00:00
Jacques Le Roux 0b6e54b056 Update Google Map keys, thanks to BJ on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938437 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 12:56:03 +00:00
Erwan de Ferrieres 2a9bbcdde8 multi-tenant textbox should not be displayed by default
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927961 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 16:41:46 +00:00
Erwan de Ferrieres cfe049b424 As suggested by Adrian, adding an option to hide the tenant ID's textbox in login form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927924 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 15:44:04 +00:00
Adam Heath 805a09f182 Switch default theme to TOMAHAWK.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915397 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 15:46:24 +00:00
Jacques Le Roux 8a84e2dfb7 As promised last cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910648 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 18:50:02 +00:00
Jacques Le Roux 1a2a570550 Some more cleanup after Adam's intervention at r910610 on my error on r910590. I will do one more soon...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910635 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 18:12:43 +00:00
Adam Heath dfead1c73d Switch default theme back from VINOPS to BIZZNESS_TIME
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910610 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 17:28:20 +00:00
Jacques Le Roux 74786c1d4e Just realized that I made an error while patching general.properties : wrong line, I removed
locale.properties.fallback=en

In this commit I put it back and put 
locales.available=de,en,es,fr,it
at the right place

Sorry for that (by chance this has not much effects)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910590 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 16:55:14 +00:00
Scott Gray 80f029bd91 The sendMail service has a problem where any email addresses that fail a RCPT TO: SMTP check causes the message to not be sent to any of the valid recipients. Fixed by making use of the mail.smtp.sendpartial property which enables the message to still be delivered to valid recipients. I've made sendpartial = true the default but also made it configurable via general.properties. This is the first part of a fix for OFBIZ-3379
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894236 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 19:52:43 +00:00
Jacques Le Roux 70d7a15dfb Partially fix an issue I discussed with Akash on dev ML on how to format decimals in prices
* Mostly parameterize UtilFormatOut.formatPrice() from general.properties
* I removed unused currency.decimal.format calls in CheckOutEvents class
* Also removed unused priceNumberFormat in UtilFormatOut class

Still have to fix 11 harcoded  "##0.00" in ftl files using ofbizCurrency 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884023 13f79535-47bb-0310-9956-ffa450edef68
2009-11-25 10:43:09 +00:00
Jacques Le Roux d251bbf486 Not really forgotten in previsou commit (r883017) but was on ignore-on-commit Toirtoise changelist and anything in this list is not committed even if checked (lesson learned)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883019 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 00:24:59 +00:00
Hans Bakker 0b7fe13bb1 On request of adrian, put the VISUAL_THEME default record back in the database, however added the function that values in general properties can override this value. Combined the implementation with the definition of the defaultOrganizationPartyId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820178 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 05:16:17 +00:00
Hans Bakker 54232da5f2 OFBIZ-2657: implemented the addition of the default 'from' email address
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789652 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 10:19:59 +00:00
Jacques Le Roux 981b88a7e2 Fix Geolocation on R9.04 and Marco's server
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772712 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 17:12:52 +00:00
Hans Bakker 7d03e179fc set the default theme to the new updated smooth feather theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772091 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 07:59:19 +00:00
Jacques Le Roux 46038493c4 Revert r766443 commited by accident
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766446 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 11:06:54 +00:00
Jacques Le Roux 59dcd48d1b This was a commit error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766443 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 10:27:47 +00:00
Jacques Le Roux 192afed042 Fix r766325 thanks to Sam Hamilton on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766336 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 15:08:35 +00:00
Jacques Le Roux 2e60246205 Google map key for 904
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766325 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 14:06:00 +00:00
David E. Jones 5bbcd23a1c Too many issues with smoothfeather, for now bluelight looks like a good default theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765906 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 08:48:48 +00:00
David E. Jones 32e673754a Moved old default theme data and files to new flatgrey theme; small corrections for use of messages.ftl; added setting in general.properties for the default theme ID; changed default theme to smoothfeather
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765862 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 06:29:09 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux f9c14d2d1c Fix r762207
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762211 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 05:00:46 +00:00
Jacques Le Roux e86fb8912e Long life to demo.ofbiz.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762207 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 04:36:28 +00:00
Jacques Le Roux a0170de61f I got caught by an svn ignore on this file while committing geolocation changes. Hence it was only working on my local dev instance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751824 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 20:28:42 +00:00
Adrian Crum 79439bb454 Expanded the comments in the locale-related general.properties settings. Hopefully this will help clear up confusion about what the properties do. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@743407 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 17:12:09 +00:00
Hans Bakker efbdbd6c7a file missed in last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@729400 13f79535-47bb-0310-9956-ffa450edef68
2008-12-25 07:59:11 +00:00