Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22771

Jsonpath returns unpredictable type for large numbers

    XMLWordPrintable

Details

    • Team A
    • Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023)
    • 1

    Description

      Steps to reproduce:

      1. Create new item ("Numeric (unsigned)") with "Preprocessing steps": "Jsonpath"
        $.bignumber
        
      2. Press "Test all steps" and supply value with
        {"bignumber":1504135699244380}
        
      3. Press "Test"

      Result:
      We will receive "Error"

      Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "1.50413569924438E+15"
      

      Expected:
      We will receive without "Error"

      1504135699244380
      

      P.s:
      If we supply a bit increased value (1504135699244380+1 = 1504135699244381)

      {"bignumber":1504135699244381}
      

      We will receive (as we should):
      1504135699244381

      Attachments

        Issue Links

          Activity

            People

              dgoloscapov Dmitrijs Goloscapovs
              konstantin.ilyasov Konstantin Ilyasov
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: