Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1636

Html footer and header are always added to the response for a servlet plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-2.0.0
    • webconsole-2.0.0
    • Web Console
    • None

    Description

      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.

      Attachments

        1. AbstractWebConsolePlugin.java.patch
          2 kB
          Carsten Ziegeler

        Activity

          People

            fmeschbe Felix Meschberger
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: