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

Improvement on the http response for UnAuthorizedException

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0
    • Component/s: Security
    • Labels:
    • Rank:
      1|i006l3:

      Description

      We are not handling UnauthorizedException consistently for all scenarios. For some of the clients, we do not handle the 403 code, which results in an inaccurate message. This makes debug authorization issue very hard. For example, DatasetServiceClient will always throw DatasetManagementException, but it does not check the response 403 code to put the correct cause in the exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poorna Poorna Chandra
                Reporter:
                yaojie Yaojie Feng
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: