Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3618

Javascript JSON serialisation issue in ranger 2.2.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0, 2.3.0
    • None
    • admin, Ranger
    • Stand alone installation

    Description

      Hi,

       

      we have our own minimal minio plugin. Works fine with ranger 2.1.0. However from version 2.2.0 we start seeing two errors which might be related.

      1. we cannot edit the policies anymore.
      2. existing policy items show as in["<resource>"] the ui as to before as <resource>

      I attach the service def and the policy to the ticket as json files.

      The JS error:

      RangerPolicyForm.js:706 Uncaught TypeError: Converting circular structure to JSON
          --> starting at object with constructor 'HTMLInputElement'
          |     property 'jQuery351044576576053749032' -> object with constructor 'Object'
          |     property 'uiTagit' -> object with constructor 'e.<computed>.<computed>'
          |     property 'element' -> object with constructor 'me.fn.init'
          — property '0' closes the circle
          at JSON.stringify (<anonymous>)
          at e.<computed>.<computed>.source (RangerPolicyForm.js:706:1)
          at e.<computed>.<computed>.s [as source] (jquery-3.5.1.min.js:2:1)
          at e.<computed>.<computed>._search (jquery-ui.min.js:9:1)
          at e.<computed>.<computed>._search (jquery-ui.min.js:6:1)
          at e.<computed>.<computed>.search (jquery-ui.min.js:9:1)
          at e.<computed>.<computed>.search (jquery-ui.min.js:6:1)
          at e.<computed>.<computed>.<anonymous> (jquery-ui.min.js:9:1)
          at i (jquery-ui.min.js:6:1)

      Attachments

        1. Screenshot 2022-02-11 at 13.15.35.png
          9 kB
          Jonas Hartwig
        2. minio-tmp-policy.json
          0.7 kB
          Jonas Hartwig
        3. minio-service-def.json
          2 kB
          Jonas Hartwig
        4. minio-service.json
          0.3 kB
          Jonas Hartwig

        Activity

          People

            Unassigned Unassigned
            jonas.hartwig Jonas Hartwig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: