You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Daniel Fagerstrom (JIRA)" <ji...@apache.org> on 2006/10/24 22:00:19 UTC

[jira] Commented: (COCOON-1938) [Patch] Allow blocks mounted at "/" to handle more than just the "/" URL

    [ http://issues.apache.org/jira/browse/COCOON-1938?page=comments#action_12444479 ] 
            
Daniel Fagerstrom commented on COCOON-1938:
-------------------------------------------

IMO "/style.css" and "/index.html" are not mounted on "/" but on "". With this intepretation the implementation works, although it might be somewhat subtle and should be documented. If we compare with web.xml the "root" servlet is mounted on "/*" rather than on "/", but that requires wildcard handling which I found to be overkill.

We could introduce special handling for "/" as you suggest, but in that case the equation: uri = contextPath + servletPath + mountPath + pathInfo, will not be valid anymore. Opinions?

> [Patch] Allow blocks mounted at "/" to handle more than just the "/" URL
> ------------------------------------------------------------------------
>
>                 Key: COCOON-1938
>                 URL: http://issues.apache.org/jira/browse/COCOON-1938
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>            Priority: Minor
>         Attachments: cocoon-blocks-fw-improve-root-mounting.patch
>
>
> The current DispatcherServlet allows for blocks mounted at "/" only the simple "/" URL to be handled because all other cases (eg. "/style.css" or "/index.html") will be interpreted as blocks - and because these don't exist, the matching will fail.
> For this case, I added a short piece of code that will allow to handle such cases for the root block.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira