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

Improve the log for isVisible() and error message if the user is not visible to the namespace or app

    XMLWordPrintableJSON

    Details

    • Rank:
      1|i007j3:

      Description

      Now we do not log the results returned from isVisible() method, it should be logged in TRACE or DEBUG level to make it debug easier. Also if the visibility check of the namespace or application fails, we need to give a more meaningful message. For example, if user does not have any privilege on namespace test, and he wants to deploy an app in the namespace, currently the error message is like

       Principal 'Principal{name='yaojie', type=USER, kerberosPrincipal=null}' does not have privileges to access entity 'namespace:test' 

      , we need to give more meaningful message indicating user needs to have privileges on app in order to deploy the app.

        Attachments

          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: