#5945 closed defect (duplicate)
upgrading to 0.11dev breaks attachment access
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have been running 0.10.4 on my setup. After upgrading to 0.11dev I cannot see attachments on wiki pages. If there is direct link to an attachment and I click on that link I got "you do not have sufficient permission". Also buttons for Add Attachment at the bottom of the page are gone. I guess it is related to new ATTACHMENT_* permission, however there is still some quirk there, because I have TRAC_ADMIN permision myself.
Also documentation or Admin module do not mention any ATTACHMENT_* type.
Attachments (1)
Change History (7)
follow-up: 2 comment:1 by , 17 years ago
by , 17 years ago
Attachment: | attachment.py.patch added |
---|
comment:2 by , 17 years ago
Replying to jonathan.needle@adare.com:
Looks like the problem is in source:/trunk/trac/attachment.py@5981#L700
It never actually returns 'decision' to the caller. Making the following change fixes it for me.
Yep, if fixes it for me as well. Thanks for patch :). Now if anyone just check it in.
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
follow-up: 5 comment:4 by , 17 years ago
Keywords: | attachment button added |
---|---|
Resolution: | duplicate |
Status: | closed → reopened |
In revision 6255 of 0.11dev, we have run into a similiar problem. Specifically with respect to the "Add attachment" button not being displayed on wiki pages. After reviewing this bug, we enabled logging and saw the following:
2007-11-30 13:09:08,335 Trac[__init__] DEBUG: Prepare chrome data for request 2007-11-30 13:09:08,345 Trac[__init__] DEBUG: Updating wiki page index 2007-11-30 13:09:08,350 Trac[__init__] DEBUG: DefaultPermissionPolicy denies dekimsey performing ATTACHMENT_CREATE on <Resource u'wiki:WikiFormatting, attachment'> 2007-11-30 13:09:08,452 Trac[__init__] DEBUG: Retrieving session for ID 'dekimsey' 2007-11-30 13:09:08,873 Trac[__init__] DEBUG: Executing Wiki macro TracGuideToc by provider <trac.wiki.macros.TracGuideTocMacro object at 0xb794eccc>
The user 'dekimsey' is part of the TRAC_ADMIN group.
URL: https://svn.edgewall.org/repos/trac/trunk Repository Root: https://svn.edgewall.org/repos/trac Repository UUID: af82e41b-90c4-0310-8c96-b1721e28e2e2 Revision: 6255 Node Kind: directory Schedule: normal Last Changed Author: athomas Last Changed Rev: 6254 Last Changed Date: 2007-11-29 08:40:58 -0500 (Thu, 29 Nov 2007)
follow-up: 6 comment:5 by , 17 years ago
Keywords: | attachment button removed |
---|---|
Resolution: | → duplicate |
Status: | reopened → closed |
Replying to dekimsey@gmail.com:
In revision 6255 of 0.11dev, we have run into a similiar problem. Specifically with respect to the "Add attachment" button not being displayed on wiki pages.
That was fixed in [6259]. Please update and verify.
Resetting to last closed status.
comment:6 by , 17 years ago
Replying to osimons:
Replying to dekimsey@gmail.com:
In revision 6255 of 0.11dev, we have run into a similiar problem. Specifically with respect to the "Add attachment" button not being displayed on wiki pages.
That was fixed in [6259]. Please update and verify.
Resetting to last closed status.
Yup, that was the issue, we had just found the solution ourselves a moment ago, thanks for the help!
Looks like the problem is in source:/trunk/trac/attachment.py@5981#L700
It never actually returns 'decision' to the caller. Making the following change fixes it for me.
fixes it for me.
Regards,
Jon.