Commit Graph
10472 Commits
Author SHA1 Message Date
David E. Jones a0d0a10ebc Resolved some more problems with the general html encoding, most of which are from funny code that should be cleaned up anyway so haven't run into any dilemmas so far; still looking though so could happen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742053 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 11:08:32 +00:00
David E. Jones c62ba66bf2 Fixed issue where controller.xml was not reloading based on cache clear or timeout
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742035 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 09:47:46 +00:00
David E. Jones 3d122767ba Fixed issue with links in footer caused by change to general html encoding in ftl files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742034 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 09:40:32 +00:00
David E. Jones 7d5264a0e8 Fixed appbar issue with html encoding, so general encoding turned back on too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742030 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 09:05:45 +00:00
Hans Bakker 08ba67420f cleanup of the portal pages, reduced number of screens, changed employee myportal, new user without securitygroups now also have his portal page with a profile portlet. only thing is missing is the usage of the sequence number in the portal page and portalpageportlet entity, probably completed next week
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742018 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 08:33:36 +00:00
David E. Jones 8eb602faf7 Commented out lines that cause the general html encoding, need to track down problem with app bar in manager apps
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742016 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 08:18:37 +00:00
Jacopo Cappellato 153ec0eba1 Misc enhancements to the update password screen and events: improved layout, error handling.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742015 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 08:14:58 +00:00
David E. Jones ebd5c3e78f Implemented StringModel extension and BeansWrapper extension to load it in order to encode strings for HTML use; this is only done throught the HtmlWidget class that is part of the screen widget, so won't interfere with other FTL uses; note that there is other experimental code in here for wrapping the GenericValue object for html encoding, but that option wasn't very complete so went this way instead; this option behaves better and is more transparent than that escape x as x?html option for FTL files; there are also a few cleanups of typos and things in here; note that this means we have a different Configuration object and so a different template cache, and so we have different cache settings and such; after applying this I found a few places that encoded things they shouldn't but for the most part it is pretty good; will be committing some changes in applications in a bit to resolve a couple of these issues in ecommerce; all should watch out for funny things showing up as HTML text instead of being interpreted by the browser as HTML, meaning it was encoded; in extreme cases just comment out lines 71-73 of HtmlWidget.java to turn off this encoding
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742013 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 07:40:40 +00:00
Scott Gray 078a08692b Fix NPE reported by Sneha Chaturvedi on the user mailing list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741974 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 22:18:04 +00:00
Jacques Le Roux 8224468123 On Scott's suggestion on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741964 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 21:23:51 +00:00
Jacques Le Roux b2e544ef31 Fix a cut/paste typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741900 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 14:18:52 +00:00
Jacopo Cappellato ceacb9a1bd Fixed bug reported by deepak dixit in OFBIZ-2173: setting a blank password could messed up things.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741886 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 12:28:48 +00:00
Hans Bakker a588477be4 add screenlets to manageportal pages, add descriptions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741861 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 09:03:49 +00:00
David E. Jones cea6620fbd Added general usage of ESAPI HTML and XML encoding for the form widget; removed the old partially implemented use of the StringEscapeUtils stuff; includes attribute on the form field element called encode-output that is true by default so if HTML encoding is not desired then must be set to false
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741857 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 08:56:19 +00:00
Jacopo Cappellato 6f152e26ef Improved create-admin-user-login target.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741855 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 08:43:39 +00:00
David E. Jones 375c48a1c5 Changed for new runEvent method signature, fixes compiler error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741846 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 06:33:05 +00:00
David E. Jones 8cee12a983 Added license header for ASL and note about BSD
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741755 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 22:04:40 +00:00
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
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 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 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
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
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
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
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 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
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
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 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
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
David E. Jones 4bd8c4399b Added XSD catalog file for webapp component, like exists in other components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740697 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 11:10:46 +00:00
Jacques Le Roux 5c95acc38d Thanks to Labels Manager the French translation is now complete
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740338 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 16:24:30 +00:00
Jacques Le Roux 345d64b204 A patch from Bruno Busco " Moving Timestamp to footer" '(https://issues.apache.org/jira/browse/OFBIZ-2164) - OFBIZ-2164
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740299 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 13:21:30 +00:00
Bruno Busco 10a0feba88 Added ExpandAll function in javascript. This allows to expand or collapse all fieldgroups present in a page.
An example on how to use is present in the CommonProductDecorator
TODO: does not work on IE

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740296 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 13:12:49 +00:00
Jacopo Cappellato f46ea50361 Fixed wrong pref group type id.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740249 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 09:07:00 +00:00