2015-12-15 23:41:18 |
Robert Bruce Park |
bug |
|
|
added bug |
2015-12-15 23:42:04 |
Robert Bruce Park |
bug |
|
|
added subscriber William Grant |
2015-12-18 04:55:20 |
William Grant |
launchpadlib: status |
New |
Incomplete |
|
2015-12-18 04:55:41 |
William Grant |
launchpadlib: status |
Incomplete |
Invalid |
|
2015-12-18 22:19:43 |
Robert Bruce Park |
affects |
launchpadlib |
xdg-utils |
|
2015-12-18 22:20:40 |
Robert Bruce Park |
affects |
xdg-utils |
launchpadlib |
|
2015-12-18 22:30:37 |
Robert Bruce Park |
bug watch added |
|
https://bugs.freedesktop.org/show_bug.cgi?id=93444 |
|
2015-12-18 22:31:16 |
Robert Bruce Park |
bug task added |
|
xdg-utils (Ubuntu) |
|
2015-12-18 22:31:24 |
Robert Bruce Park |
xdg-utils (Ubuntu): status |
New |
Confirmed |
|
2015-12-18 22:31:46 |
Robert Bruce Park |
bug task added |
|
xdg-utils |
|
2015-12-18 22:32:19 |
Robert Bruce Park |
summary |
Wrong URL opens in browser when generating oauth token |
xdg-open truncates URLs at the first '&' |
|
2015-12-18 22:33:11 |
Robert Bruce Park |
description |
Ok guys this one is real strange. Consider the following script:
http://bazaar.launchpad.net/+branch/cupstream2distro/view/head:/token_generator.py
(essentially trivial call to Launchpad.login_with() and explicitly using python2 due to bug 1526563).
When I run it, I get this output:
$ ./token_generator.py
The authorization page:
(https://launchpad.net/+authorize-token?oauth_token=H17khGCRnvSzc10PzjZl&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
However the page that loads in my browser is just the truncated URL https://launchpad.net/+authorize-token?oauth_token=H17khGCRnvSzc10PzjZl which displays a 403.
If I then hover my mouse over that link in the terminal, the URL is correctly underlined (eg, including the allow_permission=DESKTOP_INTEGRATION and not including the parentheses, however if I right click (in gnome terminal) and choose "open link", STILL the wrong URL opens (same wrong URL, truncated at the &).
In order to make this work, I have to copy&paste the full URL, and then only when manually pasting the URL into the browser window does the page load correctly and allow me to authorize the token.
So quite strange behavior here, URL is being truncated, but I'm not sure by what or why. I guess firefox is doing it? It doesn't make sense that lplib script and gnome-terminal when clicking the link would both truncate in the same way (especially since gnome terminal underlines the correct url).
This is on xenial, with latest updates installed, using firefox as default browser. |
$ xdg-open 'http://example.com/?foo&bar'
Expected behavior: that URL opens in my browser
Actual behavior: browser opens 'http://example.com/?foo' |
|
2015-12-18 22:34:15 |
Robert Bruce Park |
xdg-utils (Ubuntu): milestone |
|
ubuntu-16.04 |
|
2015-12-18 23:20:00 |
Bug Watch Updater |
xdg-utils: status |
Unknown |
Confirmed |
|
2015-12-18 23:20:00 |
Bug Watch Updater |
xdg-utils: importance |
Unknown |
Medium |
|
2015-12-18 23:20:05 |
Bug Watch Updater |
bug watch added |
|
https://bugs.freedesktop.org/show_bug.cgi?id=44046 |
|
2016-04-01 16:33:31 |
Mathew Hodson |
xdg-utils (Ubuntu): importance |
Undecided |
Medium |
|
2021-01-10 07:55:15 |
Nicholas Guriev |
xdg-utils (Ubuntu): status |
Confirmed |
Incomplete |
|
2021-01-11 12:22:10 |
Sebastien Bacher |
xdg-utils (Ubuntu): importance |
Medium |
Low |
|
2021-01-11 12:22:15 |
Sebastien Bacher |
xdg-utils (Ubuntu): status |
Incomplete |
New |
|
2021-01-11 12:22:19 |
Sebastien Bacher |
xdg-utils (Ubuntu): status |
New |
Incomplete |
|
2021-01-11 12:22:50 |
Sebastien Bacher |
xdg-utils (Ubuntu): status |
Incomplete |
Invalid |
|