struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitth'raw'nuruodo (JIRA)" <>
Subject [jira] [Created] (WW-4837) StringConverter adds a decimal place to integers
Date Thu, 03 Aug 2017 23:49:00 GMT
Mitth'raw'nuruodo created WW-4837:

             Summary: StringConverter adds a decimal place to integers
                 Key: WW-4837
             Project: Struts 2
          Issue Type: Bug
          Components: Core
            Reporter: Mitth'raw'nuruodo

Commit 229afea64e77c2dba9eec62b2c339e9fc92c9ec7 caused all inputs recognisable as numbers
to be formatted with at least one decimal place. This includes all integers, which is frequently
undesirable, particularly if they were meant to be, eg:

- identifiers, not for arithmetic;
- strictly validated against an XML schema that does not allow for floating-point numbers;
- subject to length limitations;
- etc

This apparently occurs because all inputs that look like numbers, regardless of format, are
of type {{BigDecimal}} by the time they reach the {{StringConverter}}.

This message was sent by Atlassian JIRA

View raw message