Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-1705

wrong httpsession when instaling LocalizationFilter

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WebUI
    • Labels:
      None

      Description

      Util.getPortalRequestContext().getRequest().getSession().getAttribute
      return null attribute after installing LocalizationFilter

      ApplicationDispatcher doesn't wrap the ServletFacade , it wrap the HttpRequestWrapper (RequestFacade has already
      wrapped by LocalizationFilter so the getSession() will return the wrong session with null attribute
      because HttpRequestWrapper is instanceof ServletRequestWrapper, and inject a
      different request object into it via inherited setRequest() method
      and making it wrap a completely different request.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mstruk Marko Strukelj
                Reporter:
                zaouiahmed ahmed zaoui
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: