Closed lehnerpat closed 10 months ago
Quick update:
I also just re-tried this with the current nightly version (i.e., using :nightly
instead of :latest
for all three docspell images in the docker compose file), specifically:
docspell/joex nightly b5506a7ff399 26 hours ago 2.09GB
docspell/restserver nightly 1dbcd0bd96c6 26 hours ago 333MB
docspell/dsc nightly 880e97d301f3 3 months ago 22.8MB
And this issue still exists the same way in Safari 😭
Hi @lehnerpat, it seems to me this issue is a duplicate of #1210 ? There are issues with the embed
element and safari. Please use firefox instead or swtich to the "cross browser view" (see also here).
Hi @eikek, thanks for your quick response here as well!
Ah yes, after looking again, this is indeed a duplicate of #1210. Sorry for not noticing this before. With the "cross-browser viewer mode" enabled, it works fine in Safari.
I think I had previously seen that comment, but I couldn't figure out what "cross browser view" meant or how to enable it, and I couldn't find anything about it in the documentation 🤔 It would be great if you could add this at some point 🙇 Or if there's already a good place in the documentation where this could go, I'm happy to open a PR for it if you point me in the right direction ☺️
Additionally, I wonder if the <embed>
could be made to work correctly (or at least better?) in Safari by removing it from the DOM before changing its src
, and then re-inserting it with the new src
(as suggested by this SO answer). I'm sure you've previously researched this issue before introducing the cross-browser viewer mode, so not sure if you've tried this before.
I don't have a Scala / Elm dev env set up, so I can't easily test this properly. But I did shortly try it in the browser console, and it seemed to behave in the desired way. Not sure how easy it is to make Elm remove + remount the element instead of just changing it in place though 😅
Anyway, for now this issue can be closed as a duplicate of #1210 👍
Ah yes, after looking again, this is indeed a duplicate of #1210. Sorry for not noticing this before. With the "cross-browser viewer mode" enabled, it works fine in Safari.
Ah nice and no worries!
I think I had previously seen that comment, but I couldn't figure out what "cross browser view" meant or how to enable it, and I couldn't find anything about it in the documentation 🤔 It would be great if you could add this at some point 🙇
Yes you are right. This should be somewhere in the docs. Perhaps a new item under Web UI is necessary that introduces the user settings. If you find some time to add this, that would be great of course. You can base it against the current-docs
branch.
Additionally, I wonder if the
<embed>
could be made to work correctly (or at least better?) in Safari by removing it from the DOM before changing itssrc
, and then re-inserting it with the newsrc
(as suggested by this SO answer). I'm sure you've previously researched this issue before introducing the cross-browser viewer mode, so not sure if you've tried this before.
It's been some time, I can't remember much of what I tried back then. With elm you can't really decide when something is mounted/unmounted. Probably there is a way to "trick" it do to it in this way (maybe by artificially changing a parent element) - I don't know. If someone finds a way that is not a bad hack 😄 then I'd happy to merge it. But I myself don't have much interest investing time in circumventing this safari issue tbh 😄.
But I myself don't have much interest investing time in circumventing this safari issue tbh 😄.
Yes, that's fair, browser compatibility is a pain 😅
Yes you are right. This should be somewhere in the docs. Perhaps a new item under Web UI is necessary that introduces the user settings. If you find some time to add this, that would be great of course. You can base it against the current-docs branch.
Sorry to back out after offering to contribute first, but I ended up not going with Docspell for now (paperless-ngx fits my usecase better and seems more mature), so I don't have Docspell running anymore. I hope this issue is another breadcrumb for people in a similar situation, until the docs are expanded :)
Thanks again!
Intro & problem summary
Hello again!
I'm observing another issue: once I open a document in Docspell in Safari on macOS, the PDF viewer is "stuck" on that document even when switching to another document. Reloading the page makes it load the other document, but it means I have to reload every time I open another document.
This seems to be the same / similar to https://github.com/eikek/docspell/issues/1210.
Reproducing the problem on v0.40.0
Note: This is the same setup as in the other issue I just opened, https://github.com/eikek/docspell/issues/2445.
Set up Docspell with docker compose, following the docker compose section of the installation manual. Since I wanted to use a release version, I deviated from the manual by downloading the docker compose file from tag v0.40.0 instead. Specifically, I did these steps:
FYI, here are the containers that were created, and the images that they use:
Open the web UI at
http://localhost:7880
and create a new collective + user using the "Sign up!" button.issuerepro
User Login:issuerepro
Password:issuerepro
Prepare any two documents (I'm using the two example documents from https://github.com/eikek/docspell/issues/2445 here).
Upload the documents to Docspell via the web UI:
http://localhost:7880/app/dashboard
), and log in with userissuerepro
that we created above.Open one document (the PDF is shown in the viewer on the right), then open the other document (it doesn't matter if you use the "next/previous" button in the detail view or return to the folder / dashboard).
In Safari 17.1.2 (19616.2.9.11.12), the old document is still shown: screen recording
In Chrome 120.0.6099.129 (Official Build) (x86_64), it properly loads the second document: screen recording
In Firefox 121.0 (64-bit), it also properly loads the second document: screen recording
Some more version / environment information