Marco Risaliti
e467b7cf76
Remove some warning in ServiceEventHandler (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076379 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:14:49 +00:00
Marco Risaliti
0c77022d8c
Remove unused variable/method in WfsEventHandler (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076362 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 20:17:24 +00:00
Marco Risaliti
2eb58acf4c
Remove some warning from CoreEvents (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076359 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 20:02:41 +00:00
Marco Risaliti
aaa6f94573
Remove a warning from RequestHandler (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076340 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 19:21:48 +00:00
Erwan de Ferrieres
ef1e6723bc
Removing duplicate title when displaying help, as the screenlet title has already the same label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076255 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 15:33:40 +00:00
Erwan de Ferrieres
cfb5b8f963
Avoiding portalPageId in context when using screens so the right help is displayed when called
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076186 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 12:11:10 +00:00
Erwan de Ferrieres
db367fe9c9
Typo in ui*L*abelMap.CommonExtHelpTitle + French translation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076173 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 11:28:09 +00:00
Scott Gray
c9ec4ae824
Add inline-jdbc attribute idle-maxsize for greater control over the max idle connections that should remain in the pool. Previously it was always set to half of pool-maxsize (and still defaults to this value)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076114 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 06:31:38 +00:00
Jacques Le Roux
8f96fd0b65
A fix suggested by Michael Reichenbach at "Multiple responses send by SOAPEventHandler when ServiceValidationException occurs" https://issues.apache.org/jira/browse/OFBIZ-4207
...
Problem
=======
When calling a service that was defined as "export=true" and a non-optional parameter is missing, then the SOAP-Response is not a valid XML.
Cause
=====
The cause is, that in SOAPEventHandler.invoke() the dispatcher.runSync() throws a ServiceValidationException ("The following required parameter is missing..."). This will be catched by the GenericServiceException-block, a error response will be written to the output stream (via sendError()) and an EventHandlerException will be thrown. This exception will again be catched (this time by the Exception-block and another error response will be written to the output stream.
Solution
========
I think the best solution is simply not to call sendError in the GenericServiceException-block.
JLR: I simply commented out the faulty line (with a reference to OFBIZ-4207) in case someone would want to improve the error message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075952 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 18:03:14 +00:00
Jacques Le Roux
c0716dd0db
Removes an useless unchecked annotation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075875 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 16:16:26 +00:00
Marco Risaliti
c82cc82340
Remove unused variable in HtmlFormRenderer (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075553 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:42:58 +00:00
Marco Risaliti
30c0ef5ed3
Remove unused variable in XmlFormRenderer (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075546 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:41:07 +00:00
Marco Risaliti
aa7f00442c
Remove unused variable in TextFormRenderer (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075545 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:40:32 +00:00
Marco Risaliti
66ea3fb5df
Remove unused variable in FoFormRenderer (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075541 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:31:27 +00:00
Marco Risaliti
822f6d1820
Remove some warning in IteratorTag (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075540 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:27:49 +00:00
Marco Risaliti
ca6ca40950
Remove some warning in IfTag (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075539 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:26:51 +00:00
Marco Risaliti
f52bef96d0
Remove some warning in RenderTag (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075538 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:24:34 +00:00
Marco Risaliti
4f9a3aa386
Remove some warning in InputValue (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075535 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:20:03 +00:00
Marco Risaliti
c78d6dba39
Remove some warning in EntityField (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075534 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:19:34 +00:00
Marco Risaliti
3dcebfd840
Remove some warning in StandardEngine (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075532 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:10:37 +00:00
Marco Risaliti
2886701168
Remove some warning in HttpEngine (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075530 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:05:02 +00:00
Marco Risaliti
de3bc6b1f5
Remove some warning in BSFEngine (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075529 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:04:00 +00:00
Marco Risaliti
b0ceef3f7f
Remove some warning in BeanShellEngine (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075528 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:02:36 +00:00
Marco Risaliti
097cb92c09
Remove some warning in ContextAccessor (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075527 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:59:37 +00:00
Marco Risaliti
2d7c4c5595
Remove some warning in EmptyCondition (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075526 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:58:18 +00:00
Marco Risaliti
22eff3dbc9
Remove some warning in Iterate (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075525 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:56:03 +00:00
Marco Risaliti
01c0bfb1e1
Remove some warning in CallBsh (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075524 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:51:20 +00:00
Marco Risaliti
2b1f993292
Remove some warning in EntityFinderUtil (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075521 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:36:29 +00:00
Marco Risaliti
8fc1103633
Add some @SuppressWarning("serial") in EntityFinderUtil (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075512 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:13:30 +00:00
Marco Risaliti
321e1ef08d
Remove an unused variable in GenericDAO (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075510 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 20:02:07 +00:00
Marco Risaliti
f729c27c2d
Remove an unused import in GenericDelegator (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075507 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 19:53:15 +00:00
Marco Risaliti
a14d03ccde
Remove an unused import in EntityComparisonOperator (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075506 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 19:51:42 +00:00
Marco Risaliti
0c97ca1526
Remove some warning in PreferenceServices (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075504 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 19:43:35 +00:00
Jacques Le Roux
141bb6827f
I should have used cache in 1st place here. It's never too late...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075350 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 14:35:02 +00:00
Erwan de Ferrieres
791bbded63
More improvements on help, adding more descriptions and a French page
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075324 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 13:45:02 +00:00
Sascha Rodekamp
40f52ad764
Improvement - if-regexp conditions in Minilang and Screens not thread safe ( https://issues.apache.org/jira/browse/OFBIZ-4107 ). I added another getTestPattern Method to support case insensitive tests. The case insensitive testPattern is needed from the UtilHttp.checkURLforSpiders.
...
Thanks Martin & Dimitri for your effort.
Orig. Msg.:
The Perl5Matcher Perl5Compiler are not thread safe, as mentioned in their documentation: http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/Perl5Compiler.html
A separate instance should be used per thread.
The concrete issue occurred in our system in the createCommContentDataResource service. The service tries to save emails to the database after they have been sent. It failed because of the described issue. This caused the whole email service (sendMailFromScreen) to be rescheduled. So customers got emails twice.
The Perl5Matcher and Perl5Compiler instances are assigned to static fields in the org.ofbiz.minilang.method.ifops.IfRegexp class. So every thread will use the same instance. No synchronization is done currently. Changing the fields to be non-static will not work either, as SimpleMethods are cached. So all calls to the same simple method use the same IfRegexp instance.
We fixed the problem by moving the instantiation of the Perl5Matcher and Perl5Compiler to the exec() method in IfRegexp.
Other classes are most likely affected, too: org.ofbiz.entity.condition.EntityComparisonOperator, org.ofbiz.minilang.method.conditional.RegexpCondition, org.ofbiz.minilang.operation.Regexp, org.ofbiz.widget.menu.ModelMenuCondition$IfRegexp, org.ofbiz.widget.screen.ModelScreenCondition$IfRegexp, org.ofbiz.widget.tree.ModelTreeCondition$IfRegexp
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075322 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 13:43:23 +00:00
Erwan de Ferrieres
af56c858e8
Using the right syntax for caution, important, note, tip and warning in docbook documentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075125 13f79535-47bb-0310-9956-ffa450edef68
2011-02-27 19:49:39 +00:00
Jacques Le Roux
f9661643f7
Fixes some errors in UiLabels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073801 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 16:09:50 +00:00
Jacques Le Roux
faefe05b41
Helps to find errors in UiLabels files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073785 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 15:31:11 +00:00
Christian Geisert
a89af7668e
Adding Germany (de_DE) Labels for "Quote" (!= "Offerte") and a few more translations
...
Submitted by Carsten Schinzer
See OFBIZ-2862
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073716 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 12:07:24 +00:00
Jacques Le Roux
be618c46fc
* Fixes some issues related to anchors syntax in some docbook help files
...
* Adds TheMarketingApplication anchor for https://cwiki.apache.org/confluence/display/OFBENDUSER/Apache+OFBiz+Business+Setup+Guide
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073502 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 21:06:54 +00:00
Erwan de Ferrieres
57eefd55cd
Misc. French translations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073485 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 20:18:48 +00:00
Erwan de Ferrieres
cc97cd53cc
Make collapsibleAreaId unique so the right screenlet is collapsed when more than one screenlet in a portalPage
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073398 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 16:44:30 +00:00
David E. Jones
bcae85b5f4
Reduced logging of an exception that is just rethrown, still logs error but not full stack trace
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073196 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 01:18:55 +00:00
Jacques Le Roux
5a4b5561a7
Provides defaultMinLength default value (=2)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073163 13f79535-47bb-0310-9956-ffa450edef68
2011-02-21 21:55:49 +00:00
Sascha Rodekamp
a3cfb8c9e4
Feature - Improve UtilProperties.java with a new Method getPropertyNumber which returns an Object of the Number or a default Object - ( https://issues.apache.org/jira/browse/OFBIZ-3418 ) - I submitted a less modified patch from Mirko Vogelsmeier. The patch was outdated but doesn't matter I merged by hand and removed the tabs. Thanks Mirko for the improvement. And thanks Adrian for the first review.
...
Orig. Msg.:
Improvement of UtilProperties.java with a new method which returns the Number as an Object of the specified property name from the specified resource/properties file.
If the specified property name or properties file is not found, the defaultObject is returned.
i did update my method "getPropertyNumber" a bit and
as requested i added "getPropertyAsInteger / asLong / AsFloat / AsDouble / AsBigInteger / AsBigDecimal".
In addition i added a "getPropertyAsBoolean".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073113 13f79535-47bb-0310-9956-ffa450edef68
2011-02-21 19:01:36 +00:00
Jacques Le Roux
2d35500cf5
Introduces widget.autocompleter.defaultMinLength in widget.properties and set it to 2: Default minimum number of characters an user has to type before the ajax autocompleter activates (jQuery default is 1).
...
Note: not to be confused with the the minChars option of the old plugin (not in jQuery UI but the external plugin from bassistance.de) which allowed this so this page is wrong: http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions . Now replaced by minLength, the right page is http://docs.jquery.com/UI/API/1.8/Autocomplete#options
Also adds a css trick (from http://jqueryui.com/demos/autocomplete/maxheight.html ) to have a vertical scroolbar when having dozens of items in autocomplete (using widget.autocompleter.defaultViewSize=100 for instance)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072784 13f79535-47bb-0310-9956-ffa450edef68
2011-02-20 22:43:59 +00:00
Erwan de Ferrieres
3f737c4cf6
Better consistency for French CommonItems translation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072600 13f79535-47bb-0310-9956-ffa450edef68
2011-02-20 14:13:03 +00:00
Erwan de Ferrieres
2fa06cc44c
Adding missing DTD attributes for link element when calling an ajax-window
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072599 13f79535-47bb-0310-9956-ffa450edef68
2011-02-20 14:11:02 +00:00
Jacques Le Roux
6d47543fe3
Fix ports numbers
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072395 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 17:08:08 +00:00