Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1619

URL component and URLHelper class do not handle multiple request parameters with the same name correctly when includeParams="get"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.7, 2.1.0
    • Build Management
    • None
    • Patch

    Description

      See: http://jira.opensymphony.com/browse/WW-1376

      In reference to the following User Forum entry:
      http://forums.opensymphony.com/thread.jspa?threadID=50475&tstart=0

      When the URL component is used with the includeParams="get" and the current querystring already contains multiple entries for one parameter name, the resulting URL generated will only include the last one present. It seems that this problem does not occur in the includeParams="all", since that uses the parameter map, which returns a String[] for these kinds of parameters, and this was already handled with the fix to issue WW-347 (http://jira.opensymphony.com/browse/WW-347)

      Attachments

        1. struts2-duplicateparams.patch
          7 kB
          Thomas Schneider

        Activity

          People

            husted Ted Husted
            pluppens Philip Luppens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: