GrouperOAuthSigningKey.initializeIfNeeded() fails with "no open GrouperSession" on first MCP request

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • 7.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      On a fresh deployment, the first MCP request triggers RSA key pair generation. saveConfigValue calls GrouperConfigHibernate.saveOrUpdate() which triggers AuditEntry.saveOrUpdate() requiring a GrouperSession. The MCP filter does not establish one.

      Changes:

      • GrouperOAuthSigningKey.java — Wrapped the key save in GrouperSession.startRootSession() with {{finally { GrouperSession.stopQuietly() }}}

            Assignee:
            Chris Hyzer
            Reporter:
            Chris Hyzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: