#12246 closed defect (duplicate)
trac-admin can't handle SIDs with single quotes
Reported by: | glinders | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/console | Version: | 1.0 |
Severity: | normal | Keywords: | trac-admin session |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have a trac user with username do'neill.
When I try to add a name and email address using:
trac-admin . session name "do'neill:1" "Daniel O'Neill"
I get error:
ValueError: No closing quotation
I've tried escaping the single quote in several different ways to no avail.
The same error is returned for:
trac-admin . session list "do'neill"
If I list all SIDs, the name shows up properly:
trac-admin . session list SID Auth Last Visit Name Email ------------------------------------------------------------------------------------------------------ 06064eb12e5a92df99d1a427 0 2015-11-10 604e0bf582a3fde77ceb35f9 0 2015-07-29 bwilliams 1 2013-05-20 Ben Williams bwilliams@xxx.com do'neill 1 2015-08-28 rglassey 1 2015-08-28 Robert Glassey rglassey@xxx.com
I can't change the username because they are passed from LDAP.
I've attached my Trac about page
Attachments (1)
Change History (5)
by , 9 years ago
Attachment: | tracabout.pdf added |
---|
comment:1 by , 9 years ago
Milestone: | → 1.0.10 |
---|
comment:2 by , 9 years ago
Replying to glinders:
When I try to add a name and email address using:
trac-admin . session name "do'neill:1" "Daniel O'Neill"
Btw, the command is missing a set
:
trac-admin . session set name "do'neill:1" "Daniel O'Neill"
However, that doesn't affect the bug that's reported.
comment:3 by , 9 years ago
Milestone: | 1.0.10 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Duplicate of #6998. With the length of time that ticket has been open I suspect the fix is not easy.
comment:4 by , 9 years ago
Workaround is executing such commands via trac-admin
shell rather than passing parameters to trac-admin
command.
Trac [/var/trac/1.0-sqlite]> session add "do'neill:1" "Daniel O'Neill" Trac [/var/trac/1.0-sqlite]> session list SID Auth Last Visit Name Email ------------------------------------------------------------- do'neill 1 2015-12-01 Daniel O'Neill
Thanks for reporting. Confirmed.