Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-166

PythonHandlerModule doesn't set up PythonAuthenHandler registration.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.4, 3.2.8
    • Fix Version/s: 3.3.1
    • Component/s: core
    • Labels:
      None

      Description

      The PythonHandlerModule doesn't set up PythonAuthenHandler registration.

      python_directive_handler(cmd, mconfig, "PythonPostReadRequestHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonTransHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonHeaderParserHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonAccessHandler", val, SILENT);

      1. PythonAuthenHandler missing here.

      python_directive_handler(cmd, mconfig, "PythonAuthzHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonTypeHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonInitHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonLogHandler", val, SILENT);
      python_directive_handler(cmd, mconfig, "PythonCleanupHandler", val, SILENT);

      This means that if one has Require directive in use in conjunction with PythonHandlerModule, you get a 500 error and message in log of:

      configuration error: couldn't check access. No groups file?: /~grahamd/authz/index.py

        Activity

        Hide
        grahamd Graham Dumpleton added a comment -

        Also missing registration of PythonFixupHandler.

        Show
        grahamd Graham Dumpleton added a comment - Also missing registration of PythonFixupHandler.

          People

          • Assignee:
            grahamd Graham Dumpleton
            Reporter:
            grahamd Graham Dumpleton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development