You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2006/10/24 14:40:16 UTC
[jira] Created: (COCOON-1938) [Patch] Allow blocks mounted at "/"
to handle more than just the "/" URL
[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
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
[jira] Commented: (COCOON-1938) [Patch] Allow blocks mounted at "/"
to handle more than just the "/" URL
Posted by "Daniel Fagerstrom (JIRA)" <ji...@apache.org>.
[ 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
[jira] Closed: (COCOON-1938) [Patch] Allow blocks mounted at "/" to
handle more than just the "/" URL
Posted by "Lars Trieloff (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1938?page=all ]
Lars Trieloff closed COCOON-1938.
---------------------------------
Resolution: Won't Fix
I've just tried it with mounting the block at "", not "/" and it works as expected. But it should be documented, that the root mount path is "", not "/". Additionally, making "/" an alias for "" should be thought of.
> [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
[jira] Updated: (COCOON-1938) [Patch] Allow blocks mounted at "/"
to handle more than just the "/" URL
Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1938?page=all ]
Alexander Klimetschek updated COCOON-1938:
------------------------------------------
Attachment: cocoon-blocks-fw-improve-root-mounting.patch
To be applied in cocoon-trunk. Affects only the cocoon-blocks-fw-impl module.
> [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