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

The OpenAM CREST processing chain doesn't contain a RuntimeException handler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.5.0
    • Component/s: rest
    • Labels:
    • Sprint:
      AM Sustaining Sprint 19
    • Support Ticket IDs:

      Description

      If you have a runtime exception happening when using a REST endpoint, this exception may not be printed in any logs.
      Therefore, you can end with a 500 from the client side but no trace of it in the server side.

      The main problem is that our CREST chain in OpenAM doesn't have a RunTimeException handler.

      We should had one that print the exception in the logs.

      How to reproduce the issue

      I faced this issue when testing a sample custom authentication module, which has a missing property.
      For saving times, I would suggest reproducing the problem in an existant module.

      • Copy the amAuthLDAP.properties into WEB-INF/classes
      • Remove the property "a500=Authentication Level"
      • Go the console and try to edit the LDAP configuration

      => you will have a "Not found error."

      If you look the request made by the XUI, you will see that the request

      "http://openam.example.com:28080/openam/json/realm-config/authentication/modules/ldap?_action=schema"

      returns a 500.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.castel Quentin CASTEL
                Reporter:
                quentin.castel Quentin CASTEL
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Time Spent - 2.25h Remaining Estimate - 0.75h
                  0.75h
                  Logged:
                  Time Spent - 2.25h Remaining Estimate - 0.75h
                  2.25h