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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

              dluong Duy Truong Luong
              9f7de485df51 Basar Beykoz
              Votes:
              14 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: