Author: jleroux
Date: Sat Feb 4 12:20:41 2017
New Revision: 1781662
URL:
http://svn.apache.org/viewvc?rev=1781662&view=revLog:
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
Modified:
ofbiz/trunk/plugins/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
ofbiz/trunk/plugins/ecommerce/webapp/ecomseo/WEB-INF/controller.xml
Modified: ofbiz/trunk/plugins/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/plugins/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1781662&r1=1781661&r2=1781662&view=diff==============================================================================
--- ofbiz/trunk/plugins/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/plugins/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Sat Feb 4 12:20:41 2017
@@ -1837,6 +1837,7 @@ under the License.
<event type="java" path="org.apache.ofbiz.content.data.DataEvents" invoke="serveObjectData"/>
<response name="success" type="none"/>
<response name="error" type="view" value="error"/>
+ <response name="io-error" type="none"/>
</request-map>
<request-map uri="showShoppingList">
Modified: ofbiz/trunk/plugins/ecommerce/webapp/ecomseo/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/plugins/ecommerce/webapp/ecomseo/WEB-INF/controller.xml?rev=1781662&r1=1781661&r2=1781662&view=diff==============================================================================
--- ofbiz/trunk/plugins/ecommerce/webapp/ecomseo/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/plugins/ecommerce/webapp/ecomseo/WEB-INF/controller.xml Sat Feb 4 12:20:41 2017
@@ -27,4 +27,12 @@ under the License.
<description>OFBiz: eCommerce SEO Controller Configuration File</description>
<handler name="jsp" type="view" class="org.apache.ofbiz.ecommerce.webapp.view.JspViewHandler"/>
+
+ <request-map uri="stream">
+ <event type="java" path="org.apache.ofbiz.content.data.DataEvents" invoke="serveObjectData"/>
+ <response name="success" type="none"/>
+ <response name="error" type="none"/>
+ <response name="io-error" type="none"/>
+ </request-map>
+
</site-conf>