Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1517

ExternalContext.getRequestParameterMap() doesn't comply with the JSF specification

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.1.4
    • None
    • JSR-127
    • None

    Description

      According to the jsf-1_0-fr-spec-apidocs (JavaDocs for jsf-api: http://java.sun.com/javaee/javaserverfaces/download.html --> JavaServer Faces v1.0 Specification Final Release), considered part of the JSF specification, the method getRequestParameterMap() in javax.faces.context.ExternalContext must return an immutable Map:
      "Return an immutable Map whose keys are the set of request parameters names included in the current request, and whose values (of type String) are the first (or only) value for each parameter name returned by the underlying request." (http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/context/ExternalContext.html)

      The org.apache.myfaces.context.servlet.ServletExternalContextImpl, however, returns a mutable Map. This is not conform to the JSF specification.

      Attachments

        Activity

          People

            Unassigned Unassigned
            guyveraghtert Guy Veraghtert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: