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

Incorrect message returned when reading from a stream with no privilege

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0
    • Component/s: Security
    • Labels:
    • Release Notes:
      Fixed a bug that the stream client gave wrong error message when the authorization check failed for stream read.
    • Rank:
      1|i0036f:

      Description

      When a user does not have privilege to read a stream, and he does get stream test in cdap cli, he gets:
      Error: Server returned HTTP response code: 403 for URL: http://alice@authorization24008-1000:11015/v3/namespaces/authorization/streams/test/events?start=0&end=9223372036854775807&limit=2147483647

      While if we send an event, we get the correct message:
      Error: Principal 'Principal

      {name='alice', type=USER, kerberosPrincipal=null}

      ' is not authorized to perform action 'WRITE' on entity 'stream:authorization.test'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yaojie Yaojie Feng
                Reporter:
                yaojie Yaojie Feng
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: