Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#3030 closed defect (fixed)

trac-admin via CGI wrapper

Reported by: markbathie Owned by: Jonas Borgström
Priority: normal Milestone: 0.10
Component: admin/console Version: devel
Severity: normal Keywords: unicode
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Seems to be a bug in trac-admin when run via a CGI wrapper in Apache. For example

/usr/bin/trac-admin /tmp/test permission add test_user MILESTONE_DELETE

yields

Command failed: unicode() argument 2 must be string, not None

But this same trac-admin command works fine on the command line.

I'm having this problem at revision: 3138

Rolling back a few version of trac fixed the problem.

Attachments (0)

Change History (1)

comment:1 by Matthew Good, 19 years ago

Component: generaltrac-admin
Keywords: unicode added; trac-admin cgi apache removed
Milestone: 0.10
Resolution: fixed
Severity: majornormal
Status: newclosed

fixed in [3140]

sys.stdin.encoding is None when the input doesn't come from a terminal. This would also cause problems with piping commands into trac-admin from a file.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.