This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Problem with urlparse in Windows XP after a drag and drop
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: Christopher.Bare, PeterL, orsenthil
Priority: normal Keywords:

Created on 2010-02-19 14:20 by PeterL, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg99571 - (view) Author: Peter Landgren (PeterL) Date: 2010-02-19 14:20
When I drag and drop a "file/url" from the file explorer in Windows to my application, I don't get a usable fil name:
In the application I get from Windows
file:///C:/Documents%20and%20Settings/Peter/Mina%20dokument/Mina%20bilder/BlueHole/IMG_1665.JPG

After call to urlparser.urlparser() with this string as parameter I get back:
/C:/Documents%20and%20Settings/Peter/Mina%20dokument/Mina%20bilder/BlueHole/IMG_1665.JPG
Which is not a valid path in Windows
However, It's easy to fix in my application.

So, is this behavior known and are there any plans to change this?
msg110322 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-07-14 19:43
The resultant url you get after doing a urlparse is not a Windows PATH, but url path component. So, when you use in relative manner by doing urljoin, you will see that the original will get constructed properly.

So, there is really no a problem here.
msg189259 - (view) Author: Christopher Bare (Christopher.Bare) Date: 2013-05-15 00:49
I see Senthil's point, but this tripped me up.
History
Date User Action Args
2022-04-11 14:56:57adminsetgithub: 52213
2013-05-15 00:49:09Christopher.Baresetnosy: + Christopher.Bare
messages: + msg189259
2010-07-14 19:43:29orsenthilsetstatus: open -> closed
resolution: not a bug
messages: + msg110322

stage: resolved
2010-07-11 13:34:54BreamoreBoysetassignee: orsenthil
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
nosy: + orsenthil
2010-02-19 14:20:10PeterLcreate