[issue35236] urllib.request.urlopen throws on some valid FTP files

2018-11-13 Thread Ian Liu Rodrigues


New submission from Ian Liu Rodrigues :

Some FTP clients will not allow changing to a directory if the path does not 
ends with a slash. For example, try out this in a public FTP:

from ftplib import FTP
ftp = FTP('ftp.unicamp.br')
ftp.login()
ftp.cwd('pub/libreoffice') # throws error
ftp.cwd('pub/libreoffice/') # OK

The problem is urllib.request doesn't include the trailing slash, thus throwing 
an error. This behavior also happens with the command line ftp client.

I think this happens because the libreoffice directory is a symlink, and this 
can be a FTP server specific behavior.

--
components: Library (Lib)
messages: 329862
nosy: Ian Liu Rodrigues
priority: normal
severity: normal
status: open
title: urllib.request.urlopen throws on some valid FTP files
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35236] urllib.request.urlopen throws on some valid FTP files

2018-11-13 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +9779
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com