Same name for multiple attachments

Testing version: 1.0 (2510)

What were you doing: Doing my best / worst to break it. Not a very realistic scenario, but…

  1. drag’n’drop PDF 1. Rename it to Untitled.
  2. immediately after the first file, drag’n’drop another PDF (no space or line break between them). Rename it to Untitled.

What feature did you use: Renaming attachments

What happened: Clicking on any of them will open same PDF file. Looks like both elements reference one file now. Most interesting, if you introduce an element between PDFs, AFTER renaming them, that won’t change anything. Still same file’s referenced and same file will open.
If there’s any space between the files before renaming them, the 2nd will be called Untitled 2 and the issue is no longer there.

What did you expect to happen: Proper files are open corresponding to previews.

Hi there,

Many thanks for trying your best to break it! That’s the type of spirit we need from you folks :wink:

You are correct in saying that it is a less realistic scenario, but it is interesting all the same.

We’ll investigate this, cc- @matteo

Thanks again for posting! :slight_smile: