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

RequestParameterProviderManager fails when template URL includes EL expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None

    Description

      As reported by Jonas Esser on the mailing list, a url of form
      http://foo.example?productId=#

      {var}

      fails badly; the final url is:
      http://foo.example?productId=&contextId=1val

      This occurs in the "petstore" orchestra example, when viewing a product's details.

      The problem is that RequestParameterProvidedManager thinks the "#" is a url fragment marker. Query params go before fragment markers, eg
      http://foo.example?productId=5#anchor
      does correctly become
      http://foo.example?productId=5&contextId=1#anchor

      But #

      {...}

      is NOT an anchor. In the petstore example, the url can be found in faces-config.xml:
      <navigation-case>
      <from-outcome>ProductDetails</from-outcome>
      <to-view-id>/mops/ProductDetail.jsp?productId=#

      {param.productId}

      </to-view-id>
      <redirect/>
      </navigation-case>

      Attachments

        Activity

          People

            Unassigned Unassigned
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: