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.

Author eryksun
Recipients Safihre, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-09-03.22:01:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599170492.77.0.170686626802.issue41705@roundup.psfhosted.org>
In-reply-to
Content
This behavior is due to issue 37609, i.e. ntpath.splitdrive fails for "UNC" device paths.

    >>> ntpath.splitdrive('//?/UNC/server/share')
    ('//?/UNC', '/server/share')

The result should be "//?/UNC/server/share". A path on the "UNC" device requires a share component, on which is mounted a local or remote filesystem directory. It's functionally part of the 'drive' path. Using just the root path or a server path on the "UNC" device is malformed in the context of a normal file API open. The former fails as ERROR_INVALID_NAME (123), and the latter fails as ERROR_BAD_PATHNAME (161). 

The incorrect splitdrive result in turn makes ntpath.split misbehave:

    >>> ntpath.split('//?/UNC/server/share')
    ('//?/UNC/server', 'share')
    >>> ntpath.split('//?/UNC/server')
    ('//?/UNC/', 'server')

The correct result should be ('//?/UNC/server/share', '').
History
Date User Action Args
2020-09-03 22:01:32eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Safihre
2020-09-03 22:01:32eryksunsetmessageid: <1599170492.77.0.170686626802.issue41705@roundup.psfhosted.org>
2020-09-03 22:01:32eryksunlinkissue41705 messages
2020-09-03 22:01:32eryksuncreate