The error arises when we use an amount split by a comma, such as 1000,00.00
Steps to reproduce:
Navigate to Rules
Add Cart Total Rule
Click that rule and go to the Edit page
Add 1000,00.00 value and save
Again, click on the rule and go to Edit
Expected Behavior: It should open correctly and without errors, and we should be able to view the saved amount, as is the case with any amount that does not contain a comma.
Observed Behavior: The UI is unavailable due to the following console and browser errors: "Discounts is temporarily unavailable.”
ERROR [http-nio-8080-exec-4][JSPRenderer:66] Unable to render JSP /commerce_discounts/rule/type/cart_total.jsp org.apache.jasper.JasperException: java.lang.NumberFormatException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440) ~[jasper.jar:9.0.75] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) ~[jasper.jar:9.0.75] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) ~[jasper.jar:9.0.75]
- Liferay DXP 7.4
- Commerce 4.0
- The observed behavior is a known concern that has been addressed or included as part of this fix: COMMERCE-12062 and incorporated in update 92+
- Please submit a support ticket with the patch details attached if you require a hotfix or further information as your environment updates.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install the Fixpack or Hotfix in your environment.