#3851 closed defect (fixed)
TAGS_VIEW not showing page tags along for anonymous
Reported by: | izzy | Owned by: | Michael Renzmann |
---|---|---|---|
Priority: | normal | Component: | TagsPlugin |
Severity: | major | Keywords: | wiki page |
Cc: | Trac Release: | 0.11 |
Description
We have granted TAGS_VIEW to anonymous. So without logging in, the "Tags" menu item in main_nav shows up, and the tags are also listed there. However, when viewing some Wiki article, its tags are not displayed.
Attachments (1)
Change History (9)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Severity: | normal → major |
---|
Experiencing this behavior also. Sounds like an important defect to me as it completely prevents visitors from viewing tags (default configuration, anonymous users). Please change back if you don't agree.
I am myself not too sure of what must be changed exactly, but until it's fixed I'll give it a try at modifying my local working copy of trunk.
Changed 16 years ago by
Attachment: | tractags-fix-tags-anonymous.patch added |
---|
Fixes the bug where tags don't show up when not authenticated.
comment:3 Changed 16 years ago by
Just attached a patch that make the tags reappear. Basically, it adds the tags section relative to the main page section, rather that to the div containing the buttons.
comment:4 Changed 15 years ago by
Owner: | changed from Alec Thomas to Michael Renzmann |
---|
I cannot reproduce the described issue with r7373 and Trac 0.11.6. Can someone please confirm that this issue still exists for them, and that the patch attached to this ticket is required for them to fix it?
comment:5 Changed 15 years ago by
As the reporter, this should probably be my task - but I have no longer access to those environments as I "left that company" and switched to a new project, sorry.
comment:6 Changed 15 years ago by
Status: | new → assigned |
---|
Now I was able to reproduce the reported issue, comment:3 pointed me in the right direction :)
The issue occurs only for users that have TAGS_VIEW but not WIKI_MODIFY. There are no buttons without WIKI_MODIFY, thus the stream filter fails. The patch submitted by quad works as intended and fixes the issue, I'll commit it to the repos now.
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:8 Changed 13 years ago by
Keywords: | wiki page added |
---|
#8467 has been closed as a duplicate of this ticket.
I fixed it in my environment.
The point is that the list of tags must appear before the buttons (div with class called buttons wich show the actions) but this div is not in the string when the user has no permission to modify or delete wiki pages.
So the code that puts the cloud into string must be changed
TracTags => wiki.py Line 99: return stream | Transformer('div[@class="buttons"]').before(insert)
If another div will be used instead class=buttons the bug is fixed.
In my case I changed the css too