Uploaded image for project: 'MyFaces Orchestra'
  1. MyFaces Orchestra
  2. ORCHESTRA-17

RequestParameterFacesContextFactory only works with HttpServletResponse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0, 1.1
    • 1.4
    • None
    • Liferay Portlet Container

    Description

      The following snippet wrongly casts to HttpServletResponse, therefore portlet-environments will not work:

      if (response instanceof HttpServletResponse)
      {
      HttpServletRequest httpServletRequest = (HttpServletRequest) request;

      // Wrap this request only if something else (eg a RequestParameterServletFilter) has not already wrapped it.
      if (!Boolean.TRUE.equals(httpServletRequest.getAttribute(RequestParameterServletFilter.REQUEST_PARAM_FILTER_CALLED)))
      {

      I will commit a solution very soon.

      regards,

      Martin

      Attachments

        1. ORCHESTRA-17.patch
          25 kB
          Bernhard Huemer

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              mmarinschek Martin Marinschek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: