Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6147

CDAP CLI gives incorrect error message when wrong role name is input

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.5.0
    • Component/s: CLI
    • Labels:
    • Release Notes:
      Improve error message in authorization client and linage client when 404 is returned from the server side.
    • Rank:
      1|hzze27:

      Description

      When running on a secure cluster and using CDAP CLI, CLI throws incorrect error message when wrong role name is typed.
      eg.
      > grant actions ALL on entity instance:cdap to role dasfsad
      Error: 'instance:cdap' was not found.

      While it should complain about the wrong role name dasfsad.

        Attachments

          Activity

            People

            • Assignee:
              ali.anwar Ali Anwar
              Reporter:
              shenggu Shenggu Lu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: