Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8286

As a developer, I can add a servlet via annotation or web.xml

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Neutral
    • 6.3.0
    • None
    • None

    Description

      Problem

      Magnolia currently doesn't support proper servlet registration. Servlets are wrapped in filter chain as servlet. As consequence, developers can't easily register servlet in a standard way (annotation or web.xml).

      Expected results

      I can register servlets in a standard way.

      I can override the servlet configuration (e.g. metadata-complete=false in web.xml and define explicitly in web.xml)

      Actual results

      Requests are terminated (404) before reaching the servlet.

      Workaround

      Cofigure a bypass in CMS filter so requests are not terminated before reaching the servlet.

      Development notes

      Termination can be prevent e.g. by introducing a default bypass voter on CMS filters which skips servlet requests (ServletContext#getServletRegistrations).

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fcherchi Fernando Cherchi
                dlopez David Lopez
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD