Jonas Hartwig created RANGER-3618:
-------------------------------------

             Summary: Javascript JSON serialisation issue in ranger 2.2.0
                 Key: RANGER-3618
                 URL: https://issues.apache.org/jira/browse/RANGER-3618
             Project: Ranger
          Issue Type: Bug
          Components: admin, Ranger
    Affects Versions: 2.2.0
         Environment: Stand alone installation
            Reporter: Jonas Hartwig


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.
 # we cannot edit the policies anymore.
 # 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)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to