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

Pasting an image from the clipboard on Firefox while the browser language is set to German causes the filename not to get a timestamp

      Issue Summary

      When a user tries to insert an image from a clipboard to a page while using a Firefox browser with the language set to German, it causes the image to be uploaded as "grafik.png" without any timestamps on the filename. If the user continues to add new images to the same page using the same method, all the images are updated with the last one inserted due to all files sharing the same name.

      Tested with the below Firefox versions:

      • Firefox 91.2.0esr - 32bit - Windows
      • Firefox 91.11.0esr - 32bit - Windows
      • Firefox 101.0.1 - 32bit - Windows
      • Firefox 102.0.1 - 32bit - Windows
      • Firefox 102.0.1 - 64bit - MacOS

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Install Firefox in the German language. You can use the below direct link: Firefox 91.2.0esr DE - 32bit - Windows
        https://ftp.mozilla.org/pub/firefox/releases/91.0.1esr/win32/de/Firefox%20Setup%2091.0.1esr.exe
        If you already have an English version, you can switch your language to German from the "Settings" menu. Don't forget to restart Firefox after putting "Deutsch" at the top of the language list.

      2. Create a page, and while in the edit mode:
        1. Capture an image with any of the snipping tools. With that image will be in your clipboard.
        2. Paste the image to the page.

      Expected Results

      Image uploaded to the page with a timestamp on its name:

      image2022-7-13_16-30-51.png 
      

      Actual Results

      Image uploaded to the page with the name:

      grafik.png
      

      Workaround

      Base64 images uploaded should be created as grafik.png new versions. They can be downloaded from attachment version history on attachment page. The images downloaded should be renamed by OS automatically such as grafik.png (1), grafik.png (2). They can be uploaded again without issues.

      This issue does not occur on Google Chrome or Edge Chromium. Also, the issue does not occur as expected if the image is saved with a unique name to the filesystem and uploaded as a file.

      You can also switch your Firefox language to English as a workaround.

        1. image-1.jpg
          image-1.jpg
          27 kB
        2. image-2.jpg
          image-2.jpg
          38 kB

            [CONFSERVER-79517] Pasting an image from the clipboard on Firefox while the browser language is set to German causes the filename not to get a timestamp

            A fix for this issue is available in Confluence Server and Data Center 7.20.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 7.20.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Zac Xu added a comment -

            Hi abd8496acb02 

             

            There will be no future 7.18 bugfix version once 7.19 is released.

            You have to upgrade to 7.19.1 LTS to get the fix.

            https://www.atlassian.com/software/confluence/download-archives

             

            Cheers,

            Zac

            Zac Xu added a comment - Hi abd8496acb02     There will be no future 7.18 bugfix version once 7.19 is released. You have to upgrade to 7.19.1 LTS to get the fix. https://www.atlassian.com/software/confluence/download-archives   Cheers, Zac

            A fix for this issue is available in Confluence Server and Data Center 7.13.9.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Saran Babu Pannuru (Inactive) added a comment - A fix for this issue is available in Confluence Server and Data Center 7.13.9. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Thanks, test in Confluence Data Center 7.19.1 confirms bug fixed

            Lars Fessler added a comment - Thanks, test in Confluence Data Center 7.19.1 confirms bug fixed

            Good to read that this issue has been fixed. Is there also a 7.18.x available with this fix?

            Frank Schimmel added a comment - Good to read that this issue has been fixed. Is there also a 7.18.x available with this fix?

            Hardy added a comment -

            Thanx, I test it in Confluence Server 7.19.1 and it fixed

            Hardy added a comment - Thanx, I test it in Confluence Server 7.19.1 and it fixed

            A fix for this issue is available in Confluence Server and Data Center 7.19.1.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Madhubabu Kethineni (Inactive) added a comment - A fix for this issue is available in Confluence Server and Data Center 7.19.1. Upgrade now or check out the Release Notes to see what other issues are resolved.
            Madhubabu Kethineni (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]

            Hardy added a comment -

            Hardy added a comment - See also: https://community.atlassian.com/t5/Confluence-questions/Inserting-an-image-from-the-clipboard-filename-does-not-get-a/qaq-p/2026325 Please fix it soon.
            Duy Truong Luong made changes -
            Status Original: Awaiting Merge [ 10064 ] New: Waiting for Release [ 12075 ]

              dluong Duy Truong Luong
              9f7de485df51 Basar Beykoz
              Affected customers:
              14 This affects my team
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: