Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1864 closed defect (fixed)

Misleading error message for missing permission

Reported by: anonymous Owned by: Christopher Lenz
Priority: low Milestone: 0.9
Component: general Version: 0.8.4
Severity: minor Keywords:
Cc: 320926-quiet@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

For better reference, see the debian bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=320926

Attachments (0)

Change History (5)

comment:1 by Otavio Salvador, 19 years ago

Cc: 320926-quiet@… added

I puted the bug as CC

comment:2 by Otavio Salvador, 19 years ago

Mine proposed fix is using the following patch:

Index: trac/Environment.py
===================================================================
--- trac/Environment.py	(revisão 2041)
+++ trac/Environment.py	(cópia de trabalho)
@@ -82,8 +82,8 @@
         if not os.access(db_name, os.R_OK + os.W_OK) or \
                not os.access(directory, os.R_OK + os.W_OK):
             raise EnvironmentError, \
-                  'The web server user requires read _and_ write permission\n' \
-                  'to the database %s and the directory this file is located in.' % db_name
+                  'The user requires read _and_ write permission to the database\n' \
+                  '%s and the directory this file is located in.' % db_name
         return sqlite.connect(os.path.join(self.path, db_str[7:]),
                               timeout=10000)

comment:3 by Mark Rowe, 19 years ago

It would be better if the error message said which user requires read and write access, rather than stating that the user does.

comment:4 by Christopher Lenz, 19 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Priority: normallow
Severity: normalminor
Status: newassigned

comment:5 by Christopher Lenz, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [2052].

Modify Ticket

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