Edgewall Software

Changes between Version 1 and Version 2 of Ticket #11397


Ignore:
Timestamp:
Dec 13, 2013, 10:31:28 PM (10 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11397 – Description

    v1 v2  
    22 * `trac-admin $ENV attachment add wiki:SomeNonExistentPage file`
    33 * Navigate to `/attachment/wiki/SomeNonExistentPage` and the attachment will be found
     4
     5[[Image(SomeNonExistentPage.png)]]
     6
    47 * Navigate to `/wiki/SomeNonExistentPage` to find the following:
    58
    6 [[Image(SomeNonExistentPage.png)]]
     9[[Image(WikiPage.png)]]
    710
    811Even worse, an attachment could be created for a non-existent realm:
     
    1013$ trac-admin $ENV attachment add some:none file1
    1114}}}
    12 When attempting to view the attachment at the path `/attachment/some/none/file1`, the permission check would 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.
     15When 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.
    1316
    14 Proposed changes can be found in log:rjollos.git:t11397. There is one additional changes proposed:
     17Proposed changes can be found in log:rjollos.git:t11397. Besides the fix for the issue in this ticket, there is one additional change proposed:
    1518 * Raise an error if navigating to an attachment page for which the parent resource doesn't exist.