Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1183

Log RepositoryException on debug level if obtaining JCR session fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Engine 2.0.4
    • Engine 2.1.0
    • Engine
    • None

    Description

      If the SlingAuthenticator#authenticate method is unable to obtain a JCR session based on the given credentials, a RepositoryException is caught silently without further notice on the exact root cause. While this is an expected behavior, a more verbose logging would be helpful for debugging purposes. Though the handleImpersonation method already provides some pointers as to the initial cause, I'd prefer to have the full stacktrace of the RepositoryException at hand.

      I suggest to log the full RepositoryException on DEBUG level.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            hwong Honwai Wong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: