Item8519: ALLOWED column of TRANSITION TABLE parsed as Perl array instead of a standard list. (Behavior: members of groups listed in ALLOWED column of TRANSITION TABLE are unable to transition the topic.)

pencil
Priority: Normal
Current State: New
Released In:
Target Release: n/a
Applies To: Extension
Component: ApprovalPlugin
Branches:
Reported By: MatthewDent
Waiting For:
Last Change By: MatthewDent
If groups are listed in the ALLOWED column of the TRANSITION TABLE, the entries of the column must be specified using a perl array syntax (i.e., either enclosing the list in parenthesis or using the qw/array contents/ syntax). This is because the ALLOWED column is parsed as an array. For some bizarre reason, if users are specified instead of groups, it works OK. In a mixed scenario (groups and users) users listed by their wikiusername will be able to transition, but those who are listed only through their group affiliation will not.

The ALLOWEDIT column of the STATE TABLE is parsed as a list.

This is a bit confusing - perhaps both be parsed as lists? I don't know what the ramifications are to doing that, so I'll suffer with the weirdness for now, but perhaps it's something to add to the list of things to do.

I had to track this down in the code where I saw that ALLOWED is parsed using the _userInArray subroutine and ALLOWEDIT is parsed using _userInList routine.

-- MatthewDent - 13 Feb 2010

 

ItemTemplate edit

Summary ALLOWED column of TRANSITION TABLE parsed as Perl array instead of a standard list. (Behavior: members of groups listed in ALLOWED column of TRANSITION TABLE are unable to transition the topic.)
ReportedBy MatthewDent
Codebase 1.0.7
SVN Range
AppliesTo Extension
Component ApprovalPlugin
Priority Normal
CurrentState New
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r1 - 13 Feb 2010, MatthewDent
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy