Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-7118

RuntimeExceptions are not captured in audit logs

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.0.0
    • Fix Version/s: None
    • Component/s: audit logging, rest
    • Labels:
    • Sprint:
      AM Sustaining Sprint 19, AM Sustaining Sprint 20, AM Sustaining Sprint 21

      Description

      Whilst trying to reproduce OPENAM-6997 I've seen a bug in the auditResponse implementation, whereby the auditing code only captured checked exceptions and it ignores RuntimeExceptions.
      A simple solution for that would be to make sure that the auditing filter also logs in the "thenOnRuntimeException" branch of the Promise logic.

      Steps to reproduce:

      • call a REST endpoint and make sure that the REST endpoint throws a RuntimeException
      • check the audit logs for entries corresponding to that failure.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.castel Quentin CASTEL [X] (Inactive)
                Reporter:
                peter.major Peter Major [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: