Pdf-files are stored doubled (chrome connector)
Hello,
I am using the chrome connector for the Vivaldi browser.
By adding a pdf to the libary the pdf is stored twice in Zotero (there are two different folders in ~/Zotero/storage containing the same pdf).
When using Firefox everything is fine.
Zotero: version 5.0.68
Zotero Connector: version 5.0.66
Browser: Vivaldi 3.0.1874.38
OS: Fedora 32 (Linux)
I am using the chrome connector for the Vivaldi browser.
By adding a pdf to the libary the pdf is stored twice in Zotero (there are two different folders in ~/Zotero/storage containing the same pdf).
When using Firefox everything is fine.
Zotero: version 5.0.68
Zotero Connector: version 5.0.66
Browser: Vivaldi 3.0.1874.38
OS: Fedora 32 (Linux)
If you really think this is happening, we'd want to see a Debug ID for saving a new PDF that doesn't yet exist within 'storage'.
I reproduced it in Chromium. Steps:
Open Zotero
Open Chromium with Zotero connector installed
Open a pdf file on a website (it´s opening in browser)
Click on the icon for Zotero connector
Now in Zotero there are two pdf items. Please see my screenshot.
Strange, but sometimes it works correctly. But mostly not.
The two items are created within storage and also shown in Zotero.
(for example ~/Zotero/storage/GJEYG4EU and ~/Zotero/storage/KVKFN2KR)
In Zotero there a two items with pdf files (don´t know about the labels child or parent, I am new to Zotero)
I hope it´s better to unterstand.
Screenshot
https://www.bilder-upload.eu/bild-fb4219-1589781373.png.html
Zotero:
D1003379526
Zotero Connector:
D54006100
We might be able to block accidental/erroneous double-clicks from triggering saving twice, but if this is happening at all for you it's some sort of problem with your system.
While using my computer I never noticed that.
I cannot believe all my mouses are broken… But I think that is maybe an issue of the linux system I am using.
I will test it on my laptop later.
There also happens the same thing. Doesn´t matter which mouse I am using. Also my touchpad with hardware buttons shows the same behavior.
In one case the document was downloaded four times at once.
So I logged in to my company computer and opened https://unixpapa.com/js/testmouse.html to see what that mouse is doing there. It´ s also the same behavior. Sometimes the output field shows dbclick events. But that computer works fine, also as my private computer or laptop.
After that I tried again the Firefox with Zotero Connector (same computer, same mouse, same test files). No problem at all. Firefox only downloads one copy.
Again, firefox with same mouse, same computer works fine. When pressing other buttons with a single click I never had double click events.
When adding webpages to Zotero via the Chrome Zotero Connector everything works fine.
Only pdf files are mostly stored twice
If you reload the PDF a few times, and then click again, does it not happen?
I can't reproduce that, though.
To be clear, this is something the site does — it wouldn't be you choosing to open the PDF in a new tab.
In any case, we'll investigate.
Here you can see this problem on my computer: https://drive.google.com/file/d/1bfk-16c3RIGDO_bLW1UlkT0dW35lRwnH/view?usp=sharing
Reloading the pdf file one time seems to solve it. After reloading it is only saved once.
Tested in Vivaldi browser.