Author: jleroux
Date: Fri Feb 24 18:36:04 2012
New Revision: 1293376
URL:
http://svn.apache.org/viewvc?rev=1293376&view=revLog:
A patch from Uwe Allner "Download link for digital products on order history page contains file name, preventing correct resolve of the request"
https://issues.apache.org/jira/browse/OFBIZ-4711I created a product with product type "Finished/Digital Good", and added product content of type "Digital download", providing a file (i.e. some.pdf).
The download link in the order history of the ecommerce application after purchasing the product is rendered as
"/ecommerce/control/downloadDigitalProduct/some.pdf?dataResourceId=10060".
The file name in this URL prevents resolving the correct service (method), and instead just a "404 Not found" is generated.
The link "/ecommerce/control/downloadDigitalProduct?dataResourceId=10060" works as expected.
Modified:
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl?rev=1293376&r1=1293375&r2=1293376&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl Fri Feb 24 18:36:04 2012
@@ -112,7 +112,7 @@ under the License.
<td>${downloadOrderRoleAndProductContentInfo.contentName?if_exists}</td>
<td>${downloadOrderRoleAndProductContentInfo.description?if_exists}</td>
<td>
- <a href="<@ofbizUrl>downloadDigitalProduct/${downloadOrderRoleAndProductContentInfo.contentName?if_exists}?dataResourceId=${downloadOrderRoleAndProductContentInfo.dataResourceId}</@ofbizUrl>" class="button">Download</a>
+ <a href="<@ofbizUrl>downloadDigitalProduct?dataResourceId=${downloadOrderRoleAndProductContentInfo.dataResourceId}</@ofbizUrl>" class="button">Download</a>
</td>
</tr>
</#list>