You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/03/31 18:27:51 UTC

DO NOT REPLY [Bug 7644] New: - map:parameter does not properly handle pattern match {1} inside map:call nested in side of map:act of type "form-validator"

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7644>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7644

map:parameter does not properly handle pattern match {1} inside map:call nested in side of map:act of type "form-validator"

           Summary: map:parameter does not properly handle pattern match {1}
                    inside map:call nested in side of map:act of type "form-
                    validator"
           Product: Cocoon 2
           Version: 2.0b2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: cocoon@allthatnet.com


The following setup fails:

   <map:match pattern="forms/*">
     <map:act type="form-validator">
        <map:parameter name="descriptor" value="context:///forms/
{1}/descriptor.xml"/>
        <map:parameter name="validate-set" value="{1}"/>
        <map:call resource="dynamic-page">
           <map:parameter name="target" value="forms/{1}/OK"/>
        </map:call>
     </map:act>
     <map:call resource="dynamic-page">
        <map:parameter name="target" value="forms/{1}/ERROR"/>
     </map:call>
   </map:match>

or

   <map:match pattern="forms/*">
     <map:act type="form-validator">
        <map:parameter name="descriptor" value="context:///forms/{1}-
descriptor.xml"/>
        <map:parameter name="validate-set" value="{1}"/>
        <map:call resource="dynamic-page">
           <map:parameter name="target" value="forms/{1}-OK"/>
        </map:call>
     </map:act>
     <map:call resource="dynamic-page">
        <map:parameter name="target" value="forms/{1}-ERROR"/>
     </map:call>
   </map:match>

In both cases, the second map:parameter, <map:parameter name="target" 
value="forms/{1}xOK"/> will be re-written incorrectly. In the first scenario 
tha page called will be path/forms/OK.xsp and in the second, path/forms/-OK.xsp.
The call to ERROR is handled properly in these two scenarios.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org