resin or confluence's bug in non-ascii attachment file download

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Medium
    • None
    • Affects Version/s: 2.1.5
    • Component/s: None
    • Environment:

      server: redhat as4, en_US.utf-8 resin 3.0.18 and 3.0.14 , apache 2.0.55
      client: windows 2000 professional ,chinese simplified character

      this issue is similar with similar with http://jira.atlassian.com/browse/CONF-5562 ,or same.

      When i install confluence on resin 3.0.18 in my self pc (windows 2000 professional ,chinese simplified character ) , not have any problem

      but when i install confluence 2.0.15 on resin 3.0.18 in my server ( redhat as4, en_US.utf-8 resin 3.0.18 and 3.0.14 , apache 2.0.55 ) ,problem occured!

      maybe it is a problem of resin, and i have report a bug to resin, but they deny it . see http://bugs.caucho.com/view.php?id=667 for detail.

      so i modify the AttachmentDownload class when run in resin + redhat :

      requestURI = requestURI.substring(requestURI.lastIndexOf('/') + 1);

      String lastURI = GeneralUtil.urlDecode(requestURI);
      try

      { //only if resin + redhat as,do this lastURI = new String(lastURI.getBytes("ISO-8859-1"), GeneralUtil.getCharacterEncoding() ); }

      catch(UnsupportedEncodingException e)

      { //do nothing }

      after this modify,it can work well when download non-ascii attachment file.

        1. filelist.jpg
          37 kB
          scud
        2. viewfile.jpg
          44 kB
          scud

            Assignee:
            Unassigned
            Reporter:
            scud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: