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

ServletContextImpl does not propagate context attribute changes to parent context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • http-2.0.4
    • http-2.2.0
    • HTTP Service
    • None

    Description

      org.apache.felix.http.base.internal.context.ServletContextImpl does not propagate context attribute changes to parent context.
      this is a problem for example when a session event is triggered. then the evt.getSession().getServletContext() is the one of the servlet container and not the felix one, thus the context attributes added prior to the servlet context are not visible.

      so either wrap the httpsession in the events with a java proxy for a complete isolation, or delegate all attribute modifications to the parent context.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: