Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 986c1ae6ac A patch from Daniel Riquelme "Enable NOT-IN operator to performFind" https://issues.apache.org/jira/browse/OFBIZ-4815
This patch will enable NOT-IN operator to the performFind service.
Only two lines of the file framework/common/src/org/ofbiz/common/FindServices.java were modified to enable de NOT-IN operator.
An use case is provided to test

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328637 13f79535-47bb-0310-9956-ffa450edef68
2012-04-21 11:38:14 +00:00
Erwan de Ferrieres 2bd2e66f84 Merging exampleext in example application
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328522 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 21:55:33 +00:00
Erwan de Ferrieres abfa330848 Corrected a French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328519 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 21:42:07 +00:00
Erwan de Ferrieres 23e9a65a01 Moving example* applications to specialpurpose OFBIZ-4790
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328503 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 21:11:02 +00:00
Jacopo Cappellato 684fce1265 The cache of parsed Groovy scripts was not thread safe; this issue, in instances with several concurrent threads running the same script the first time (i.e. not cached) could cause the same script parsed multiple times and then added to the cache (overriding the previous value); this event was causing the clearing of caches in Freemarker; because of a bug in Freemarker [*] this could cause a deadlock.
The issue is present on all versions of Freemarker but it is less frequent on latest version because of the refactoring of caches happened after release 2.3.10.

[*] https://sourceforge.net/tracker/?func=detail&aid=3519805&group_id=794&atid=100794

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328356 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 12:53:35 +00:00
Adrian Crum a871ca4fac Some Mini-language validation code and other files in preparation for the syntax overhaul. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328302 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 10:26:38 +00:00
Christian Geisert 99643c782f Replace german translation for Vendor with Verkaeufer (instead of Lieferant) and Distributor with Grosshaendler
Submitted by Markus M. May" <m.may@mvb-online.de>
See OFBIZ-4622


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328246 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 08:15:19 +00:00
Jacques Le Roux 567080a8e3 Fixes a NPE introduced at r1328122
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328226 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 06:59:06 +00:00
Adrian Crum 500a2b4ec4 Added exception handling to the mini-language API. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328222 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 06:53:41 +00:00
Jacques Le Roux 67fea731e3 A patch from Tom Burns for "eCommerce Customer Code Cleanup" https://issues.apache.org/jira/browse/OFBIZ-4830
1. In OFBIZ-4822 it was decided that request to authview would be removed from the eCommerce customer ftl files because their only purpose was to set URL to https. The set field "donePage" in CustomerScreens.xml editperson effects the same result.

2. There are brackets in the password.ftl display for the href:
<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="button">[${uiLabelMap.CommonGoBack}]</a>

The brackets are inconsistent with the display for similar elements in the applications


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328205 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 06:12:25 +00:00
Ashish Vijaywargiya 342debb0d5 Applied similar fix as we did on trunk r1300463.
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)

Bad use of Debug statement. On production system you will get false alarm that you are having error in code base although the resultant statement is only giving additional information instead of error message.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328196 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 04:47:37 +00:00
Jacques Le Roux 5e5f0e27a5 This introduces a mean to hide a service result in log (when the service is longer than 50 ms and Debug.timingOn() or > 200 ms and Debug.infoOn(), see ServiceDispatcher.java, just above line 600)
A hideResultInLog service attribute is added. If set to true the service result will be hidden from possible exposition in ServiceDispatcher.runSync() 
This is convenient when used for sending a password to an user (the password must be legible in the sent mail). 
I'm sure a lot of you would want to have no logs at all in production. But by experience I know that we need to log info in logs even in production. Especially when the system is quickly moving ahead...
So this is a sure mean to hide any password in logs, being current or backuped somewhere on the servers disks...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328122 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 21:41:39 +00:00
Adrian Crum b64a9d940f Mini-language code format cleanup. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327981 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 15:09:03 +00:00
Jacopo Cappellato 3736c9856c Reverted rev. 1327736: with it it was impossible to log in with demo accounts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327866 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 08:43:54 +00:00
Hans Bakker 7a1ece1c21 productsummary screen is used both in order and ecommerce. Alternative urls should only be used in the ecommerce, not in the order component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327853 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 07:49:30 +00:00
Sascha Rodekamp 83a3e0f6f4 Revert 1327835: accidently committed file WidgetWorker.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327839 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 06:30:36 +00:00
Sascha Rodekamp 94889bae2d Fix jackrabbit unit testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327835 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 05:58:29 +00:00
Sascha Rodekamp 4c080a3d97 Fix jackrabbit unit testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327834 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 05:56:56 +00:00
Adam Heath 4e165df74b FEATURE: Very simple command-line tool to crypt a password.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327742 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:49:28 +00:00
Adam Heath f092508550 FEATURE: Make use of new HashCrypt cryptPassword functionality.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327741 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:49:22 +00:00
Adam Heath ffd48b19c9 FEATURE: Add unix(glibc)-compatible password hashing, exact same output, with support for salts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327740 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:49:10 +00:00
Adam Heath 13146509e2 FIX: UserLogin.currentPassword should be treated as opaque, so don't do any explicit compares against it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327739 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:49:04 +00:00
Adam Heath 3cea0258d0 OPTIMIZE: Refactored LoginServices.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327737 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:58 +00:00
Adam Heath 6ea609d022 FIX: Fix a bunch of hashed passwords that had the oldFunnyHex encoding.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327736 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:51 +00:00
Adam Heath 731a0d461f FEATURE/FIX: <entity-condition> on views are now done correctly. When a
view was previously joined to another view, the conditions on the inner
view were added to the outer-most WHERE clause.  This caused multiple
problems.  One, if the join was optional, the generated sql actually made
it required(because it was in the WHERE, and not in the ON clause).
Second, the outer WHERE may reference a field that was not available *at
all* in the generated nested select(view table).

The fix is to *not* recurse thru all view member entities when finding
conditions, and instead attach them to a new WHERE clause on the
generated inner SELECT(view table).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327735 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:40 +00:00
Adam Heath c029432953 FEATURE: Remove synchronization on UtilCache access in
ModelFieldTypeReader.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327734 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:33 +00:00
Adam Heath 96b4df930a FIX/FEATURE: When connecting views to their real entities, do a dependency sort, so
that a view that references another view is configured after it's
dependencies.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327733 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:26 +00:00
Adam Heath e5c44753c3 FEATURE: Remove synchronization on entity caching; this requires the
non-blocking features I added to UtilCache; without them, you'll get
internal map corruption.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327732 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:20 +00:00
Adam Heath 8069604927 FIX: No longer use LRUMap, but ConcurrentLinkedHashMap. This fixes the
case where getSerivceLogMap is called, and the elements are enumerated.
This could cause an error when the calling code was enumerating the map,
to print out it's information, but a service that was represented in the
map would finish, and get removed from the map.  The calling code that
had the map might then get stuck in a loop that would never end(internal
to the map itself).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327731 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:14 +00:00
Adam Heath 15869c914e OPTIMIZE: nothing in runLog.put can throw an exception, except for
standard OutOfMemory type conditions; therefore, there is no reason to
actually catch and log any exception that won't be thrown anyways.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327730 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:08 +00:00
Adam Heath ba0112fea4 OPTIMIZE: runLog can never be null, it's a static final; if for some
reason that fails at class init time, then an exception will be thrown
then, and the class will not be usable.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327729 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:01 +00:00
Erwan de Ferrieres 39c7dc647e Removing commons-compress-1.1.jar as not used anywhere in OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327667 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 20:29:19 +00:00
Adam Heath 0f78229b2e Add some missed ignores; these are generated when testing ofbiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327614 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 18:35:57 +00:00
Adam Heath cdff4f4992 Add an example and a bit of documentation to git-rebase-runner.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327613 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 18:35:53 +00:00
Adam Heath cc894de9d9 FIX: run-install got renamed to load-demo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327612 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 18:35:48 +00:00
Jacques Le Roux 0b124c8206 This was missing in r1327269
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327562 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 16:16:12 +00:00
Sascha Rodekamp e14bb20f8d Small jackrabbit API code cleanups and refactoring, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327506 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 13:37:25 +00:00
Jacques Le Roux 2db2a99619 A modified patch from Wai "ajax autocomplete and dialog during session timeout" https://issues.apache.org/jira/browse/OFBIZ-4813
1. autocomplete feature shows the message "no records found" during a session timeout. This could be misleading for the user.
2. During a session timeout, clicking on ajax dialog button shows a large frame containing a message indicating session has timeout. Should show a more detailed message.

jleroux: what I adapted:
* Added <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> in htmlheader-for-ajax.ftl
* Replaced also spinner.gif in Tomahawk (better be consistent)
* Added a French label an kept those existing but English (improved by Wai)
* Removed the ajaxErrorText style in ajaxNotLoggedIn screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327502 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 13:24:30 +00:00
Sascha Rodekamp e4004ed672 Small code cleanups and refactoring for the Jackrabbit implementation, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327470 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 12:22:20 +00:00
Jacopo Cappellato 04206db569 Renamed path to reflect new location.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327412 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 07:59:33 +00:00
Jacopo Cappellato 7138f372bb Removed bin folder and moved its content to the tools folder: this was discussed extensively in the dev list recently.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327411 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 07:57:46 +00:00
Sascha Rodekamp de21687576 Form-Widget : Error in rendering Reset field. (https://issues.apache.org/jira/browse/OFBIZ-4821) A patch from Sumit Pandit. MacroFormRenderer.renderResetField contains a missing entry when appending title to renderResetField's StringWritter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327409 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 07:51:49 +00:00
Jacopo Cappellato dc1a51a90d This is just a guess but this could fix the issue reported in the user list by Tolu Williams:
While viewing gantt chart in trunk for any project i get the following error

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://projectmgr/widget/ProjectScreens.xml#ganttChart]:
java.lang.IllegalArgumentException: Error running script at location
[component://projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy]:
javax.script.ScriptException:
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast
object 'null' with class 'null' to class 'double'. Try 'java.lang.Double'
instead (Error running script at location
[component://projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy]:
javax.script.ScriptException:
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast
object 'null' with class 'null' to class 'double'. Try 'java.lang.Double'
instead)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327275 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 20:53:03 +00:00
Jacques Le Roux 3c7ba3304f A patch from Tom Burns for "eCommerce Profile Improve Button Naming Consistency" https://issues.apache.org/jira/browse/OFBIZ-4822
In eCommerce the naming and display of back buttons is inconsistent across the Profile Editing screens.
Example:
Changes Password label should be "Go Back" but is "[Go Back]"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327269 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 20:12:11 +00:00
Jacques Le Roux 27316ba6aa A patch from Tom Burns for "eCommerce Profile Back Button Fail" https://issues.apache.org/jira/browse/OFBIZ-4814
. Some navigation buttons reached from the eCommerce Profile screen fail to return to the Profile screen.
Example:
Login as DemoCustomer
Click Profile
Click Update In the "Contact Information" > "Postal Address" section.
Click Go Back
Expected: Return to profile page
Actual: Remain on Edit Contact Information page

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327260 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 20:03:10 +00:00
Adam Heath b24617935b FEATURE: Start supporting commons-daemon explicitly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327257 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:58:09 +00:00
Adam Heath ba177f3aca OPTIMIZE: Add a new FAIL Control, and move the processing into a method on the
enum.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327256 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:58:03 +00:00
Adam Heath ecefbd3452 OPTIMIZE: Don't use static Strings to hold the commands sent over the
socket; instead, use an enum.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327255 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:57 +00:00
Adam Heath fffea48b81 FIX: Fix race condition in startup code; it's possible for all loaders to be
started, a shutdown command get's issued, stopping is occurring, but
then the server state ends up being set to RUNNING.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327254 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:50 +00:00
Adam Heath 39db7dfc5a OPTIMIZE: Remove the 2 boolean variables that encoded the startup/shutdown state,
and instead use a single reference, and an enum.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327253 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:44 +00:00