Commit Graph
27737 Commits
Author SHA1 Message Date
Jacopo Cappellato ddf12c136a Added checks for required input arguments for run-test and run-test-suite targets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324630 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 08:32:10 +00:00
Jacopo Cappellato 11f9742f58 Changes required after the test port changes introduced in rev. 1311214: now the tests should all pass.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324614 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 07:58:15 +00:00
Jacques Le Roux 6d75b53002 A patch from Tom Burns for "Facility Edit Contact Information use Dependent drop-downs" https://issues.apache.org/jira/browse/OFBIZ-4798
Now uses the dependent drop-down mechanism as it was recently done for Party Profile

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324573 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 05:57:23 +00:00
Erwan de Ferrieres f43fedbaee Using a parameter for property sonar.jdbc.url
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311947 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:29:43 +00:00
Jacques Le Roux b29af991ba A patch from Pierre Smits "Including an ant target and ivy solution for downloading the mysql driver" https://issues.apache.org/jira/browse/OFBIZ-4800
Enhancing the OFBiz build solution by including a mechanism to download and install a mySQL driver for users who have (or want to use) that db platform.

jleroux: worked for mysql-connector-java-5.1.6.jar

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311877 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 17:32:05 +00:00
Jacopo Cappellato 4835731c9c Upgrade to the latest version of JUnit (4.10).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311221 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 13:37:18 +00:00
Jacques Le Roux ec788aa471 Adds 1 to all ports in order to be able to run concurrently an OFBiz instance and a test instance on the same machine.
This closes "set different ports for testing in a CI environment (e.g. Jenkins)" https://issues.apache.org/jira/browse/OFBIZ-4794

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311214 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 13:08:37 +00:00
Jacques Le Roux 93ae3a7fe1 The conditionals are unnecessary - FSE will return the original string if the string is null or empty, said Adrian
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311195 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 10:44:05 +00:00
Jacopo Cappellato 51d2052335 Set application mime type missing in jar file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311155 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 07:32:51 +00:00
Jacques Le Roux 2d30831040 A patch from Nicolas Malin "Use flexibleStringRenderer for alt-target element on form" https://issues.apache.org/jira/browse/OFBIZ-4588
At this time the alt-target element value is only parse on bsh interpreter. To resynchronise with the rest of framework, convert with a flexibleStringRenderer.

jleroux: re-adding after reverting r1311082

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311109 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 21:38:17 +00:00
Jacques Le Roux 68bfe71e2f Oops, I committed the wrong file at r1311082, reverting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311107 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 21:35:34 +00:00
Jacques Le Roux 6eae4edab0 A patch from Nicolas Malin "Use flexibleStringRenderer for alt-target element on form" https://issues.apache.org/jira/browse/OFBIZ-4588
At this time the alt-target element value is only parse on bsh interpreter. To resynchronise with the rest of framework, convert with a flexibleStringRenderer.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311082 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 20:21:34 +00:00
Adrian Crum e93e73afaa ScriptUtil bug fix: the SCRIPT_NAMES field was initialized only when debug level was INFO. Removed enclosing debug level check so SCRIPT_NAMES will always be initialized.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311011 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 14:21:01 +00:00
Jacques Le Roux bf5a242cf0 Creates an ant task which uses YUICompressor (yuicompressor-2.4.6.jar) to dynamically minify our own (or custom for users) js and css files (most of the biggest external ones are already compressed)
More work is needed, this is just the the minimum with an example.

Related to https://issues.apache.org/jira/browse/OFBIZ-4792


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310983 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 12:12:07 +00:00
Jacques Le Roux 838c5c52c4 No functional change, just shift a line in proper place
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310978 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 11:25:35 +00:00
Jacques Le Roux 8b2bfe325f Groups Tomcat http/s connectors compression properties and adds text/javascript,text/css as new compressableMimeTypes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310975 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 10:51:02 +00:00
Jacques Le Roux de2293d16a Removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310957 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:31:09 +00:00
Jacques Le Roux 27822125e1 setCountryStatesEventJs.ftl was a specialisation of setDependentDropdownValuesJs.ftl introduced 2 years ago with it. It has never been used and finally whan I thnk about it I don't see any needs to keep (slim down spirit)
So this to remove it and clean duplicated references/comments about setDependentDropdownValuesJs.ftl

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310954 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:19:48 +00:00
Jacques Le Roux 050690362d Fixes "Party Manager Default Country in Update" reported by Tom Burns at https://issues.apache.org/jira/browse/OFBIZ-4787
In Party Manager > Profile > Contact Information > Update the "Country" drop down always defaults to "United States".
This is misleading if the Country is not "United States".
If a user were to change some other address element he/she would have to also re-set "Country" to keep it from being changed to "United States".

To reproduce:
In Party Manager lookup a party with a "Postal Address" say "DemoSupplier"*
In Contact Information > Postal Address Click "Update"
In the Country field select any country but "United States" say Switzerland
Click "Save"

Note -
Expect drop down default after save = "Switzerland"
Actual drop down default after save = "United States"

Click "Go Back"
Expect "Postal Address" country = "Switzerland"
Actual "Postal Address" country = "Switzerland"

Click
Click "Update"
Expect drop down default to be "Switzerland"
Actual "United States"

jleroux: rather than using Tom's patch I reused setDependentDropdownValuesJs.ftl. There were no OOTB examples of its use in FTL templates so now there is one.The same could be done for other EditContactMech.ftl (eCommerce and Facility) I will ask Tom to try it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310953 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:15:29 +00:00
Jacques Le Roux 279fb0debf A patch from Tom Burns for "SFA Postal Address Broken" https://issues.apache.org/jira/browse/OFBIZ-4786
SFA does not store countryGeoId or stateProvinceGeoId in PostalAddress entity when creating a new account causing postal address display to break in SFA and Party Manager profile screens.

Demo data for "sfa100" does not have values for countryGeoId or stateProvinceGeoId

Values countryGeoId or stateProvinceGeoId are needed to display party profile.

To reproduce:
1. In Party Manager search for Party Id "sfa100"
Open "sfa100" from search results
See error message under "General Correspondence Address"

2. Similar in SFA Account Lookup
3. A New Account created in SFA will produce the same error.

Adding address to an existing account works. For example the demo accounts created by other components.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310731 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 11:01:49 +00:00
Jacques Le Roux 5709385ad6 Followed Scott"s suggestion and added a generic EMAIL_PASSWORD EmailTemplateSetting (used to send a new password at user request)
I finally kept also the previous way because it allow an easier 18n of at the email subject.

Still the same concern: OOTB, if the user has not set a SMPT server in general.properties for the defaultFromEmailAddress the message "A new password has been created and sent to you. Please check your Email." when actually nothing happens. But that's anyway user's responsibility

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310716 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 09:17:41 +00:00
Adrian Crum 3348ba5734 Bug fix in ScriptUtil.java - create a local copy of the calling context so script local variables are not copied to it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310307 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 12:51:14 +00:00
Jacques Le Roux 599d6d9511 A patch from Deepak Dixit for "Auto-completer request should be async." https://issues.apache.org/jira/browse/OFBIZ-4780
Fixes a minor issue regarding the pending request count for ajax auto-completer: pending count is used to add and remove the ui-autocomplete-loading class. If we are aborting the request then this count is not updated properly and ui-autocomplete-loading class does not remove from the lookup element hence ajax loader image display continuously if response came.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310266 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 09:48:29 +00:00
Scott Gray 05616620b7 CVE-2012-1621: Prevent user submitted data from being streamed directly back to the browser when the content map-key is not found. Log a warning instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309993 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:24:54 +00:00
Adrian Crum 533bd091b7 CVE-2012-1622: Disable support for nested scripts in FlexibleStringExpander.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309879 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 14:20:56 +00:00
Hans Bakker 8ce6e56675 comment from jacopo, to revert changes from the freemarker down grade
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309778 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 11:30:30 +00:00
Hans Bakker 62bce8407c comment from jacopo, was not according our conventions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309775 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 11:29:53 +00:00
Jacopo Cappellato a65a7a77a6 small formatting fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309725 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:46:39 +00:00
Jacopo Cappellato ef748ee49d Added check to fix a NPE error preventing the purchase order creation for orders with non product items.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309724 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:44:55 +00:00
Jacopo Cappellato 622a234694 Prevent NPE error if a bulk item is added to the cart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309716 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:27:57 +00:00
Jacques Le Roux 5655989997 A patch from Paul Foxworthy https://issues.apache.org/jira/browse/OFBIZ-4784 "storeIncomingEmail assumes variable is not null when it might be"
In storeIncomingEmail in CommunicationEventServices.java, the code to assemble the aboutThisEmail debugging message assumes addressesFrom and addressesTo are not null. But the methods that return values for those variables might return null if they encounter an exception.

Removes also uses of UtilValidate.isEmpty, which should only be used for collections and sequences (see OFBIZ-4427).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309715 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:27:24 +00:00
Ashish Vijaywargiya 692d148175 Adding support of securityGroupId on portal admin screen. securityGroupId field support is available in PortalPage entity. Thanks Ankush.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309519 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 18:27:32 +00:00
Adrian Crum 99504db991 Added some static methods to FlexibleStringExpander that enable querying an expression about its component parts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309360 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 12:49:12 +00:00
Adrian Crum e94ccd9369 Added a SCRIPT_NAMES field to ScriptUtil.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309359 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 12:47:30 +00:00
Erwan de Ferrieres e42a5f1c85 Reverting 1308301 as the commit could seems as a hack: ./ant can't find the class issue created for this: OFBIZ-4783
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309337 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 11:38:40 +00:00
Erwan de Ferrieres 4700a26f48 Reverting an unwanted change done at rev 1307836. Thanks Vikas for noticing on the dev mailing-list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309331 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 11:17:32 +00:00
Jacques Le Roux 4df267b015 Remove Copyright mention when useless and change to 2012 when needed or automatize if possible
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309009 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 16:06:29 +00:00
Jacques Le Roux f802ba7c83 Keeps consistent with other themes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308926 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 14:20:05 +00:00
Sascha Rodekamp ceb27828a7 Changed the FileReader to a BufferedReader during script loading. The file reader throws an exception when the file path contains spaces (which are encoded). The result was that scripts aren't loaded and pages only showed an error message. Working with an InputStream solves this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308896 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 13:36:03 +00:00
Jacopo Cappellato 7e8d52d3bf Fixed path to svninfo.ftl file that was not working after the switch to freemarker 2.3.19
Thanks to Scott for the solution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308817 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 11:09:54 +00:00
Jacques Le Roux 6f6f4d8ec9 Reverts r1308078 http://svn.apache.org/viewvc?view=revision&revision=1308078 due to some pressure on this commit http://markmail.org/message/zqguh6ttd2a5jqcb
And even if I'm quite sure it's not harmful, I don't see either a great need for it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308792 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 09:48:28 +00:00
Jacques Le Roux 6f0bac1487 A patch from Deepak Dixit for "Auto-completer request should be async." https://issues.apache.org/jira/browse/OFBIZ-4780
Currently auto-completer uses sync call to prepare auto-completer source (result list).
Due to this user can't perform any other operation on lookup field and user should have to wait until response came.
In general, synchronous requests should never be used because they tend to block the execution of anything else on the page (or even the entire browser UI), which isn't good.
Also ajax-loader image not display on google chrome browser due to sync request.

Need to use async request for auto-completer.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308751 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 08:41:06 +00:00
Jacopo Cappellato ec02e2ac4f this is a workaround to fix errors when loading included templates with a relative path after the migration to Freemarker 2.3.19; I am still investigating the root cause.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308734 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 07:46:12 +00:00
Hans Bakker 7bbd542575 startup script improvements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308650 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 02:03:57 +00:00
Jacopo Cappellato 031c552ed0 Added postal address formatters for Germany; thanks to Markus M. May for the patch (OFBIZ-4764)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308379 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 15:10:45 +00:00
Jacopo Cappellato 762a5618c6 New target to show the status of the OFBiz instance; thanks to Francis ANDRE for the patch (OFBIZ-4775)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308377 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 15:04:17 +00:00
Jacopo Cappellato 058f404d74 OFBIZ-4771
Renamed some ant tasks for consistency, improved descriptions, removed 2 redundant tasks

Summary of changes:

improved descriptions (unified style)
renamed: run --> start
renamed: run-batch --> start-batch
renamed: run-debug --> start-debug
renamed: run-pos --> start-pos
renamed: run-install --> load-demo
renamed: run-install-multitenant --> load-demo-multitenant
renamed: run-install-* targets -> load* (for example: run-install-seed --> load-seed etc...)
enhanced load-file (was run-install-file) to accept an optional 'delegator' argument and removed run-install-file-in-delegator and run-tenant-install-file
renamed: run-create-tenant --> create-tenant
renamed: run-single-test --> run-test
renamed: run-single-test-suite --> run-test-suite
the main old tasks (mentioned in documentation etc.) have been kept and now inform the user of the new syntax
updated README and main screen of Webtools with the new task name



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308370 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:53:11 +00:00
Jacopo Cappellato 778d995343 Updated name of new Freemarker jar file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308368 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:50:36 +00:00
Jacopo Cappellato 66e063b126 Removed the last webslinger jar that I missed in my previous commits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308359 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:09:22 +00:00
Jacopo Cappellato 6567fca33d Upgrade to latest stable release of Freemarker: 2.3.19
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308358 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:08:17 +00:00