cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Commented: (COCOON-2247) Default matcher no longer works when divider character part of match
Date Mon, 05 Jan 2009 00:03:44 GMT

    [ 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.


Mime
View raw message