[
https://issues.apache.org/jira/browse/JSPWIKI-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex O'Ree resolved JSPWIKI-1362.
---------------------------------
Fix Version/s: 3.0.1
Resolution: Fixed
via https://github.com/apache/jspwiki/pull/616
> Saving an existing user profile fails when the full name has spaces
> -------------------------------------------------------------------
>
> Key: JSPWIKI-1362
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1362
> Project: JSPWiki
> Issue Type: Bug
> Reporter: Alex O'Ree
> Priority: Major
> Fix For: 3.0.1
>
>
> DefaultUserManager.getUserProfile looked up the stored profile by wiki name,
> using the name of the user principal, which is the full name. When the full
> name has spaces it is not the wiki name, so the lookup failed, the profile
> was treated as a new one and saving an existing profile ended with "The login
> name is already taken" (reported on
> [#566|https://github.com/apache/jspwiki/pull/566] and JSPWIKI-1361).
> The profile is now looked up by the login name of the session, and by the
> user principal name as before when that fails.
> Two tests in UserManagerTest fail without the change (profile reported as
> new, DuplicateUserException on save) and pass with it. Checked on a running
> Tomcat 10.1: with the built war, a user with the full name 'Email Test' saves
> the profile (redirect, email stored); the official 3.0.0 war gives the
> 'already taken' message for the same steps. Full reactor passes.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)