You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jörg Heinicke (JIRA)" <ji...@apache.org> on 2009/01/05 01:03:44 UTC

[jira] Commented: (COCOON-2247) Default matcher no longer works when divider character part of match

    [ https://issues.apache.org/jira/browse/COCOON-2247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660646#action_12660646 ] 

Jörg Heinicke commented on COCOON-2247:
---------------------------------------

I don't think it has anything to do with the 'divider character' or separator. The difference is the evaluation from the beginning or the end. We also had such a regression in our application but changed our app.

I guess with image_list_images_TE_tours you expect ../cmsblocks/holidayImg/images/TE_tours rather than ../cmsblocks/holidayImg/images_TE/tours. In my opinion evaluation from left to right and * not being greedy makes sense.

> Default matcher no longer works when divider character part of match
> --------------------------------------------------------------------
>
>                 Key: COCOON-2247
>                 URL: https://issues.apache.org/jira/browse/COCOON-2247
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.1.11
>            Reporter: Kamal Bhatt
>
> Example sitemap:
>       <!-- Generates a CFORM selection list based on all images accessible to publication -->
>       <map:match pattern="image_list_*_*">
>         <map:generate type="imagedirectory" src="../cmsblocks/holidayImg/{1}/{2}">
>           <map:parameter name="depth" value="2"/>
>         </map:generate>
>         <map:transform src="xslt/brandimagedirectory_list.xsl">
>           <map:parameter name="list_level" value="file"/>
>         </map:transform>
>         <map:serialize type="xml"/>
>       </map:match>
> Using the following match:
> image_list_images_TE_tours
> You get the following error:
> ../cmsblocks/holidayImg/images_TE/tours is not a directory.
> The match is completely foobar. This used to work in 2.1.9
> I have not had a chance to see how it works in 2.2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.