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

Handle different timezone issue while saving audit logs to Solr

    XMLWordPrintableJSON

    Details

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

      Description

      Problem Statement :
      Currently audit event timestamp is converted to UTC timestamp at Plugin end and then it is sent to audit stores, Since Date object picks local timezone info from System, local timezone info is passed to Solr rather than UTC.
      Since Solr engine does the conversion of all received Date object to UTC timestamp, due to mismatched timezone info, Solr again does the conversion on received timestamp, which leads to insertion of wrong event timestamp. if any user tries to search any audit event log then he might not get the expected result or audit logs of provided event.

      Proposed Solution :
      Send new Date object value as audit event time to Solr Doc, if audit store is Solr.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gautamborad Gautam Borad
                Reporter:
                gautamborad Gautam Borad
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: