Commit Graph
7459 Commits
Author SHA1 Message Date
Adrian Crum 0711522378 Fixed a bug in EntityDataLoadContainer.java - do not use System.exit, throw an exception instead. Also moved help text to the exception message because it was not being logged before shutdown.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542495 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 12:26:16 +00:00
Adrian Crum fac4fd0c42 Elaborate on my previous comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542464 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 04:32:01 +00:00
Adrian Crum b34da96480 FIXME comments, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542463 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 04:21:39 +00:00
Adrian Crum 2d2a3fa96e Replace DCL pattern with AtomicReference in JmsListenerFactory.
https://issues.apache.org/jira/browse/OFBIZ-4455


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542442 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 01:30:56 +00:00
Adrian Crum e04471523b Fixed a bug in the setSyncServiceParameters screen. Some service parameter data types would cause FreeMarker to throw an exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542388 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 20:42:37 +00:00
Adrian Crum 405e24943d Fixed a C&P error in the updateGeo service definition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542264 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 13:34:06 +00:00
Paul Foxworthy 46392f7649 FORMATTING: Fix misspelling in comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542162 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 02:52:56 +00:00
Jacques Le Roux ddf898a735 This reverts r1541641 + 1541746
Local variables are always thread safe, no needs to worry about them

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541894 13f79535-47bb-0310-9956-ffa450edef68
2013-11-14 12:55:18 +00:00
Jacques Le Roux e4529567c2 java.util.regex.Pattern instances are immutable but not instances of the Matcher companion class.
So better be safe than sorry, even if in the loops we loose a bit of performance (here only "short" loops anyway)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541641 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 18:04:14 +00:00
Jacques Le Roux 90d37ce794 After my main external backup disk crashed, my main Eclipse workspace crashed also.
While rebuilding it, it seems I inadvertently pushed a OK button somewhere...
This reverts r1541470 and all pending stuff which should not have slipped in

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541485 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 12:01:48 +00:00
Jacques Le Roux d0bd4e8617 This was committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541470 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 11:07:04 +00:00
Scott Gray 287cec6e55 Remove null comparison because jobV can't be null at the given location
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540551 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 21:06:50 +00:00
Adrian Crum 2ccdb6b312 Fixed a bug in WebSiteProperties.java where host name defaults were not initialized properly. Also added a toString method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540482 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 15:17:15 +00:00
Adrian Crum 7043dd0c6b Fixed a bug introduced in rev 1534264 - unable to log into web applications that do not have a base-permission attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540475 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 14:02:47 +00:00
Adrian Crum bfe1317c16 Fixed broken ModelInduceFromDb.jsp file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1539781 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 19:44:41 +00:00
Scott Gray 338b68301b global ECAs weren't honoring the run-as-user attribute defined on action elements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1539645 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 14:06:54 +00:00
Adrian Crum 203ba5c608 Improved WebSiteProperties.java - better handling of missing values.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1539513 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 01:55:06 +00:00
Jacques Le Roux 4009a1f581 Fixes a bug reported by Eric Kingston at "Sales/Purchase Quote product id auto complete malfunction" https://issues.apache.org/jira/browse/OFBIZ-5379
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537996 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 17:40:51 +00:00
Hans Bakker 0b22680991 some errors left from the removal of the postgresqlnew data resource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537396 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 07:45:36 +00:00
Jacques Le Roux cdb662dd0a A patch from Christian Carlow for "Wrap error messages in StringUtil.wrapString() for framework/common/webcommon/includes/messages.ftl" https://issues.apache.org/jira/browse/OFBIZ-5376
Without wrapping error messages in StringUtil.wrapString() the <br/> element appears part of the error message.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537179 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 17:11:21 +00:00
Jacopo Cappellato 4c6d49b735 Upgrade to the latest version of Groovy: 2.1.9
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537086 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 13:43:08 +00:00
Jacques Le Roux 13d207693b A modified patch from Gareth Carter for "NotificationServices.java prepareNotification does not allow component:// urls" https://issues.apache.org/jira/browse/OFBIZ-5374
The prepareNotification method in NotificationServices.java does not allow urls that start with component:// because its using UtilURL rather than FlexibleLocation. Here is a patch that adds FlexibleLocation. I am not sure if its best to remove UtilURL or not - that can be up to you.

jleroux: since FlexibleLocation.resolveLocation() supersedes UtilURL.fromResource() I used it instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536905 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 22:00:33 +00:00
Jacopo Cappellato 489bee58c2 Upgrade to Tomcat latest bug fix release: 7.0.47
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536656 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 11:01:37 +00:00
Adrian Crum 6b416318af Expose the TestSuiteInfo constructor so it can be used outside its containing class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536586 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 04:27:07 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Adrian Crum 2a48bf829d Fixed a bug in htmlMenuMacroLibrary.ftl - menu title threw an exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536217 13f79535-47bb-0310-9956-ffa450edef68
2013-10-27 23:03:54 +00:00
Adrian Crum a770f0e853 Small fix for StringUtil.toMap method - avoid array index exceptions when a Map element is missing a value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536170 13f79535-47bb-0310-9956-ffa450edef68
2013-10-27 18:06:15 +00:00
Adrian Crum 33d54463cc The RequestHandler.makeLink method uses the new URL generation classes (2nd try).
This time I preserved the complicated boolean logic in the host-part block of code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535755 13f79535-47bb-0310-9956-ffa450edef68
2013-10-25 14:57:25 +00:00
Jacques Le Roux 185925a648 No functional changes, just better documentation on status-code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535669 13f79535-47bb-0310-9956-ffa450edef68
2013-10-25 09:50:21 +00:00
Jacques Le Roux e0b12f5546 No functional change, just an updated comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535573 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 22:00:45 +00:00
Adrian Crum 5b675f5a79 Some code simplification in the new URL generation classes.
Also loosened things up a bit in the OfbizUrlBuilder class: allow object construction with partial information - required by some services. I don't like this approach because it makes it possible to create nonsensical URLs, but it is a necessary evil to keep the existing code working.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535444 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 17:12:46 +00:00
Adrian Crum 4af172cad4 Reverting rev 1535129 due to a problem reported by Jacques on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535419 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 15:44:03 +00:00
Hans Bakker 2d5f2903a3 fixed null pointer exeption will viewing a content record in webtools
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535291 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 07:03:52 +00:00
Hans Bakker 834c6ac2d8 revert of unwanted commit, sorry!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535287 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:42:34 +00:00
Hans Bakker 45011c0ed1 reorganizing of files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535286 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:39:36 +00:00
Adrian Crum 6107ff911a Fixed a bug in RequestHandler.java that threw an exception when the servlet is mapped to /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535276 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 04:47:12 +00:00
Adrian Crum 9337f06205 Updated NotificationServices.java to use OfbizUrlBuilder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535271 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 02:47:39 +00:00
Adrian Crum 0aa028cbce Simplified some code in OfbizUrlTransform.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535270 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 02:45:47 +00:00
Adrian Crum a8109cf259 Added a helpful method to WebAppUtil.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535268 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 02:44:45 +00:00
Adrian Crum ca37709641 Deprecated a method in RequestHandler.java that should not be used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535261 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 01:48:22 +00:00
Adrian Crum 64177b19d7 Eliminated a logged warning in OfbizUrlBuilder - the request-map might not exist because of the various URL rewriting schemes in OFBiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535260 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 01:46:56 +00:00
Adrian Crum d28470d4be Code cleanup and JavaDocs in OfbizUrlTransform.java.
If a web site ID is specified, the transform does not require a HttpServletRequest object - so the transform will work in scheduled services.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535246 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 00:45:51 +00:00
Adrian Crum 69b5d92007 Use parameterized return type in FreeMarkerWorker.unwrap method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535245 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 00:42:12 +00:00
Adrian Crum f569a189a7 Formatted OfbizUrlTransform.java - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535164 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 20:40:39 +00:00
Adrian Crum b803a32fc9 Some JavaDoc fixups - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535131 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 19:40:05 +00:00
Adrian Crum 501ca548d5 The RequestHandler.makeLink method uses the new URL generation classes.
I tried to preserve the complicated boolean logic in the replaced block of code, but if I got something wrong, just leave a message on the dev mailing list.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535129 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 19:35:17 +00:00
Adrian Crum 86fc2a1c8e Oops, missed a file in my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535128 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 19:32:47 +00:00
Adrian Crum cf3b8d7025 Added a new classes to simplify OFBiz URL generation and eliminate redundant code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535126 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 19:29:47 +00:00
Jacques Le Roux 1aebfe082b An enhanced patch from Shi Jinghai <<Change GROOVY_SUPPORT position in .classpath to remove "The method getContextPath() is undefined for the type ServletContext" message in Eclipse.>> https://issues.apache.org/jira/browse/OFBIZ-5369
While editing some java files with "request.getSession().getServletContext().getContextPath()" in Eclipse, an error message appears:
"The method getContextPath() is undefined for the type ServletContext".

This error message can be removed by changing GROOVY_SUPPORT position to be after servlet jar in .classpath

jleroux: I needed to also remove the now useless warning message I put in ControlServlet.java

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534989 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 11:28:31 +00:00
Adrian Crum 56e780b97c Fixed a flaw in the RequestHandler.makeLink method: if any exceptions were thrown while generating the URL, the method proceeded as if nothing was wrong and created an invalid URL. Now the method returns null if any exceptions were thrown - it is up to calling code to decide what to do about it.
This commit also makes use of the new WebSiteProperties class to simplify code and improve performance.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534827 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 22:32:56 +00:00