Issue Details (XML | Word | Printable)

Key: CONF-7222
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Samuel Le Berrigaud [Atlassian]
Reporter: Alain Moran (adaptavist.com)
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Confluence

Create user does not trim() usernames

Created: 26/Oct/06 10:22 PM   Updated: 11/Mar/07 09:49 PM
Component/s: Users & Groups
Affects Version/s: 2.2.9
Fix Version/s: 2.3.1

Time Tracking:
Not Specified

Participants: Alain Moran (adaptavist.com), Matthew Jensen [Atlassian] and Samuel Le Berrigaud [Atlassian]
Since last comment: 1 year, 43 weeks, 3 days ago
Resolution Date: 09/Jan/07 09:31 PM
Labels:


 Description  « Hide
When entering users by copy/paste from a document, our dearest doze has a habit of adding a space to the end of a double-click selection ... this results in usernames such as 'myuser ' ... which is causing us issues.

Could the usernames be trimmed of all whitespace before being added?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Samuel Le Berrigaud [Atlassian] added a comment - 09/Jan/07 09:31 PM
Usernames are now trimmed when creating users.

Matthew Jensen [Atlassian] added a comment - 11/Mar/07 09:49 PM
If you create a backup with a user that has not been trimmed (ie: from an old version) you may get this error message when importing into a version of confluence that has this fix.

[sf.hibernate.util.JDBCExceptionReporter] logExceptions Unique constraint violation: SYS_CT_163 in statement [insert into os_user (username, passwd, id) values (?, ?, ?)]

This is because the username is trimmed when importing which causes the duplication problem.