| Summary: | Gwenview doesn't report error when loading URL with non-existent file | ||
|---|---|---|---|
| Product: | [Applications] gwenview | Reporter: | JanKusanagi <jan-bugs> |
| Component: | general | Assignee: | Gwenview Bugs <gwenview-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | ashark, dan.shelley, jan-bugs |
| Priority: | NOR | ||
| Version First Reported In: | 18.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | Mageia RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
JanKusanagi
2019-02-15 21:43:35 UTC
Thank you for your report! I was able to confirm your bug report on my system as well! I've noticed that servers running Nginx given a non-existent file tend to show the message: > "We should not reach this point!" My test to confirm my theory uses a Steam CDN url URL: https://steamstore-a.akamaihd.net/public/images/v6/doesnotexist.png I used CURL to receive the headers of the link as well: > $ curl -I https://steamstore-a.akamaihd.net/public/images/v6/doesnotexist.png > HTTP/1.1 404 Not Found > Server: nginx > Content-Type: text/html > Date: Sat, 30 Mar 2019 22:20:42 GMT > Connection: keep-alive While servers running Apache show the other message inside Gwenview: > Loading 'thisdoesnotexist.png' failed > Gwenview cannot display documents of type text/html. Here is my other CURL report to show for a server running Apache: > $ curl -I http://akarixb.nongnu.org/thisdoesnotexist.png > HTTP/1.1 404 Not Found > Date: Sat, 30 Mar 2019 22:24:11 GMT > Server: Apache/2.4.7 > Content-Type: text/html; charset=iso-8859-1 For me, Gwenview _does_ show the error (in place where image should be shown) when server exists (no matter nginx or apache). With nginx server: ``` $ gwenview https://steamstore-a.akamaihd.net/public/images/v6/doesnotexist.png org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw" org.kde.kdegraphics.gwenview.lib: should not be called for documentKind= 8 ``` Note that if the above link works slow, it also may spin infinitly. With apache server: ``` $ gwenview http://akarixb.nongnu.org/thisdoesnotexist.png org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw" org.kde.kdegraphics.gwenview.lib: should not be called for documentKind= 8 ``` But with unavailable server, it spins infinitely ``` $ gwenview https://weiorjwio3939399393eqweqe2213.com/fake.jpg org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw" ``` Operating System: Arch Linux KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 Kernel Version: 6.4.11-arch1-1 (64-bit) Graphics Platform: Wayland Gwenview: 23.07.80 Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)? |