Commit Graph
485 Commits
Author SHA1 Message Date
Jacques Le Roux 5cd12b29fc Fixed: Missing file results in error
(OFBIZ-9198)

When accessing a file/image in ecomseo (only seo version) that is physically 
missing or the dataresource attribute isPublic=="N" the request results 
in a loop.

jleroux: to break the loop in case or error, I simply decided to return a 
response of type none. I also added the same for io-error which can be returned
by the DataEvents class, also in ecommerce controller

Thanks: Ingo Wolfmayr for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781662 13f79535-47bb-0310-9956-ffa450edef68
2017-02-04 12:20:41 +00:00
Jacopo Cappellato c4d4e9d870 Improved: moved the logic/implementation of OFBiz legacy authentication
tokens from the LoginWorker class to a new class named ExternalLoginKeysManager.

Improved Javadocs in the new class.
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1775807 13f79535-47bb-0310-9956-ffa450edef68
2016-12-23 09:35:26 +00:00
Jacques Le Roux 0a53a9176f Fixed: deleteCustomerTaxAuthInfo page called from /ecommerce/control/viewprofile
(OFBIZ-4106)

Completes previous commits at r1764158/76: removes createCustomerTaxAuthInfo and
 updateCustomerTaxAuthInfo requests which are now useless



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1764178 13f79535-47bb-0310-9956-ffa450edef68
2016-10-10 20:26:56 +00:00
Jacques Le Roux 197327f52f Fixed: deleteCustomerTaxAuthInfo page called from /ecommerce/control/viewprofile
(OFBIZ-4106)

Completes previous commit at r1764158: moves deleteCustomerTaxAuthInfo request 
from ecommerce to order where it's only used


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1764176 13f79535-47bb-0310-9956-ffa450edef68
2016-10-10 20:16:46 +00:00
Jacopo Cappellato 96b22285f4 Implemented: removed the "controller" related logic, that is now provided by the
new ControlFilter, from the ContextFilter; modified existing applications to use 
the two filters in a chain; removed from the other specialized filters all the 
logic that was duplicated or extended from ContextFilter.

A web application, in order to leverage the OFBiz framework, requires that a 
series of objects are in its contexts (servlet context, session and request) 
such as "delegator", "delegatorName", "dispatcher", "security" etc. etc...
This setup is performed by the logic contained in the servlet filter implemented 
by the ContextFilter class.
The execution of this logic is required for the application to run properly.
However, before this commit, in the ContextFilter there was other logic, related 
to access control and redirection rules (some of them performed in coordination 
with the ControlServlet), making it difficult to deploy this filter in all the 
web applications, especially the ones that implement special handling of paths.
In fact, this filter was deployed in most but not all the web application in the 
OFBiz codebase: specifically it was not deployed in web applications that 
require the execution of other filters (e.g. CatalogUrlFilter, etc...) like the 
ones in the "ecommerce" and "solr" components.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761304 13f79535-47bb-0310-9956-ffa450edef68
2016-09-18 08:08:30 +00:00
Jacopo Cappellato d81dedb9e2 Improved: removed the "ecomclone" web application from the "ecommerce"
component.

This web application was created to provide an example of how to leverage the 
mechanism to extend another web application: since then the mechanism has been 
adopted by most of the other OFBiz applications, making this example no more 
useful.  


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761301 13f79535-47bb-0310-9956-ffa450edef68
2016-09-18 06:23:55 +00:00
Deepak Dixit 8f3141cd46 (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Ashish Vijaywargiya 923342c1fc Applied patch from jira issue - OFBIZ-7705 - Remove Google Checkout component from specialpurpose as it was discontinued.
Thanks Ravi for removing the reference of Google Checkout from everywhere.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1751393 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 04:24:53 +00:00
Jacques Le Roux 4deae05a38 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Jacques Le Roux a98ac13d9d Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux b20816bfa8 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Deepak Dixit dac494ac6a (OFBIZ-7237) Relocate .groovy files in the specialpurpose/ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747786 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:35:12 +00:00
Jacques Le Roux 5e65059e4d A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Deepak Dixit c4b52ebe5c (OFBIZ-6810) Removed some unused screen and ftl, found during ftl cleanup. I took extra care while removing these code this should not break anything.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1745500 13f79535-47bb-0310-9956-ffa450edef68
2016-05-25 15:05:50 +00:00
Deepak Dixit 374449d47e (OFBIZ-7021) Renamed specialpurpose ecommerce component ftl file name from lower camel case to upper camel case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1744942 13f79535-47bb-0310-9956-ffa450edef68
2016-05-21 13:43:11 +00:00
Jacques Le Roux 195def6c07 Closes "Move all Groovy scripts in components WEB-INF/actions sub-folders" - https://issues.apache.org/jira/browse/OFBIZ-6981
Currently there are few Groovy scripts not in components WEB-INF/actions sub-folders.
Before moving Groovy scripts as we decided in OFBIZ-6810 we should move the few Groovy scripts not in components WEB-INF/actions sub-folders to these WEB-INF/actions sub-folders. So we will not miss one and it will be a "straightforward" task to move then as we decided in OFBIZ-6810.
Note: most of the Groovy scripts not in components WEB-INF/actions sub-folders are related with events. But not all events related Groovy scripts are not placed components WEB-INF/actions sub-folders, just a very few. There are other cases were Groovy scripts are not in components WEB-INF/actions sub-folders, like ShowProductionRun.groovy and OrderReportPrepare.groovy...





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1743949 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 18:44:19 +00:00
Deepak Dixit af00cd6aa0 (OFBIZ-7043) Remove commented code labeled as "TO BE REMOVED" since 2008.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742503 13f79535-47bb-0310-9956-ffa450edef68
2016-05-06 06:48:38 +00:00
Jacques Le Roux bfa06e0065 Things got totally wrong with r1742196 which contained much more than expected.
This reverts things which should not have been committed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742197 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:03:11 +00:00
Jacques Le Roux becdb02a08 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Completes in screens the changes done in forms at r1741873. I then replaced few form lists by grids, where it was possible to do it with regexp.
Also complete StatsForms.xml to use only grids and "searchList" form in ecommerce ContentForms to NOT use grid (not called in screen)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1742196 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 20:50:10 +00:00
Deepak Dixit 6d65904ec1 (OFBIZ-6821) relocate .ftl files in the specialpurpose/ecommerce component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740485 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 11:42:03 +00:00
Jacques Le Roux a0e2f5a749 A patch from James Yong for <<Tree showing categories has empty labels>> https://issues.apache.org/jira/browse/OFBIZ-6970
Problem
=======
Go to https://localhost:8443/ecommerce/
There are missing labels in the categories section



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737156 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 19:29:24 +00:00
Jacques Le Roux f790372856 Reverts r1735777, it was for "Credit card valdation does not work properly during anonymous quick checkout process" - https://issues.apache.org/jira/browse/OFBIZ-1585
Few tests don't pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736164 13f79535-47bb-0310-9956-ffa450edef68
2016-03-22 09:18:59 +00:00
Divesh Dutta c62106f466 Fixed : Credit Card validation does not work properly during anonymous quick checkout process. Added new method checkoutValidation which will validate if shipping method and payment method are in cart and if not available then this method will return error. Thanks Jagpreet Kaur for the patch and Late Raj Saini for reporting this bug.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735777 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 14:38:48 +00:00
Deepak Dixit aec99281a5 (OFBIZ-6859) Fixed Search.groovy, use correct method for analyzer, QueryParser and TopScoreDocCollector.
Thanks Pierre for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735756 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 11:40:05 +00:00
Jacopo Cappellato f89c50833e OFBIZ-6568 With the implementation of @BaseScript annotations (introduced with Groovy 2.3.0) something was broken in the CompilerConfiguration.setScriptBaseClass method and an error is thrown when our scripts are executed; the workaround is to execute at startup a script containing the @BaseScript annotation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729809 13f79535-47bb-0310-9956-ffa450edef68
2016-02-11 11:24:51 +00:00
Jacopo Cappellato aa6c3a64ab OFBIZ-6568: upgraded Groovy to the latest version (2.4.5).
[CVE-2016-2170] The infamous Java serialization vulnerability


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729609 13f79535-47bb-0310-9956-ffa450edef68
2016-02-10 14:38:00 +00:00
Jacques Le Roux cfe634bb57 To be consistent with r1729002, removes also one of the ".properties" part which was left in ecommerce/login.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729004 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:33:13 +00:00
Jacques Le Roux 5ca66960d4 A modified patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate. 

jleroux: In this is the 2nd commit from the 3rd patch (the 2nd had issues) I fixed 2 "typos" I spotted while reviewing in
  ecommerce/customer/editcontactmech.ftl
  ecommerce/customer/newcustomer.ftl
where "UtilProperties" was not replaced



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1729002 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:23:49 +00:00
Jacques Le Roux c0f0542a53 Reverts r1728959 because of misc. issues with the patch, see my comment at https://issues.apache.org/jira/browse/OFBIZ-6884
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1728961 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 13:59:41 +00:00
Jacques Le Roux f50fd14109 A patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1728959 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 13:18:50 +00:00
Jacques Le Roux b9a4eb11a2 Removes forceHttpSession feature - https://issues.apache.org/jira/browse/OFBIZ-6879
We should always use HTTPS as explained at OFBIZ-6849

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1728381 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 22:07:10 +00:00
Jacques Le Roux bb041ec5de Fixes "Error on the Split Payment button from the Quick Finalize Order screen" https://issues.apache.org/jira/browse/OFBIZ-6743
Error in trunk:
ERROR rendering error page [/error/error.jsp], but here is the error text: org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name [checkoutpayment]
Error in stable and old:
org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name [checkoutpayment]

Vyom Jain added a comment - 22/Nov/15 07:50
This is an issue even in 09.04 and 10.04 code, so it has been there for sometime now.

Scott Gray added a comment - 03/Jan/16 05:43
The view-map was moved to ecommerce in r544053. Probably because the view-map wasn't referenced in the controller.xml for ordermgr. It is actually used though as a view override in component://order/webapp/ordermgr/entry/checkoutoptions.ftl
Just needs to be restored in the controller and have the screen moved back.

jleroux: So I moved back from ecommerce to order (with few adaptations)
* the checkoutpayment.ftl file 
* the order controller view-map
* the screen name checkoutpayment

I tested in both order and ecommerce, works! I will try to backport, let's see...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1726828 13f79535-47bb-0310-9956-ffa450edef68
2016-01-26 15:43:17 +00:00
Jacques Le Roux 0a982250e6 Temporary fix for "UtilXml.LocalResolver.resolveEntity] could not find LOCAL DTD/Schema with publicId [null] and the file/resource is [web-app_3_0.xsd]" - https://issues.apache.org/jira/browse/OFBIZ-6807
As suggested by Deepak keeps only <<web-app version="3.0">> in web.xml files instead of whole xmlns and schemaLocation. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1726388 13f79535-47bb-0310-9956-ffa450edef68
2016-01-23 11:52:08 +00:00
Deepak Dixit e91538404a OFBIZ-(6655) Add session tracking mode and make cookie secure for all special purpose component. Also updated the web-app version for web.xml files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1724940 13f79535-47bb-0310-9956-ffa450edef68
2016-01-16 09:30:08 +00:00
Jacques Le Roux aac4664ceb An augmented patch from Jason Reast-Jones for "Broken filter links if using ecommerce Layered Navigation" https://issues.apache.org/jira/browse/OFBIZ-6798
If you enable Layered Navigation in the ecommerce (via CatalogScreens.xml) the Sub-Category and color filter links have no closing </a> tag.

jleroux: I had also to change LayeredNavigation.groovy

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1724566 13f79535-47bb-0310-9956-ffa450edef68
2016-01-14 09:49:48 +00:00
Deepak Dixit c4778a99d8 (OFBIZ-6797) Applied patch from jira issue OFBIZ-6797
====================================================================
Small typo in ecommerce productdetail.ftl would prevent similar products by feature from rendering if the related functionality is enabled in ProductDetailgroovy.

<#if comsmonFeatureResultIds?has_content>

should read

<#if commonFeatureResultIds?has_content>

Introduced in markup refactor 816465
====================================================================

Thanks Jason Reast-Jones for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1724402 13f79535-47bb-0310-9956-ffa450edef68
2016-01-13 11:47:18 +00:00
Deepak Dixit 3b37b8d3a8 (OFBIZ-3074) Applied slightly modified patch from OFBIZ-3074
============================================================ HTML clean up for editShoppingList.ftl.
============================================================ 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1721092 13f79535-47bb-0310-9956-ffa450edef68
2015-12-21 05:25:56 +00:00
Jacques Le Roux 8c0a24ab31 Prevents a possible "NPE", found in trunk demo logs (it's a treasure I will continue to dig in...)
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> lastContent.description  [in template "component://ecommerce/webapp/ecommerce/content/viewcontent.ftl" at line 38, column 38]



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1721067 13f79535-47bb-0310-9956-ffa450edef68
2015-12-20 21:14:05 +00:00
Ashish Vijaywargiya abbae0ecb6 Applied patch from OFBIZ-6777 - Product weight field enhancements
================================
There are three sets of dimensions in the Product entity.
(productHeight, shippingHeight), (productWidth, shippingWidth), (productDepth, shippingDepth) but in case of weight, there is another set of dimension field weight and productWeight which are inconsistent in nature.
Fix this thing and correct all instances of this in the framework.
=================================
Thanks Suraj for reporting the issue and providing the patch for the same. Thanks Jacopo and Pierre for discussing the issue with Suraj.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1720900 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 11:32:08 +00:00
Deepak Dixit 1e2b2fe07a (OFBIZ-2985) Html cleanup of advanced search page.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1720887 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 07:20:23 +00:00
Jacques Le Roux 7b6a1ef3ce Reverts r1715506, I crossed many issues, reported on dev ML and OFBIZ-6655
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1716036 13f79535-47bb-0310-9956-ffa450edef68
2015-11-24 06:11:19 +00:00
Jacques Le Roux e1dfe82bb3 Last categories section in e-commerce pages is broken. OFBIZ-6742
jleroux: This initially was my error in r1705417, So I simply reverted the change in r1715536 done for OFBIZ-6742 and also reverted r1705417 in this file. I will check other changes done in r1705417

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715573 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 21:01:52 +00:00
Mridul Pathak 94a2e779eb [OFBIZ-6742] Last categories section in e-commerce pages is broken. Applying patch from OFBIZ-6742. Thanks Amardeep Singh Jhajj for reporting the issue and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715536 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 15:02:30 +00:00
Mridul Pathak 7a4968ba03 [OFBIZ-6534] Same Billing Address generates an error. Continue button was generating error as well. Applying patch from OFBIZ-6534. Thanks Pierre Smits for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715531 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 14:23:05 +00:00
Deepak Dixit 0ad816b159 (OFBIZ-6655) Applied patch from jira issue.
============================================================
- Added session cookies config for ecommerce,ecomseo and ecomclone web.xml. 
- Used web-app 3.0 version for web-app
- Re-arrange description and display-name attribute as per the web-app structure.

Thanks Rahul for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715506 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 12:42:30 +00:00
Jacques Le Roux 511915c661 No functional change, completes r1713985 ("Remove superfluous .properties extension from EntityUtilProperties requests" https://issues.apache.org/jira/browse/OFBIZ-6719) for groovy files (nothing left elsewhere)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1713989 13f79535-47bb-0310-9956-ffa450edef68
2015-11-12 09:32:13 +00:00
Jacques Le Roux b528ce3c3f Completes r1709882 for <<Possible static XSS issue with Content>> https://issues.apache.org/jira/browse/OFBIZ-6669
As explained in OFBIZ-6669 last comments, contrary to what I did in ContentWorker class, when I before did the work on *ContentWrapper classes I did not use the sanitizer but only an encoder (either HTML or URL).
Because I wrongly supposed that only plain text was used there and certainly my lazy mind thought it was easier because of the URL encoderType to also handle.

When the encoderType is HTML, we now use the sanitizer in *ContentWrapper classes, and ContentWorker.java has also been adapted. 
For that I enhanced the UtilCodec class. The sanitizer is only used when HTML is requested, else the sanitize() method simply calls the encode() method.

I removed the content.sanitize property in content.properties and added a sanitizer.permissive.policy property in the new owasp.properties (in base config) with some explanations. This allows for more configuration.

I changed the line 85 in productsummary.ftl to use an HTML content wrapper, same in minilastviewedcategories.ftl. 
To be totally complete, we should change *lines like* in productsummary.ftl line 85 to use an HTML content wrapper.
Not easy to spot but anyway those not done will simply not totally show well, without any security impacts.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1713634 13f79535-47bb-0310-9956-ffa450edef68
2015-11-10 13:40:22 +00:00
Jacques Le Roux 8c14d3744d Fixes "ecommerce screen exception" https://issues.apache.org/jira/browse/OFBIZ-6665 reported by Wai
I missed this hidden ProductConfigItemContentWrapper class while working on r1705329 and sequels. I checked there are no other *ContentWrapper classes left now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1707857 13f79535-47bb-0310-9956-ffa450edef68
2015-10-10 10:38:49 +00:00
Arun Patidar da04c7ce72 [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Jacques Le Roux 33bfc71dfc Fixes a typo introduced with r1705329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705532 13f79535-47bb-0310-9956-ffa450edef68
2015-09-27 12:22:51 +00:00