Item9104: ACLs are not properly interpreting data from a %FORMFIELD%

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: RaulFRodriguez
Waiting For:
Last Change By: CrawfordCurrie
When setting an ACL, one may want to use a value contained in a form to specify the users or groups allowed according to the ACL. Trying to do so with a %FORMFIELD% macro fails, and does not use the returned value, despite the fact that the viewed page renders the setting.

For reproducing the problem, do the following :

  • create a form with a "text" field
    • TestForm:
      TestForm.png
  • create a page, attach the form to it
  • type a WikiName in the "text" field of the form
  • edit the page to include an ACL, for instance ALLOWTOPICCHANGE, using the value of the form, like this :
    • TML for the created page:
      TML for the created page.png

  • save the page - the rendered page looks like this, showing that the user is allowed topic change :
    • Rendered page showing the value for the ALLOWTOPICCHANGE directive:
      Rendered page showing the value for the ALLOWTOPICCHANGE directive.png

  • login as that user designated in ALLOWTOPICCHANGE and try to modify
  • you get an "Access Denied" error

-- RaulFRodriguez - 04 Jun 2010

Indeed. However, you can't, and have never been able to, use a macro in an ACL. There's a fairly obvious reason for this, if you think about it.

No action.

-- CrawfordCurrie - 24 Jun 2010

 

ItemTemplate edit

Summary ACLs are not properly interpreting data from a %FORMFIELD%
ReportedBy RaulFRodriguez
Codebase 1.0.9, trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
I Attachment Action Size Date Who Comment
Rendered_page_showing_the_value_for_the_ALLOWTOPICCHANGE_directive.pngpng Rendered_page_showing_the_value_for_the_ALLOWTOPICCHANGE_directive.png manage 6 K 04 Jun 2010 - 23:17 RaulFRodriguez Rendered page showing the value for the ALLOWTOPICCHANGE directive
TML_for_the_created_page.pngpng TML_for_the_created_page.png manage 3 K 04 Jun 2010 - 23:16 RaulFRodriguez TML for the created page
TestForm.pngpng TestForm.png manage 3 K 04 Jun 2010 - 23:16 RaulFRodriguez TestForm
Topic revision: r4 - 24 Jun 2010, CrawfordCurrie
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