Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-29558

Images attached to a page from Clipboard (via Printscreen) cannot be downloaded via "Download All" in Windows

    XMLWordPrintable

Details

    Description

      Steps to Reproduce:

      1. Edit a page
      2. Take a "Printscreen" or use Windows' "Snippet Tool" to saved your screen to clipboard
      3. Use "CTRL + V" to attach it into the page
      4. Confluence will attach the image file from the clipboard to the page
      5. Ensure there are multiple attachment on the page
      6. Saved the page
      7. Go to attachment menu from the "Tools" button
      8. Click "Download All" button
      9. Confluence will throw the following ERROR
        Cause
        java.io.FileNotFoundException: D:\AtlassianData\Confluence\502data\temp\downloadf5o6S163731\image2013-6-6 16:36:21.png (The filename, directory name, or volume label syntax is incorrect)
            at java.io.FileOutputStream.open(Native Method)
        Stack Trace:[hide]
        java.io.FileNotFoundException: D:\AtlassianData\Confluence\502data\temp\downloadf5o6S163731\image2013-6-6 16:36:21.png (The filename, directory name, or volume label syntax is incorrect)

      Expected Results:

      User should be able to download the zipped attachments

      Actual Results:

      Users does not able to download the attachments and thrown an ERROR page instead. Judging from the stack trace, it seems that Confluence unable to find the temp file generated by the function.

      Cause

      This problem is caused because the filename contains a colon (':') which is not a character allowed in a filename according to MS Windows documentation. Due to the invalid name, Confluence is not able to create the file in the temp folder to generate the ZIP file.

      This bug appears only when Confluence is running on Windows.

      Attachments

        1. error.png
          49 kB
          Septa Cahyadiputra

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scahyadiputra Septa Cahyadiputra (Inactive)
              Votes:
              11 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: