Closed (fixed)
Project:
Taxonomy Access Control
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2007 at 08:49 UTC
Updated:
27 Feb 2010 at 22:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
edrex commentedI think the problem is that taxonomy's submit handler for the node form says "hmm this vocabulary doesn't appear to have any terms in it... it's silly to 'require' a vocab with no terms" and lets the submit pass. Looking at ways around this. I think this bug must be present in 1.x branch, still untested.
Comment #2
keve commentedI made a patch, which avoid hiding of required vocabularies.
What do you think?
TODO: But I think there is still a problem when a required vocabulary is free-tagging:
User can submit a node without validation error, when leaving the required free-tagging vocabulary empty. (Vocabulary is required but user have no create permission)
Comment #3
xolotl commentedSeems like using a freetagging vocabulary for access control raises a lot of issues.
Maybe better to not allow freetagging on TAC vocabularies?
Or does this issue also apply to vocabularies that are *not* used for access control?
Comment #4
edrex commentedright now, since it's not doing anything at validate time, any term is allowed for freetag vocabs. The only problem AFAIK is this case:
In this case, the form element for that vocab will be hidden, so that the user won't be able to create any new terms.
For now how about we just bow out of the "controlling create for free vocabs" business?
I've attached a modified version of keve's patch that lets all free vocabs through. The effect should be that "create" perms don't do anything for free vocabs. We could add a validate for that later, as keve mentioned in an email.
Comment #5
edrex commentedfixed an infinite loop (i guess db_result doesn't auto-increment through the result set, not very useful). New patch attached. We should update the docs to say that free-tagging vocabs aren't currently supported.
committed to 5.x-2.x.
Comment #6
edrex commentedseems good on 2.x, want to apply to 1.x?
Comment #7
keve commentedWell, normally i am not planning to make version 5.1.1. Maybe we should tag 5.2.dev branch soon, as official 5.2. What do you think?
Comment #8
xjmMy guess is "no" on the 1.x branch, and that (hopefully) the 2.x branch will be getting its release tag one of these days. :)