Opened 4 years ago
Last modified 3 years ago
#16405 new bug
[open] doesn't handle URLs with spaces
Reported by: | diver | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/Command Line Tools | Version: | R1/beta2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Spotify-qt tries to open a link which contains spaces using /bin/open
Something like this:
open "https://accounts.spotify.com/authorize?client_id=000&response_type=code&redirect_uri=http://localhost:8888&scope=playlist-read-colla borative playlist-read-private" No such file or directory
macOS version of open works fine with the same link.
Note:
See TracTickets
for help on using tickets.
Looks like the problem is not with spaces but that it thinks it is a directory.
Also, spaces are illegal characters in a uri and are to be encoded as %20 iirc, so why would this ever be called? I don't see any spaces in your uri anyway
edit: saw it now at the very end, but this seems like a bug in spotify to me, it's not passing a valid uri thuse open not treating it as one seems okay to me