Bug 421298 - Clicking http(s) links results into endless 'downloading file' dialogue instead of passing link to web browser
Summary: Clicking http(s) links results into endless 'downloading file' dialogue inste...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.9.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-10 17:30 UTC by dkr-bugskdeorg
Modified: 2020-05-13 20:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kde-open5 infinite downloading file dialogue (1.19 MB, video/webm)
2020-05-10 23:34 UTC, dkr-bugskdeorg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dkr-bugskdeorg 2020-05-10 17:30:29 UTC
SUMMARY
When clicking/following a link in Okular, you get a file download dialogue that never finishes. This is not down to incorrect MIME type associations (File type text/html and File type inode/vnd.kde.service.http point to the web browser)

STEPS TO REPRODUCE
1. Open a PDF that includes links, e.g. https://gahp.net/wp-content/uploads/2017/09/sample.pdf
2. Find an active http link
3. Click to follow it

OBSERVED RESULT
File transfer dialogue that never completes

EXPECTED RESULT
Link is passed to the default web browser

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux 5.6.8-200.fc31.x86_64
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version:  5.68.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION

The DE is Xfce4, but the following KDE/KDE Framework packages are installed
$  dnf list installed k{d,f}*
Installed Packages
kde-cli-tools.x86_64                                                      5.17.5-1.fc31                                               @updates
kde-connect.x86_64                                                        1.4-2.fc31                                                  @updates
kde-connect-libs.x86_64                                                   1.4-2.fc31                                                  @updates
kde-filesystem.x86_64                                                     4-62.fc31                                                   @fedora 
kde-settings.noarch                                                       31.0-1.fc31                                                 @fedora 
kdeconnectd.x86_64                                                        1.4-2.fc31                                                  @updates
kdegraphics-mobipocket.x86_64                                             19.08.3-1.fc31                                              @updates
kdesu.x86_64                                                              1:5.17.5-1.fc31                                             @updates
kf5-attica.x86_64                                                         5.68.0-1.fc31                                               @updates
kf5-filesystem.x86_64                                                     5.68.0-1.fc31                                               @updates
kf5-kactivities.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kactivities-stats.x86_64                                              5.68.0-1.fc31                                               @updates
kf5-karchive.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-kauth.x86_64                                                          5.68.0-1.fc31                                               @updates
kf5-kbookmarks.x86_64                                                     5.68.0-1.fc31                                               @updates
kf5-kcmutils.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-kcodecs.x86_64                                                        5.68.0-1.fc31                                               @updates
kf5-kcompletion.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kconfig-core.x86_64                                                   5.68.0-1.fc31                                               @updates
kf5-kconfig-gui.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kconfigwidgets.x86_64                                                 5.68.0-1.fc31                                               @updates
kf5-kcoreaddons.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kcrash.x86_64                                                         5.68.0-1.fc31                                               @updates
kf5-kdbusaddons.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kdeclarative.x86_64                                                   5.68.0-1.fc31                                               @updates
kf5-kdesu.x86_64                                                          5.68.0-1.fc31                                               @updates
kf5-kdnssd.x86_64                                                         5.68.0-1.fc31                                               @updates
kf5-kdoctools.x86_64                                                      5.68.0-1.fc31                                               @updates
kf5-kfilemetadata.x86_64                                                  5.68.0-1.fc31                                               @updates
kf5-kglobalaccel.x86_64                                                   5.68.0-1.fc31                                               @updates
kf5-kglobalaccel-libs.x86_64                                              5.68.0-1.fc31                                               @updates
kf5-kguiaddons.x86_64                                                     5.68.0-1.fc31                                               @updates
kf5-khtml.x86_64                                                          5.68.0-1.fc31                                               @updates
kf5-ki18n.x86_64                                                          5.68.0-1.fc31                                               @updates
kf5-kiconthemes.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kinit.x86_64                                                          5.68.0-1.fc31                                               @updates
kf5-kio-core.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-kio-core-libs.x86_64                                                  5.68.0-1.fc31                                               @updates
kf5-kio-doc.noarch                                                        5.68.0-1.fc31                                               @updates
kf5-kio-file-widgets.x86_64                                               5.68.0-1.fc31                                               @updates
kf5-kio-ntlm.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-kio-widgets.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kio-widgets-libs.x86_64                                               5.68.0-1.fc31                                               @updates
kf5-kirigami2.x86_64                                                      5.68.0-1.fc31                                               @updates
kf5-kitemviews.x86_64                                                     5.68.0-1.fc31                                               @updates
kf5-kjobwidgets.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-kjs.x86_64                                                            5.68.0-1.fc31                                               @updates
kf5-knotifications.x86_64                                                 5.68.0-1.fc31                                               @updates
kf5-kpackage.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-kparts.x86_64                                                         5.68.0-1.fc31                                               @updates
kf5-kpeople.x86_64                                                        5.68.0-1.fc31                                               @updates
kf5-kpty.x86_64                                                           5.68.0-2.fc31                                               @updates
kf5-krunner.x86_64                                                        5.68.0-1.fc31                                               @updates
kf5-kservice.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-ktextwidgets.x86_64                                                   5.68.0-1.fc31                                               @updates
kf5-kwallet.x86_64                                                        5.68.0-1.fc31                                               @updates
kf5-kwallet-libs.x86_64                                                   5.68.0-1.fc31                                               @updates
kf5-kwayland.x86_64                                                       5.68.0-1.fc31                                               @updates
kf5-kwidgetsaddons.x86_64                                                 5.68.0-1.fc31                                               @updates
kf5-kwindowsystem.x86_64                                                  5.68.0-1.fc31                                               @updates
kf5-kxmlgui.x86_64                                                        5.68.0-1.fc31                                               @updates
kf5-libkexiv2.x86_64                                                      19.08.3-1.fc31                                              @updates
kf5-plasma.x86_64                                                         5.68.0-1.fc31                                               @updates
kf5-purpose.x86_64                                                        5.68.0-1.fc31                                               @updates
kf5-solid.x86_64                                                          5.68.0-1.fc31                                               @updates
kf5-sonnet-core.x86_64                                                    5.68.0-1.fc31                                               @updates
kf5-sonnet-ui.x86_64                                                      5.68.0-1.fc31                                               @updates
kf5-syntax-highlighting.x86_64                                            5.68.0-1.fc31                                               @updates
kf5-threadweaver.x86_64
Comment 1 Yuri Chornoivan 2020-05-10 18:11:28 UTC
Works fine in KDE here. Can you try

xdg-settings get default-web-browser

?
Comment 2 Albert Astals Cid 2020-05-10 20:39:44 UTC
Yuri meant Plasma, but yes, this works just fine, seems either a problem with your setup or with fedora
Comment 3 dkr-bugskdeorg 2020-05-10 21:22:23 UTC
(In reply to Yuri Chornoivan from comment #1)
> Works fine in KDE here. Can you try
> 
> xdg-settings get default-web-browser
> 
> ?

$ xdg-settings get default-web-browser
firefox.desktop

And the same in kcmshell5 filetypes
Comment 4 dkr-bugskdeorg 2020-05-10 21:27:01 UTC
(In reply to Albert Astals Cid from comment #2)
> Yuri meant Plasma, but yes, this works just fine, seems either a problem
> with your setup or with fedora

I see. How can I start troubleshooting this? 

e.g., what okular writes in stdout doesn't appear relevant to me
$ okular [and then opening a PDF and clicking on a link]
Couldn't start kuiserver from org.kde.kuiserver.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable")
kf5.kservice.sycoca: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.
kf5.kio.widgets: KRun(0x7f5b28008d10) ERROR (stat): 1   ""
Comment 5 Albert Astals Cid 2020-05-10 21:49:20 UTC
Hard to say.

Does
kde-open5 https://kde.org
work for you?
Comment 6 dkr-bugskdeorg 2020-05-10 22:55:42 UTC
(In reply to Albert Astals Cid from comment #5)
> Hard to say.
> 
> Does
> kde-open5 https://kde.org
> work for you?

Indeed it doesn't, I get the same dialogue as in okular
$ kde-open5 https://kde.org
Couldn't start kuiserver from org.kde.kuiserver.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable")
Comment 7 Albert Astals Cid 2020-05-10 23:04:23 UTC
Would you be able to do a screen recording of what you get?
Comment 8 dkr-bugskdeorg 2020-05-10 23:34:16 UTC
Created attachment 128346 [details]
kde-open5 infinite downloading file dialogue

Yes of course. Here's what happens.
Comment 9 Albert Astals Cid 2020-05-11 21:51:27 UTC
Just to double check, you don't have any proxy set at
kcmshell5 proxy
right?
Comment 10 dkr-bugskdeorg 2020-05-12 06:01:58 UTC
(In reply to Albert Astals Cid from comment #9)
> Just to double check, you don't have any proxy set at
> kcmshell5 proxy
> right?

It's set to "No Proxy".
Comment 11 Albert Astals Cid 2020-05-12 17:02:38 UTC
Can you confirm that installing kf5-kded fixes it?
Comment 12 Albert Astals Cid 2020-05-12 17:03:04 UTC
You may need to reboot after the install
Comment 13 dkr-bugskdeorg 2020-05-12 22:48:41 UTC
(In reply to Albert Astals Cid from comment #11)
> Can you confirm that installing kf5-kded fixes it?

Yes, it does. It downloads what is probably index.html first, but then passes the actual URL to the browser. Should it happen this way?

What should happen next? Can Okular declare kf5-kded a hard dependency so that all distros pick it up, or should we open bugs at all affected distros' bugzillas?
Comment 14 Albert Astals Cid 2020-05-13 20:08:17 UTC
kf5-kio needs to depend on kf5-kded.

I have emailed kde-distro-packagers about it https://mail.kde.org/pipermail/kde-distro-packagers/2020-May/000413.html

But if you have a fedora bug system user i would appreciate if you could also report it there.

I'm closing this bug since there's nothing really for us to fix.
Comment 15 dkr-bugskdeorg 2020-05-13 20:47:00 UTC
Done, and thanks for handling this
https://bugzilla.redhat.com/show_bug.cgi?id=1835467