Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3701

Wrong parsing of number with exponents

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.8, 2.2.3.1
    • Fix Version/s: 2.3.1
    • Component/s: Plugin - JSON
    • Environment:

      UNIX, Windows

    • Flags:
      Patch

      Description

      The json reader is not handling correctly the exponential numbers such as 5e-5. For example, 5e-5 is tried to be parsed as long which is incorrect check line 201 org.apache.struts2.json.JSONReader. The dot does not mean that the exponential is meaning an integer.

        Attachments

          Activity

            People

            • Assignee:
              maurizio.cucchiara Maurizio Cucchiara
              Reporter:
              cazula Camilo Azula
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified