Discounts is temporarily unavailable errors in the case with any amount that does contain a comma

Issue

  • The error arises when we use an amount split by a comma, such as 1000,00.00

    Steps to reproduce:

    1. Create Discount

    2. Navigate to Rules

    3. Add Cart Total Rule

    4. Click that rule and go to the Edit page

    5. Add 1000,00.00 value and save

    6. Saves successfully.

    7. 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]

Environment

  • Liferay DXP 7.4
  • Commerce 4.0 

Resolution

  • 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+

Additional Information

  • 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.
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助