[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2013-04-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

issue13775, issue16074, and issue16812 all are virtually about the same bug. 
There is no working patch in any issue, but the discussion in issue16074 is 
longer.

--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - bad error message in os.rename

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2012-12-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue16074.

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2012-01-12 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I fail to see the bug. The output is correct, you are just misinterpreting it. 
It gives you the error code, error message, and original filename. It doesn't 
*actually* claim that the access to test is denied.

Now, changing the file in the message to the dest file doesn't really improve 
things. It fixes your case, but breaks cases involving problems with the source 
file.

So if any change is made, it should include both source and dest in the 
exception.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2012-01-11 Thread Santoso Wijaya

New submission from Santoso Wijaya santoso.wij...@gmail.com:

Consider:

 os.symlink('.\\test', 'Lib\\bar')
Traceback (most recent call last):
  File stdin, line 1, in module
WindowsError: [Error 5] Access is denied: '.\\test'

Where Lib\\bar is previously created. The symlink creation is rightly rejected, 
but with a misleading message. The failure is because 'Lib\\bar' already 
exists, not because of '.\\test'.

--
components: Windows
messages: 151101
nosy: santa4nt
priority: normal
severity: normal
status: open
title: Access Denied message on symlink creation misleading for an existing 
file/directory target.
type: behavior
versions: Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2012-01-11 Thread Santoso Wijaya

Santoso Wijaya santoso.wij...@gmail.com added the comment:

Simple patch.

--
keywords: +patch
Added file: http://bugs.python.org/file24208/issue13775_py33.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com