Changes between Version 1 and Version 2 of Ticket #11397
- Timestamp:
- Dec 13, 2013, 10:31:28 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11397 – Description
v1 v2 2 2 * `trac-admin $ENV attachment add wiki:SomeNonExistentPage file` 3 3 * Navigate to `/attachment/wiki/SomeNonExistentPage` and the attachment will be found 4 5 [[Image(SomeNonExistentPage.png)]] 6 4 7 * Navigate to `/wiki/SomeNonExistentPage` to find the following: 5 8 6 [[Image( SomeNonExistentPage.png)]]9 [[Image(WikiPage.png)]] 7 10 8 11 Even worse, an attachment could be created for a non-existent realm: … … 10 13 $ trac-admin $ENV attachment add some:none file1 11 14 }}} 12 When attempting to view the attachment at the path `/attachment/some/none/file1`, the permission check w ould fail: //ATTACHMENT_VIEW privileges are required to perform this operation on Attachment 'file1' in some:none. You don't have the required permissions.//. However, inspection of the database or execution of the `trac-admin attachment list` command shows that the attachment is present.15 When attempting to view the attachment at the path `/attachment/some/none/file1`, the permission check will fail: //ATTACHMENT_VIEW privileges are required to perform this operation on Attachment 'file1' in some:none. You don't have the required permissions.//. However, inspection of the database or execution of the `trac-admin attachment list` command shows that the attachment exists. 13 16 14 Proposed changes can be found in log:rjollos.git:t11397. There is one additional changesproposed:17 Proposed changes can be found in log:rjollos.git:t11397. Besides the fix for the issue in this ticket, there is one additional change proposed: 15 18 * Raise an error if navigating to an attachment page for which the parent resource doesn't exist.