[issue34711] Fix test_httpservers on AIX (trailingSlashOK)

2018-10-02 Thread Martin Panter

Martin Panter  added the comment:

Hi Michael, I agree with Victor that the best place to fix the problem is in 
the HTTP server module. In other words, the “medium fix” you mentioned in your 
original post.

Your recent proposal to just skip the test means that AIX will continue to 
suffer from the original bug.

--
nosy: +martin.panter

___
Python tracker 

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



[issue34711] Fix test_httpservers on AIX (trailingSlashOK)

2018-10-02 Thread Eryk Sun


Eryk Sun  added the comment:

> I confirm that in a junction point

This path-parsing bug that strips a trailing slash occurs when a traversed 
directory is a reparse point, such as a mount-point (junction) or directory 
symbolic link. It may be limited to just the NTFS and ReFS file-system drivers, 
which is all I tested. Or it may be a bug in the I/O manager itself, which 
actually implements the name grafting for Microsoft's mount-point (0xA003) 
and symlink (0xA00C) reparse tags.

I thought the suggested patch was ok because it followed the pattern of 
existing code that prevents opening directories on Unix. But I can see the 
distinction in that the latter is implementing behavior policy rather than 
working around a platform bug. Also, while _Py_open and _Py_fopen do allow 
opening a directory on a Linux box, in apparent violation of this policy, these 
are private, internal functions, and there's no use that I'm aware of in the 
CPython implementation for directory FDs or FILE streams opened this way.

--
nosy: +eryksun

___
Python tracker 

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



[issue34711] Fix test_httpservers on AIX (trailingSlashOK)

2018-10-02 Thread Michael Felt


Michael Felt  added the comment:

Changed the title to reflect the requested change is only in Tests.

--
components:  -IO
title: return ENOTDIR when open() accepts filenames with a trailing slash -> 
Fix test_httpservers on AIX (trailingSlashOK)

___
Python tracker 

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