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:
Attachments (0)
Change History (5)
comment:1 by , 19 years ago
Cc: | added |
---|
comment:2 by , 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 , 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 , 19 years ago
Owner: | changed from | to
---|---|
Priority: | normal → low |
Severity: | normal → minor |
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
I puted the bug as CC