Bug 431694 - Sharing multiple URLs from fenix mobile appends them to a single invalid URL on desktop
Summary: Sharing multiple URLs from fenix mobile appends them to a single invalid URL ...
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 477974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-01-16 15:10 UTC by Christian Stadelmann
Modified: 2024-03-12 13:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Stadelmann 2021-01-16 15:10:41 UTC
SUMMARY
I tried to share multiple URLs from Fenix mobile at once. On my desktop, I see only a single tab opening with all URLs stiched together into one string, opening only one tab in my web browser.

STEPS TO REPRODUCE
0. Have KDE connect installed on an android smartphone
1. Open Firefox Mobile (fenix) on the same android phone
2. Open multiple tabs in firefox mobile
3. Have connection between KDE connect on smartphone and desktop running
4. In Firefox mobile, open tab overview (list of tabs) by clicking on the number
5. In Firefox mobile's tab overview, click the three-dots menu. Click "Share all tabs"
6. In the share screen, select KDE connect
7. In KDE connect, select the desktop PC
8. On the desktop PC, watch the browser window open

OBSERVED RESULT
Firefox (my standard browser on the desktop) opens a single URL, which – depending on the URL – probably fails to load. In step 8, the browser is opened with the commandline argument "[URL0]%0A%0A[URL1]%0A%0A[URL2]"


EXPECTED RESULT
Open a tab per URL, i.e. if I share 3 tabs through KDE connect, I want to have 3 URLs opened on my desktop browser.


SOFTWARE/OS VERSIONS
Windows: (untested)
macOS: (untested)
Linux/KDE Plasma: Fedora 33 x86_64
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15
KDE connect: 20.08.1-1.fc33


ADDITIONAL INFORMATION
If you for example share the URLs with Signal (on the smartphone) instead of KDE connect in step 6, the URLs are separated by two newlines: "[URL0]\n\n[URL1]\n\n[URL2]". This is known (and maybe a bug in Firefox): https://github.com/mozilla-mobile/fenix/issues/4178
Anyway, if KDE connect gets this shared URL with line feed characters (`\n`) in it, it should not turn the line feed characters into `%0A`. Or is this the format it gets the URLs? I don't know.


Idea:
Would it be possible that KDE connect turns the `\n` characters into spaces? This should solve the issue for sharing with Firefox desktop at least.
Comment 1 John Veness 2024-03-12 13:37:28 UTC
*** Bug 477974 has been marked as a duplicate of this bug. ***