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

Using ParameterAware with FileUploadInterceptor leads to ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.15.1
    • 2.5.5
    • None
    • None
    • Important

    Description

      Ljava.io.File; cannot be cast to [Ljava.lang.String;
      ---------

      According to ParameterAware I should have method

      public void setParameters(Map<String, String[]> parameters);
      

      But I also have File field and FileUploadInterceptor sets file there.
      So, I am getting File[] instead of String[].

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              link Ilya
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: