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

cannot download pasted images as a zip because of the naming convention, in Windows

    XMLWordPrintable

Details

    Description

      Summary

      Unable to Download All attachments in Confluence caused by image files named imageYYYY-M-D h:m:s.png.

      Environment

      • Windows

      Steps to Reproduce

      1. Take an image to clipboard clipboard by either:
        • Take a "Printscreen"
        • or use Windows' "Snippet Tool" to saved your screen to clipboard
      2. Use "CTRL + V" to attach it into a Confluence page
      3. The editor creates an attached image file named imageYYYY-M-D h:m:s.png
      4. Go to Page Tools > Attachments > Download All

      Expected Results

      All attachments are downloaded

      Actual Results

      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)
      

      as the colon is a special character which is prohibited in Windows file names.

      Notes

      1. It would be better to avoid this problem by removing colons from the pasted images. Perhaps with the format:
        imageYYYY-MM-dd_hhmmss.png
      2. additionally give the admin the possibility to change the naming scheme in the settings.

      Workaround

      The only workaround is to edit the properties of the attachment and remove the colons.

      Attachments

        Issue Links

          Activity

            People

              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              0038f8321e0c Stefan Kahlhöfer (Novatec)
              Votes:
              20 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: