The GitHub Actions job "Java CI with Gradle" on ofbiz-framework.git has failed.
Run started by GitHub user nmalin (triggered by nmalin).

Head commit for run:
d0a5c8e690c5d74ead735d3f518d365d289416d3 / Nicolas Malin 
<nicolas.ma...@nereide.fr>
Improved: Add uri shortener function (OFBIZ-13154) (#841)

This improvement offer the possibility to use a shortener url to call ofbiz 
when it render a url.

The origin requirement is to send by email a url to contact OFBiz without any 
information on technical or functionnal context like JWToken, userLogin, 
orderId, partyId and so on. OFBiz forward only a short reference that match the 
actual uri wanted.

Example :
  * ecommerce/myaccount/order/ORD10034 -> s/tiozerzaze
  * 
ecommerce/myaccount?token=JWT[more..than..100]axdr&userLoginId=m...@ofbiz.org 
-> s/epsserlner

When a request arrive in OFBiz with the pattern s/{shortener}, the request 
handler forward to matched uri.

To generate a shortener on freemarker template just use it like it :

   <@ofbizUrl pathShortener="true">${MyBigUriToSecure}</@ofbizUrl>

For email template it's ugly recommand to use webSiteId and fullPath

   <@ofbizUrl webSiteId="MyWebSite" fullPath="true" 
pathShortener="true">${MyBigUriToSecure}</@ofbizUrl>

With this you can have a url like this : https://mywebsite.mydomain/s/rytedqzdfd

At this time only <@ofbizUrl macro freemarker support it.

Report URL: https://github.com/apache/ofbiz-framework/actions/runs/11686732647

With regards,
GitHub Actions via GitBox

Reply via email to