felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (FELIX-1636) Html footer and header are always added to the response for a servlet plugin
Date Thu, 24 Sep 2009 11:45:16 GMT

     [ https://issues.apache.org/jira/browse/FELIX-1636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler reopened FELIX-1636:
-------------------------------------


Unfortunately this breaks existing plugins like the configMgr as these use PID (or something
else) as last part of the url. And these things contain dots.
Therefore it might be better to move this into the adapter (not sure how resource can be handled
in this case)
Or find a different way

> Html footer and header are always added to the response for a servlet plugin
> ----------------------------------------------------------------------------
>
>                 Key: FELIX-1636
>                 URL: https://issues.apache.org/jira/browse/FELIX-1636
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-2.0.0
>            Reporter: Carsten Ziegeler
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.0
>
>         Attachments: AbstractWebConsolePlugin.java.patch
>
>
> If a plugin is registered as a plain servlet, the WebConsolePluginAdapter wraps this
servlet and handle GET requests
> Regardless of the requested uri, the html header and footer is always added to the response
which causes messed uprequests if the servlet wants to generate dynamic json (or other stuff).
> I guess the easiest way is to check the extension in the AbstractWebConsolePlugin#doGet()
> After the check for spoolResource a check of the extension could be made - if no extension
or htm or html, put the footer or header around. For any other extension just invoke render.

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