Issue2417

classification
Title: os.utime fails on UNC network paths
Type: behaviour Severity: major
Components: Library Versions: Jython 2.7
Milestone: Jython 2.7.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: zyasoft Nosy List: mdarden, zyasoft
Priority: high Keywords:

Created on 2015-10-28.08:49:39 by mdarden, last changed 2015-11-10.16:28:56 by zyasoft.

Messages
msg10393 (view) Author: Miguel Dardenne (mdarden) Date: 2015-10-28.08:52:53
os.utime() fails with
OSError: [Errno 17] File exists: '\\srv\dir1\filename'

It works fine when using a path of the form 'c:\dir1\filename

My guess is that it could be related to issue #2120 and/or #2014
msg10394 (view) Author: Jim Baker (zyasoft) Date: 2015-10-28.16:45:12
As we have seen with this bug, and earlier bugs cited in msg10393, JNR-Posix simply does not work with UNC paths, so we should fix this specific issue and sweep for any other usage of JNR-Posix when we are running on Windows.
msg10395 (view) Author: Jim Baker (zyasoft) Date: 2015-10-28.22:48:26
Fixed as of https://hg.python.org/jython/rev/9427a38fa33d
msg10396 (view) Author: Jim Baker (zyasoft) Date: 2015-10-28.22:49:12
I also looked at every other use of JNR Posix that remains in Jython, and we should not have any more UNC path issues.
History
Date User Action Args
2015-11-10 16:28:56zyasoftsetstatus: pending -> closed
2015-10-28 22:49:13zyasoftsetmessages: + msg10396
2015-10-28 22:48:26zyasoftsetstatus: open -> pending
resolution: accepted -> fixed
messages: + msg10395
2015-10-28 16:45:12zyasoftsetnosy: + zyasoft
messages: + msg10394
priority: high
assignee: zyasoft
milestone: Jython 2.7.1
resolution: accepted
2015-10-28 08:52:53mdardensetmessages: + msg10393
2015-10-28 08:49:39mdardencreate