Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1067

admin audit logging is not correct when add and delete the configuration from the service repo.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.2
    • Fix Version/s: 0.6.0
    • Component/s: admin
    • Labels:
      None

      Description

      Scenario:
      1. Go to default hdfs repo config.
      2. Add a configuration.
      3. Check the admin audit log.
      4. Then delete the configuration.
      5. Check the admin audit log.
      Error:
      When adding configuration, there are some fields that are not changed recorded in the audit log. The old value and new value are all null.
      When deleting the configuration, the audit log is recorded not correctly.

      For example:I added only one configuration, name is "TestConfig", value is "abc". In the audit log, "TestConfig" is correctly recorded, but several other fields are also recorded, with old value and new value are all null. Then delete it, abc is recorded as the value of other fields other than "TestConfig" in audit log.
      Screenshot is attached.

        Attachments

        1. 0001-RANGER-1067-admin-audit-logging-is-not-correct-when-.patch
          1 kB
          Dongying Jiao
        2. addconfiguration_afterpatch.png
          60 kB
          Dongying Jiao
        3. addconfiguration.png
          101 kB
          Dongying Jiao
        4. deleteconfiguration_afterpatch.png
          50 kB
          Dongying Jiao
        5. deleteconfiguration.png
          109 kB
          Dongying Jiao
        6. RANGER-1067.patch
          0.9 kB
          Dongying Jiao

          Issue Links

            Activity

              People

              • Assignee:
                Dongying Jiao Dongying Jiao
                Reporter:
                Dongying Jiao Dongying Jiao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified