Commit Graph
27737 Commits
Author SHA1 Message Date
David E. Jones 49db5c858f Added basic ESAPI.properties file for the owasp esapi library, based on default with the ones I don't think we'll use commented out
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741743 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 21:38:26 +00:00
David E. Jones afb434f132 More log message refinements for more info, but less message and noise
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741742 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 21:37:42 +00:00
David E. Jones 3f3f0008d8 Some small changes so that something like the recent nbsp in a labels file won't cause everything to fail, ie just noisily log the error and treat the file/label as missing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741692 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 19:45:53 +00:00
Jacopo Cappellato 9fe2295f4b Made Y/N answer to create new hot deploy component case insensitive.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741649 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 17:40:09 +00:00
Jacques Le Roux 1dc936c613 BTW, "OFBiz site" is not working anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741648 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 17:31:47 +00:00
Jacopo Cappellato 83ad2d2294 Ant target for the automatic creation of an ofbiz component in the hot-deploy folder.
ant create-component

You will be prompted for:
1) component name (e.g. "test")
2) component resource name (e.g. "Test")
3) webapp name (e.g. "testapp")
4) base permission (e.g. "TEST")

and the target will create the component in the hot-deploy folder.
Restart ofbiz and the new application will be up and running.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741605 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 16:04:05 +00:00
Jacques Le Roux 56c6ad4660 Simple-method and alike tags cleanup. Not sure yet, but I guess there are no "Xerces errors" anymore.
I will post some other errors (of other types I guess) I found using Artifact Info in dev ML soon

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741594 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 15:28:41 +00:00
Ashish Vijaywargiya 3de23d313b Applied patch from JIRA issue OFBIZ-2162 (Reduce the Redundancy of Java script in inlineProductDetail.ftl in order component).
Thanks Arpit Singh Pandya for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741537 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 11:20:46 +00:00
Jacques Le Roux 96af0d1bd7 Footer l10n and French i18n
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741532 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 11:11:46 +00:00
Jacques Le Roux 0d47781227 Even better, I wonder now about localisation of all those informations (Copyright, Powered by, Release, etc.)
For Copyright and Powered it's ok since it's in footer.ftl, but for the ant svninfo target, any ideas (an ant guru there) ?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741517 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 10:41:31 +00:00
Jacques Le Roux 67bbedb750 Typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741516 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 10:36:49 +00:00
Jacques Le Roux cadb5144e2 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741514 13f79535-47bb-0310-9956-ffa450edef68 2009-02-06 10:33:22 +00:00
Hans Bakker 9e807503dc some more fixes and adjustments for the portal page function
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741502 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 10:19:45 +00:00
Jacques Le Roux 8055d7b5ea Better solution suggested by Christian on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741499 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 10:09:50 +00:00
David E. Jones 574d610ccf Small update to use OWASP ESAPI Encoder instead of java.net.URLEncoder for parameter strings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741496 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:40:37 +00:00
Jacques Le Roux e0a2cd1428 A proposed change by Marco, Xerces complains but it's the easier solution for the Label Manager
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741495 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:38:12 +00:00
David E. Jones e0555f78d5 Fixed bug in new RequestHandler related to view override in the URL for a request with no event; addresses issue with entityref reported by Hans
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741494 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:37:41 +00:00
Jacques Le Roux 963f02faed Close https://issues.apache.org/jira/browse/OFBIZ-2168 - OFBIZ-2168
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741491 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:30:09 +00:00
Jacques Le Roux a51f71e4a8 tag cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741489 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:24:43 +00:00
Jacques Le Roux 00212d0af2 <session-to-field field.*="(.*)" map.*="(.*)" session-name="(.*)"/> => <session-to-field field="$2.$1" session-name="$3"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741488 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:22:56 +00:00
Jacques Le Roux ed29821e0a <result-to-field result-name="(.*)" map.*="(.*)"/> => <result-to-field result-name="$1" field="$2.$1"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741487 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:21:24 +00:00
Jacopo Cappellato 1dd37d9873 Removed reference in comment to Jetty container.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741482 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:15:43 +00:00
Jacques Le Roux b8c163a295 <field-to-request field.*="(.*)" map.*="(.*)"/> => <field-to-request field="$2.$1" request-name="$1"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741479 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:07:11 +00:00
David E. Jones 57dcf34bcd Some refactoring of canonicalize feature, also change ServiceEventHandler to use UtilHttp stuff for parameters so this and other things take effect there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741478 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:05:50 +00:00
Jacques Le Roux 90741427de <field-to-result field.*="(.*)" map.*="(.*)"/> => <field-to-result field="$2.$1" result-name="$1"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741477 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 09:05:26 +00:00
David E. Jones 71a1ed6b95 All incoming parameters used through these parameter maps (which should be, but currently isn't, all use of parameters) will now go through the ESAPI canonicalize process
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741466 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 08:20:58 +00:00
Jacques Le Roux 34b99531b6 Keep .classpath sorted to avoid local conflicts (like groovy plugin in Eclipse, or whatever)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741463 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 07:44:13 +00:00
David E. Jones 0b2e7e05c5 Added owasp esapi library, uses of it soon to come
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741442 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 07:02:59 +00:00
Hans Bakker 9ea7eebcc0 make example dashboard working again with the recent portal page changes and removed fulladmin pages from myportal because not required
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741439 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 06:59:53 +00:00
Hans Bakker 2638cce966 relation name too long
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741428 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 06:17:30 +00:00
David E. Jones 4d9382e887 Cleanup and pretty-up a bunch of log statements; moved some less helpful ones to verbose, combined some, and generally tried to make logs in various places more user friendly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741424 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 06:04:58 +00:00
David E. Jones ae4f308ef8 Some playing with simple-method cleanup, inventory quantities service now doesn't have to distinguish between serialized and non-serialized, and using some new UEL stuff instead of calculate op
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741423 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 06:03:06 +00:00
Hans Bakker 20b94a0056 data files loaded in the wrong order
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741418 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 05:43:46 +00:00
David E. Jones da0f617961 Small change to make use-cache easier to parameterize; since cache conflicts with the iterator, have the use-cache setting override the use-iterator setting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741396 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 04:18:20 +00:00
Hans Bakker 0e58b86c96 more checks on missing data, added error message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741383 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 03:03:58 +00:00
David E. Jones 7fdd5220cf Moved Help link from tab bar to the link section below it as the Help page was NOT a tab, or in other words by clicking on it you go to a screen outside fo the tab set and the tabs disappear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741381 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:32:10 +00:00
David E. Jones afe3dc9c81 A few related changes:
Big refactor of ControlServlet, RequestManager, RequestHandler, and ConfigXMLReader so that simple objects are used instead of Maps within Maps within Maps for the data from the controller.xml file, which results in eliminating hundreds of lines of code including the entire RequestHandler class. I have tested this a lot with different apps that use the ControlServlet differently, but this is a very big change so there could still be issues. Based on this cleanup future issues and new features should be easier and less error prone, and that is why doing it now in order to help with a number of other improvements and bug fixes that are part of this commit.

Also added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues wd in and also going to the same page after login from auth=true or from clicking on the login link.

Related to cleaning up login URLs also changed how the request and parameters passed to a request before a login are saved and used after a login is successful so that it URL parameters go on the URL in a redirect to the original request to make it more transparent, and non-URL parameters just stay in the session and are used when the original request is run again to avoid putting sensitive information like passwords and big information like textarea data in the URL, which has been a problem before.

To see what some of these things combined can do try going to the example app, login, click on the New Example link, then logout in another tab or window, then go back to the New Example page and enter a name and a whole bunch of text in the long description then click Create, the system will show you the login page so enter username/password, and then after login you'll see a nice URL to EditExample with the correct exampleId parameter and all of the data entered before login successfully saved and never appearing in a URL.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741374 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:14:19 +00:00
Marco Risaliti fd589cdd0b To get labels translations it's necessary UtilProperties.getMessage() instead of UtilProperties.getPropertyValue()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741281 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 20:34:33 +00:00
Hans Bakker 077bd4641a the myportal component is functionally complete now having also different page sets for different securitygroups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741129 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 15:18:47 +00:00
Jacopo Cappellato 358b545a97 Fix to avoid the test to fail after recent change to "system" seed data.
By the way: is it correct to have a test rely on demo data like this one?


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741119 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 15:01:34 +00:00
Jacques Le Roux 92570024a7 A patch from Amit Sharma "Extending the capability of configurable product in OFBiz with Freature tree generation technique" (https://issues.apache.org/jira/browse/OFBIZ-2161) - OFBIZ-2161
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741073 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 10:57:26 +00:00
Jacques Le Roux e026b40f9b More explicit labels for now but this needs to be generalized in form widget
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741063 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 10:26:35 +00:00
Hans Bakker 75a0525222 new registration in myportal now also creates a customer request why the registered person would like a userlogin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741062 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 10:20:39 +00:00
Bilgin Ismet Ibryam e7cd2e3bd0 Changed Double parameters to BigDecimal in convertUom and convertUomCustom services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741049 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 08:52:24 +00:00
Jacques Le Roux 2b412a62c4 Better French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741041 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 08:03:01 +00:00
Jacopo Cappellato 8583c2659a Slightly improved ui for form used to add/edit a global gl account.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741034 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 07:30:00 +00:00
Jacques Le Roux 24266dfcc9 <map-to-map map-name="(.*)" to-map-name="(.*)"/>
<map-to-map to-map-name="(.*)" map-name="(.*)"/>

without -name

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740912 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 22:08:33 +00:00
Jacques Le Roux 240f52a598 1) <field-to-request map.*="(.*)" field.*="(.*)" request-name="(.*)"/> => <field-to-request field="$1.$2" request-name="$3"/>
then
2) <field-to-request map.*="(.*)" field.*="(.*)"/> =>  <field-to-request field="$1.$2" request-name="$2"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740830 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 19:11:24 +00:00
Jacques Le Roux 1cb1de05c4 1) <field-to-result map-name="(.*)" field="(.*)" result-name="(.*)"/> => <field-to-result field="$1.$2" result-name="$3"/>
then
2) <field-to-result map.*="(.*)" field.*="(.*)"/> => <field-to-result field="$1.$2" result-name="$2"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740825 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 19:01:58 +00:00
Jacques Le Roux 366209d432 Fix recent wrong changes, investigation continues...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740815 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 18:09:34 +00:00