Item12205: Registration accepts LoginName and then cannot access it
Current State: Closed
Released In: 1.1.6
Target Release: patch
I've been trying to create a unit test for a "delete user" function, porting the tests from AntiWikiSpamPlugin
to the core ManageDotPm tests. The various mappings Foswiki::Func::getCanonicalUserID, and Foswiki::Func::getWikiName seemed to be not working, depending upon the setting of
The problem seems to be that Register and TopicUserMapping will record a LoginName into the mapping table, even though AllowLoginName is disabled. However the various access functions are then unable to find that mapping and report that the user does not exist.
I'm not sure of the correct behavior. When
is disabled, should Register
- Allow it anyway? (current behavior, and the error is in the mappers being unable to find the entries?)
- Silently set it to the WikiName
- Generate an Oops that the LoginName is not permitted.
After some brief IRC discussion, I've implemented the oops message. It really should not be encountered in practice,