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

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

      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
          filelist.jpg
          37 kB
        2. viewfile.jpg
          viewfile.jpg
          44 kB

            [CONFSERVER-5722] resin or confluence's bug in non-ascii attachment file download

            scud added a comment -

            i found this problem is similar with

            http://jira.atlassian.com/browse/CONF-4503 http://jira.atlassian.com/browse/CONF-4460

            too

            maybe same problems.

            maybe all servers exists same bug? too strange!

            scud added a comment - i found this problem is similar with http://jira.atlassian.com/browse/CONF-4503 http://jira.atlassian.com/browse/CONF-4460 too maybe same problems. maybe all servers exists same bug? too strange!

            scud added a comment -

            my application server is resin 3.0.x

            if you think it is resin's bug, can you contact resin's developer?

            in http://bugs.caucho.com/view.php?id=667 , i think they can't understand my question, or they can't set up multibyte language enviroment.

            scud added a comment - my application server is resin 3.0.x if you think it is resin's bug, can you contact resin's developer? in http://bugs.caucho.com/view.php?id=667 , i think they can't understand my question, or they can't set up multibyte language enviroment.

            Matt Ryall added a comment -

            Thanks for submitting this.

            I hope it's a bug with Resin, because I spent a long time testing it in CONF-5622! That was all on Tomcat and Resin 2, though.

            Matt Ryall added a comment - Thanks for submitting this. I hope it's a bug with Resin, because I spent a long time testing it in CONF-5622! That was all on Tomcat and Resin 2, though.

            scud added a comment -

            i modify method : extractAttachmentFileName

            indeed, i think it is a resin's bug , maybe other application server exist same bug.

            from http://bugs.caucho.com/view.php?id=667, we can know

            in redhat as4.2, resin 3.0.14 decode the "URI" ,but in my pc, it not.

            String uri = request.getRequestURI();

            String parauri = uri.substring(uri.lastIndexOf('/') + 1);

            it is really puzzle me!

            scud added a comment - i modify method : extractAttachmentFileName indeed, i think it is a resin's bug , maybe other application server exist same bug. from http://bugs.caucho.com/view.php?id=667 , we can know in redhat as4.2, resin 3.0.14 decode the "URI" ,but in my pc, it not. String uri = request.getRequestURI(); String parauri = uri.substring(uri.lastIndexOf('/') + 1); it is really puzzle me!

              Unassigned Unassigned
              ea3fddd8b40e scud
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: