You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2008/02/06 00:31:08 UTC

[jira] Commented: (SLING-224) add .res extension to launchpad defaut servlet

    [ https://issues.apache.org/jira/browse/SLING-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565960#action_12565960 ] 

Tobias Bocanegra commented on SLING-224:
----------------------------------------

suggested patch:

Index: launchpad/launchpad-servlets/src/main/java/org/apache/sling/launchpad/servlets/LaunchpadDefaultServlet.java
===================================================================
--- launchpad/launchpad-servlets/src/main/java/org/apache/sling/launchpad/servlets/LaunchpadDefaultServlet.java (revision 618806)
+++ launchpad/launchpad-servlets/src/main/java/org/apache/sling/launchpad/servlets/LaunchpadDefaultServlet.java (working copy)
@@ -123,7 +123,7 @@
         Servlet s = defaultGetServlet;
         InputStream stream = null;
         final String ext = request.getRequestPathInfo().getExtension();
-        if (ext != null && ext.length() > 0) {
+        if (ext != null && ext.length() > 0 && !ext.equals("res")) {
             // if there is an extension, lookup our getServlets
             s = getServlets.get(ext);
         } else {


> add .res extension to launchpad defaut servlet
> ----------------------------------------------
>
>                 Key: SLING-224
>                 URL: https://issues.apache.org/jira/browse/SLING-224
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>
> the launchpad serlvet should also handle the .res extension for adaptables to 'stream'.
> the reason is, that if a nt:resource node name has no extension, it's hard to request it.

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