Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2995

json contains NaN value parsing failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 1.6.0
    • 2.1.0
    • Server
    • None

    Description

      If the proxy address returns JSON, which contains something similar to xxx: NaN, then knox will fail to parse. Therefore, support for parsing NaN is added.

      I click on the page with return json and the content of Resopnse is empty. like this :

       

      Checking the gateway.log log shows the following error message.

      The display results after my repair are as follows: 

       

       

      Attachments

        1. KNOX-2995.patch
          1 kB
          zhaoshuaihua
        2. screenshot-1.png
          119 kB
          zhaoshuaihua
        3. screenshot-2.png
          232 kB
          zhaoshuaihua
        4. screenshot-3.png
          502 kB
          zhaoshuaihua

        Issue Links

          Activity

            People

              beryl_zsh zhaoshuaihua
              beryl_zsh zhaoshuaihua
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m