Summary: | kde-open5 should open the original URL, not the one it was redirected to | ||
---|---|---|---|
Product: | [Plasma] kde-cli-tools | Reporter: | Francois Gouget <fgouget> |
Component: | general | Assignee: | Aleix Pol <aleixpol> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | marco.clemencic, materka, me, minterior, rdieter, scarpino, urmet.saar |
Priority: | NOR | ||
Version: | 5.4.2 | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kde-cli-tools/484a7dc89a757fea830899d9ab9ad36a5f3c99a5 | Version Fixed In: | |
Sentry Crash Report: |
Description
Francois Gouget
2015-10-23 09:30:07 UTC
I have the same problem (with other URLs). There are other issues, for example huge delay: https://bugs.kde.org/show_bug.cgi?id=364662 Also when browser has different proxy configuration it won't work. Problem mentioned above is also very annoying - this redirects are so annoying that I cannot click on links in KDE. This problem affects Skype (and many other applications) which are using xdg-open to open links. xdg-open uses kde-open5 when KDE session is detected so almost all links I'm working with I need to copy by hand to browser - extremely annoying. Having the same issue here. Intranet links clicked within Slack opens in the browser as the login page. *** This bug has been marked as a duplicate of bug 364662 *** This is not a duplicate of bug 364662. These are two separate cases: * connection refuse/timeout/etc when KDE is configured with wrong proxy (or any other cause). Usually when browser is configured differently than KDE (for example proxy). It is hard to say if this is a bug or not but this is exactly what was described in bug 364662. * URL content is behind some kind of authorization, for example link to internal Jira issue. KDE internally follows redirection to login page, then recognizes content as HTML and opens new (redirected) URL in the browser. This is exactly what was described in this bug report. Please reopen this one. My comment 2 was only to connect both issues, not to mark them as duplicate. In fact it is a regression introduced... more than 7 years ago. Please check lines 1393 and 1478: https://github.com/KDE/kdelibs/blame/fee65b598f0d68ae7b4fbc3f76cb0c083f6d30ef/kio/kio/krun.cpp Now it is hosted in different repository but history is lost: https://github.com/KDE/kio/blame/master/src/widgets/krun.cpp Reopening based on recent comments. fwiw, I don't see the problem on my box, but I have the systemsettings->web browser default set explicitly, and not the default: open in application based on the contents of the URL I can confirm this bug. Re-production steps for the latest KDE Neon Git Unstable are given below: 1) Boot the iso (this isn't relevant but I tested this in qemu as follows: `qemu-system-x86_64 -enable-kvm -cpu host -vga virtio -m 8G -cdrom neon-devedition-gitunstable-20180605-0736-amd64.iso`) 2) Install Akregator (in Konsole: `sudo apt update`, `sudo apt install akregator`) 3) Open Akregator and "Fetch All Feeds" 4) Right-Click any item and select "Share on Pocket" 5) Note the URL that is opened is https://getpocket.com/login?e=2 instead of https://getpocket.com/save?url={{url}}&title={{title}} In System Settings (under "Default Applications", "Web Browser") the problem persists when using "in the following application: Firefox Web Browser". Setting the default web browser to "with the following command: /usr/bin/firefox" does not have this behaviour and works as intended with firefox opening the original link. Git commit 484a7dc89a757fea830899d9ab9ad36a5f3c99a5 by Nate Graham, on behalf of Mélanie Chauvel. Committed on 01/02/2019 at 18:27. Pushed by ngraham into branch 'Plasma/5.15'. [KRun] Don’t follow redirection to speed up and avoid incorrect behavior Summary: BUG: 354246 Test Plan: Launch kde-open5 <URL to a website you have an account and that redirects when not connected>, e.g. <https://twitter.com/i/notifications>. If it works, we see the correct URL, and not <https://twitter.com/login?redirect_after_login=%2Fi%2Fnotifications>. Reviewers: #frameworks, dfaure, cfeck Reviewed By: dfaure Subscribers: plasma-devel, anthonyfieroni, ngraham, kde-frameworks-devel Tags: #frameworks, #plasma Differential Revision: https://phabricator.kde.org/D15189 M +5 -1 kioclient/kioclient.cpp https://commits.kde.org/kde-cli-tools/484a7dc89a757fea830899d9ab9ad36a5f3c99a5 |