Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3218 closed defect (fixed)

[project] is actually the name of the directory

Reported by: santagada Owned by: Christian Boos
Priority: normal Milestone: 0.10
Component: web frontend/tracd Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

in tracd —auth or —basic-auth the [projectname] parameter is actually a directory name not project name. it is even in the documentation, but it would be easier to use if it was in the tracd help.

Note that the project “name” passed to the —auth option is actually the base name of the project environment directory.""

Attachments (0)

Change History (4)

comment:1 by anonymous, 18 years ago

Summary: [projectname] is actually the name of the directory[project] is actually the name of the directory

comment:2 by santagada, 18 years ago

if my project name is "My project" and my project dir is "kkkk" then passing —basic-auth "My Project",kkkk/passwd,localhost is not going to work, and it gives a cryptic error message. Here is something that would help to clarify the property to users.

Index: standalone.py
===================================================================
--- standalone.py       (revisão 3359)
+++ standalone.py       (cópia de trabalho)
@@ -120,11 +120,11 @@
     parser.add_option('-a', '--auth', action='callback', type='string',
                       metavar='DIGESTAUTH', callback=_auth_callback,
                       callback_args=(DigestAuthentication,),
-                      help='[project],[htdigest_file],[realm]')
+                      help='[projectdir],[htdigest_file],[realm]')
     parser.add_option('--basic-auth', action='callback', type='string',
                       metavar='BASICAUTH', callback=_auth_callback,
                       callback_args=(BasicAuthentication,),
-                      help='[project],[htpasswd_file],[realm]')
+                      help='[projectdir],[htpasswd_file],[realm]')

     parser.add_option('-p', '--port', action='store', type='int', dest='port',
                       help='the port number to bind to')

Another good idea would be to give a better error message.

comment:3 by Christian Boos, 18 years ago

Milestone: 0.10
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

Why not, if you think that this makes it clearer. I think the TracStandalone#UsingAuthentication paragraph is clear about this, and in case of doubt when using the command line tool, that would be the place to look for further documentation anyway.

comment:4 by Christian Boos, 18 years ago

Resolution: fixed
Status: assignedclosed

Applied in r3366.

Modify Ticket

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