David E. Jones
c273a99919
Changed ContentWrapper classes to use the new StringWrapper class; some cleanups required like not trying to Base64 and URLEncoder encode the strings coming out of it, instead change those back to a String so that the general html encoder will get them
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742413 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 11:58:47 +00:00
David E. Jones
5d8d243a26
A simple StringWrapper object that can be used to get around the general HTML auto-encoding now done in FTL rendered through the Screen Widget; just call the static method to wrap it and it will insert fine and the encoder will leave it alone
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742412 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 11:55:07 +00:00
David E. Jones
1859744a3f
Updated a few service defs that need to support html coming in, all using safe html for now
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742394 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 11:05:34 +00:00
David E. Jones
fbfc909c10
license notice updates for antisamy library and the nekohtml library it needs
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742355 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 09:36:30 +00:00
David E. Jones
09825430f1
Added new allow-html tag on the attribute, auto-attribute, and override elements; has 3 options: none, safe, and any; the comments in the XSD file describe what each of these do; the important thing to know is that none is the default meaning no html is allowed; if html is needed use safe and look at the antisamy-esapi.xml file to see policy details; in extreme trust cases use any where any html is allowed; note that many services need updating which should allow at least safe html, and it may take some time to discover all of those and get them handled; please send in issues and requests for service attributes that should allow safe html
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742352 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 09:34:34 +00:00
David E. Jones
7eecc940c3
Changed so that header links for profile, order history, etc are shown when user is not logged in, but not shown when user is anonymous; in some cases it is nice to not show links a user can't use, but in this case they are convenient as the system will simply ask the user to login before showing them the page, so they are better there than not
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742351 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 09:28:53 +00:00
Ashish Vijaywargiya
92e55bb257
Applied patch from jira issue no. OFBIZ-2174 (Request with missing security attributes not getting executed)
...
Thanks Pranay Pandey for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742335 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 08:55:35 +00:00
Hans Bakker
9beeab3cc2
in the project find list in the project manager only show projects to which the logged on user has access to. als correct small typo in portalSeed data
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742330 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 08:38:01 +00:00
Hans Bakker
d4afd2a5bb
add the optional parameters 'distinct' and 'fieldList' to the performFind service
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742328 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 08:36:08 +00:00
Hans Bakker
cd8f50cef8
corrections of task sub buttons
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742279 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 05:56:47 +00:00
Hans Bakker
79b5011d48
some fault fixing and added check on ownership to portalPage services.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742251 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 04:30:53 +00:00
David E. Jones
9075027988
Some cleanups, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742238 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 03:16:02 +00:00
David E. Jones
150ebb4beb
Fixed issue with general html encoding of String objects in FTL files being applied to dynamic JavaScript from groovy files by leaving them as StringBuffers, ie just removing the toString calls
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742234 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 02:34:23 +00:00
Jacques Le Roux
619487614d
Better label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742166 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 21:10:02 +00:00
Jacques Le Roux
d33460b61d
Typo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742165 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 21:07:42 +00:00
Jacques Le Roux
9819d35d61
To close "Providing Functionality of ProductFeatureIactn Entity" https://issues.apache.org/jira/browse/OFBIZ-2170 - OFBIZ-2170
...
It would have been better if we had prevented to show incompatible options as soon we know it (when we select other features). This means building js functions embedded in groovy and I don't have time for that...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742163 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 20:58:12 +00:00
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
a707f7fa10
A few cleanups plus a couple of fixes for problems caused by the new html encoding from screen widget included files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742014 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 07:44:20 +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
Marco Risaliti
fd06ea4d64
A missing $ to get a label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741979 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 23:32:16 +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
Marco Risaliti
3c8e2cdda3
Some small more cleaning on Humanres labels discovering it from the new upcoming Label manager references tool
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741972 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 22:12:21 +00:00
Jacques Le Roux
2b46e67795
Better French translation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741966 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 21:30:26 +00:00
Jacques Le Roux
55f65b8098
We need the same than in r741964 here
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741965 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 21:28:37 +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
Marco Risaliti
8e0a2866fb
Change tabs to 4 spaces introduced in my previous commit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741963 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 21:15:19 +00:00
Marco Risaliti
8ebdd5e621
Some small more cleaning on Accounting labels discovering it from the new upcoming Label manager references tool
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741959 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 21:01:31 +00:00
Jacques Le Roux
03dbd9a377
A patch from Sumit Porwal "On find orders form, user can not select multiple Role Types however the "findOrders" service supports it." ( https://issues.apache.org/jira/browse/OFBIZ-2136 ) - OFBIZ-2136
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741948 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 19:58:28 +00:00
Jacques Le Roux
94c9e25268
The 1st part of Arpit Singh Pandya's patch in "Providing Functionality of ProductFeatureIactn Entity" ( https://issues.apache.org/jira/browse/OFBIZ-2170 ) - OFBIZ-2170
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741912 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 17:04:56 +00:00
Jacques Le Roux
b84d7590d5
Complete r741906
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741908 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 16:56:54 +00:00
Jacques Le Roux
04006ec185
A modified patch from Karim Rahimpur "Quote item view improvements (when productId is not specified" ( https://issues.apache.org/jira/browse/OFBIZ-2120 ) - OFBIZ-2120
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741906 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 15:56:57 +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
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