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

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

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.3.0
    • None
    • None
    • Yes
    • Nucleus 4, Nucleus 5, Nucleus 6, Nucleus 7
    • 3

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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD