CommandRunner throws KeyError

Bug #1426825 reported by Mark Sapiro
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Mark Sapiro

Bug Description

If a message to the list-request contains a line that would be a command but has the command word terminated with a dot, e.g. a line like

Help. Please unsubscribe me

CommandRunner can throw KeyError. I.e., in this example, it sets modname to 'Mailman.Commands.cmd_help.' and __import__(modname) succeeds, but handler = sys.modules[modname] then throws KeyError because of the trailing dot.

Related branches

Mark Sapiro (msapiro)
Changed in mailman:
milestone: none → 2.1.20
status: In Progress → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers