You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Alfred Nathaniel <an...@apache.org> on 2007/12/08 13:24:42 UTC
Re: [jira] Commented: (COCOON-1990) Redirect bug WITHIN sub
sitemap WHEN using uri-prefix in map:mount
On Fri, 2007-12-07 at 23:09 -0500, Vadim Gritsenko wrote:
> On Dec 7, 2007, at 10:37 PM, Jörg Heinicke (JIRA) wrote:
>
> >
> > [ https://issues.apache.org/jira/browse/COCOON-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel
> > #action_12549643 ]
> >
> > Jörg Heinicke commented on COCOON-1990:
> > ---------------------------------------
> >
> > Also I don't like the idea of checking for a particular protocol. In
> > theory somebody could have implemented its own protocol doing
> > something similar as cocoon://.
>
> You do not even need a theory :) Simply edit cocoon.xconf, and use any
> protocol you like.
>
> <component-instance name="sitemap"
>
> class="org.apache.cocoon.components.source.impl.SitemapSourceFactory"/>
>
>
> Vadim
Unfortunately, that is only a theoretical possibility. There are
already 11 places where startsWith("cocoon:") is hardwired in the code.
Cheers, Alfred.
Re: [jira] Commented: (COCOON-1990) Redirect bug WITHIN sub sitemap WHEN using uri-prefix in map:mount
Posted by Vadim Gritsenko <va...@reverycodes.com>.
On Dec 8, 2007, at 7:24 AM, Alfred Nathaniel wrote:
> On Fri, 2007-12-07 at 23:09 -0500, Vadim Gritsenko wrote:
>> On Dec 7, 2007, at 10:37 PM, Jörg Heinicke (JIRA) wrote:
>>
>>> Also I don't like the idea of checking for a particular protocol. In
>>> theory somebody could have implemented its own protocol doing
>>> something similar as cocoon://.
>>
>> You do not even need a theory :) Simply edit cocoon.xconf, and use
>> any
>> protocol you like.
>>
>> <component-instance name="sitemap"
>> class
>> ="org.apache.cocoon.components.source.impl.SitemapSourceFactory"/>
>
> Unfortunately, that is only a theoretical possibility. There are
> already 11 places where startsWith("cocoon:") is hardwired in the
> code.
True... Hm, I'm not even sure how to avoid hardcoding it... May be we
should just legalize this, define a constant somewhere -
COCOON_PROTOCOL = "cocoon:";
Vadim