Uploaded image for project: 'FTS'
  1. FTS
  2. FTS-1819

Audit records are not always stored

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Low
    • Resolution: Fixed
    • fts-rest-server 3.12.0
    • fts-rest-server 3.12.1
    • FTS-Flask
    • Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)
    • None

    Description

      The auditing function stores configuration changes into the audit table. The audit table servers as a configuration log, describing which action took place, when and by whom.

      The implementation of the function was missing the Session.commit() call, which means changes in the current session may or may not get propagated.

      def audit_configuration(action, config):
          """
          Logs and stores in the DB a configuration action
          """
          
          ...
          
          Session.add(audit)
          log.info(action)
      

      Attachments

        Issue Links

          Activity

            People

              mipatras Mihai Patrascoiu
              mipatras Mihai Patrascoiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: