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

Policy evaluation is failing for multiline policy conditions.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Ranger
    • None

    Description

      Policy evaluation is failing for multi-line policy conditions.

      To Reproduce :
      Create tag-based policy with multi-line policy condition and also policy condition should contain comma in it.
      eg ctx.getAttributeValue("DATA_ATR", "name").equals("data_val");

      Expression entered in policy-condition is broken into 2 values as follow:

        "conditions": [
          {
            "type": "expression",
            "values": [
              "ctx.getAttributeValue(\u0027DATA_ATR\u0027",
              " \u0027name\u0027).equals(\u0027data_val\u0027)"
            ]
          }
        ],

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nitin.galave Nitin Galave
            nitin.galave Nitin Galave
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment