Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-5729

Attachment with space on end will not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Low
    • None
    • 3.0.3
    • Issue - Attachments
    • None
    • Resin 3.0.10, MySQL 4.1.8a/InnoDB, Linux 2.4.21-15.0.2.ELsmp

    Description

      If user will add attachment with space on filename end (e.g. because he used copy & paste from TotalCommander), attachment is not visible and downloadable

      1) Operation / Attach file

      2) User will copy and paste full pathname to attachment on his loacl HDD, e.g. from Total Commander - i.e. select attachment, click Ctrl+Shift+Enter, left arrow (full path name on TotalCmd command line will be selected - with space on end !), Ctrl+C - copy to clipboard, switch to JIRA, Ctrl+V - paste full pathname
      with space on end - e.g. "N:_Proj__RBT-lnk\Logs\iter-1\09-ts-1059\ts-1059.jpg "

      3) in Manage Attachments window is attachment shown, but not on Issue detail page

      4) if user click on "download" link in "Manage Attachments" page exception is shown:

      404 Could not find specified attachment
      /jira/secure/attachment/14694/ts-1059.jpg was not found on this server.
      --------------------------------------------------------------------------------
      Resin-3.0.10 (built Mon, 20 Dec 2004 01:12:17 PST)

      -------
      5) on target filesystem is file saved with space on end

      6) in 2.6.1 Enterprise it worked well (spaces were probably trimmed)

      Attachments

        Issue Links

          Activity

            People

              daniel.hurst@atlassian.com Daniel Hurst
              dd2851702d99 Lukas Zach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: