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

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

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2896933 ] New: CONFSERVER Bug Workflow v4 [ 2990338 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2788474 ] New: JAC Bug Workflow v3 [ 2896933 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2724437 ] New: JAC Bug Workflow v2 [ 2788474 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387610 ] New: JAC Bug Workflow [ 2724437 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2263909 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387610 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2207764 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2263909 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2185780 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2207764 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1922873 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2185780 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1726391 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1922873 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1682098 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1726391 ]

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

                Created:
                Updated:
                Resolved: