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

Policy evaluation is failing for multiline policy conditions.

    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

        1. RANGER-2008.patch
          2 kB
          Nitin Galave

        Issue Links

          Activity

            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: