Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2146

Add better error handling to ResourceAuthorizationProvider and improve logging in related classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.2.0
    • Sentry
    • None

    Description

      Targeted changes are:

      1. Separate input and output privileges hierarchy list from authorization checks
      2. Log all relevant outputs for pre and post analyze at DEBUG level
      3. KeyValue constructor threw exceptions earlier without any information. Add more information about attributes to it
      4. Finally in ResourceAuthorizationProvider which deals with doing the authorization comparison, we never gracefully handled exceptions and the hive command would end abruptly. Handling this exception and throwing it back to the client will prompt a better log message on the client side

      Attachments

        1. SENTRY-2146.002.patch
          12 kB
          Na Li
        2. SENTRY-2146.005.patch
          11 kB
          Arjun Mishra
        3. SENTRY-2146.01.patch
          12 kB
          Arjun Mishra
        4. SENTRY-2146.02.patch
          12 kB
          Arjun Mishra
        5. SENTRY-2146.03.patch
          10 kB
          Arjun Mishra
        6. SENTRY-2146.04.patch
          10 kB
          Arjun Mishra
        7. SENTRY-2146.05.patch
          11 kB
          Arjun Mishra

        Issue Links

          Activity

            People

              arjunmishra13 Arjun Mishra
              arjunmishra13 Arjun Mishra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: