Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3786 closed defect (fixed)

tracd standalone doesn't support auth files beginning with .

Reported by: ruibalp@… Owned by: Matthew Good
Priority: normal Milestone: 0.10
Component: web frontend/tracd Version: 0.9.6
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Tracd standalone server won't startup if auth file begins with a '.'

Attachments (0)

Change History (4)

comment:1 by Matthew Good, 18 years ago

Keywords: needinfo added

Please provide the command line you're executing to start tracd and the error you're seeing. Testing on 0.10 it works fine. This may not be related to the filename, so please provide whatever information you can to debug this.

comment:2 by ruibalp@…, 18 years ago

Component: generaltracd

Turns out I was wrong… The problem seems to be with trailing newlines in the htdigest file. Appending an additional newline to the end of htdigest produces the following on 0.9.6:

Traceback (most recent call last):
  File "/usr/local/bin/tracd", line 102, in ?
    main()
  File "/usr/local/bin/tracd", line 66, in main
    add_auth(auths, a, DigestAuth)
  File "/usr/local/bin/tracd", line 47, in add_auth
    auths[p] = cls(h, r)
  File "/usr/local/lib/python2.4/site-packages/trac/web/standalone.py", line 117, in __init__
    self.load_htdigest(htdigest, realm)
  File "/usr/local/lib/python2.4/site-packages/trac/web/standalone.py", line 126, in load_htdigest
    u, r, a1 = line.strip().split(':')
ValueError: need more than 1 value to unpack

comment:3 by Matthew Good, 18 years ago

Milestone: 0.10
Owner: changed from Jonas Borgström to Matthew Good
Status: newassigned

comment:4 by Matthew Good, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r3792.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good 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.