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

Wrong parsing of number with exponents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.8, 2.2.3.1
    • 2.3.1
    • Plugin - JSON
    • UNIX, Windows

    • 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

            maurizio.cucchiara Maurizio Cucchiara
            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