The GitHub Actions job "Build and push docker images" on ofbiz-framework.git 
has failed.
Run started by GitHub user asfgit (triggered by asfgit).

Head commit for run:
50feff86755799f993eabc185b922610903073f6 / Jacques Le Roux 
<jacques.le.r...@les7arts.com>
Fixed: Support non-breaking spaces in numeric strings (OFBIZ-13168)

In forms, numeric fields are represented by an input with type "text", which
allows user to enter/paste all characters, including non-breaking spaces
('\u00A0', '\u202F', '\u2007'), like "29 000" (the space is \u202F).

More specifically, a user can copy/paste a string from an external tool which
uses non-breaking spaces as a thousands separator, and expect that a visually
correct string will be correctly interpreted by OFBiz.

OFBiz uses java.text.NumberFormat::parse method, which does not support
non-breaking spaces : characters after this kind of spaces are simply ignored,
and "29 000" becomes "29".

Using [^\\p{IsAlnum}\\p{IsPunct}] regexp this replaces all chars that can be
a problem for NumberFormat class.

Conflicts handled by hand in
ObjectType.java
ObjectTypeTests.java

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

With regards,
GitHub Actions via GitBox

Reply via email to