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

Policy evaluation is failing for multiline policy conditions.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: Ranger
    • Labels:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: