Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-5722

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 2.1.5
    • None
    • 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

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: