Comment 9 for bug 320889

Revision history for this message
Curtis Hovey (sinzui) wrote :

The _filter in the DistributionOrProductVocabulary is BAD. The OR clause to support pillar aliases does not play well with other ADDed conditions. As a result, all pillars with aliases are included in the vocabulary even when they do not match the query term. The getTermByToken() returns the first term that is matched, which in this case is an alias that actually does not match.

The proper fix is to put the entire filter in a parenthetical clause to ensure it behaves as an atomic condition when it is ANDed with another condition