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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]