ICEfaces
  1. ICEfaces
  2. ICE-4342

OutputResource filename characters are not correct

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2 SP1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Linux, Windows, Mac OS X & IE, Safari, Firefox & Glassfish v2

      Description

      I have problems with downloading files via OutputResource where filename contains special characters like €, £, ... Also it doesn't work for our national characters like ěščřžýáíéĚŠČŘŽÝÁÉ. Anyway, I was able to manage file upload with these special characters via CharsetFilter (mentioned in the forum post). But I'm not able to download these files with correct file name. I tried lot of things, spent few weeks in forums, but I can't find a way how to download file with special characters in the filename via OutputResource.

      I think it's a bug of OutputResource, because instead of writing filename directly to Content-Disposition, it should encode it somehow first.
      1. ScreenHunter_08.jpg
        219 kB
      2. ScreenHunter_09.jpg
        214 kB
      3. ScreenHunter_10.jpg
        255 kB
      4. ScreenHunter_06.jpg
        219 kB
      5. ScreenHunter_07.jpg
        207 kB
      6. ScreenHunter_05.jpg
        211 kB
      7. ScreenHunter_04.jpg
        212 kB
      8. ScreenHunter_01.jpg
        224 kB
      9. ScreenHunter_02.jpg
        224 kB
      10. ScreenHunter_03.jpg
        220 kB
      11. fileName with '('.jpg
        76 kB

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19137 Fri Jul 31 11:36:14 MDT 2009 yip.ng ICE-4342
        Fixe bugs that caused download failure of files with special characters in their file names.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19114 Thu Jul 23 16:03:39 MDT 2009 yip.ng ICE-4342
        Fixe bugs that caused download failure of files with special characters in their file names.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ResourceDispatcher.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19107 Wed Jul 22 16:41:34 MDT 2009 yip.ng ICE-4342
        Fixe bugs that caused download failure of files with special characters in their file names.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ResourceDispatcher.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19090 Mon Jul 20 14:12:19 MDT 2009 yip.ng ICE-4342
        Fixe bugs that caused download failure of files with special characters in their file names.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ResourceDispatcher.java

          People

          • Assignee:
            yip.ng
            Reporter:
            Robert Vojta
          • Votes:
            13 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: