MCP servlet thread locals and GrouperContext not initialized

XMLWordPrintable

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

      When MCP tools call GrouperServiceLogic methods, GrouperServiceJ2ee.retrieveHttpServletRequest() returns null because doFilter() bypasses /mcp paths before setting thread locals. Additionally, GrouperContext is null causing a second failure.

      Changes:

      GrouperServiceJ2ee.java — Set threadLocalRequest and call GrouperContext.createNewDefaultContext(GrouperEngineBuiltin.MCP, false, false) in the MCP bypass block with try/finally cleanup
      GrouperEngineBuiltin.java — Added new MCP("grouperMcp") enum value

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

              Created:
              Updated:
              Resolved: