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

UnsupportedOperation exception in org.apache.struts2.views.util.DefaultUrlHelper

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.3.4
    • Component/s: Core Actions
    • Labels:
      None
    • Environment:

      org.apache.struts2.views.util.DefaultUrlHelper line 311/312

      Description

      Arrays.asList return one implementation of List which cannot handle add operation

      commit : 1303298

      311 : List<String> paramList = Arrays.asList(currentParamValues);
      312 : paramList.add(translatedParamValue);
      

      commit : 1302803

      311 : List<String> paramList = new ArrayList(Arrays.asList(currentParamValues));
      312 : paramList.add(translatedParamValue);
      

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              bdbogjoe Eric Chauvin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified