Issue2611

classification
Title: mkdir() operation in /Lib/os.py has different behavior when running in Docker container
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jochenhebbrecht
Priority: Keywords:

Created on 2017-07-20.12:46:17 by jochenhebbrecht, last changed 2017-07-20.12:53:33 by jochenhebbrecht.

Messages
msg11487 (view) Author: Jochen Hebbrecht (jochenhebbrecht) Date: 2017-07-20.12:53:33
Local environment
---------------------
$ java -jar jython-standalone-2.7.0.jar 
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_131
Type "help", "copyright", "credits" or "license" for more information.
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'os' is not defined
>>> import os
>>> os.mkdir('/tmp/jochen')
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 17] File exists: '/tmp/jochen'

=> We get Errno 17 which is expected.


Docker environment
---------------------
$ java -jar jython-standalone-2.7.0.jar 
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_131
Type "help", "copyright", "credits" or "license" for more information.
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'os' is not defined
>>> import os
>>> os.mkdir('/tmp/jochen')
>>> os.mkdir('/tmp/jochen')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/jochen'

=> We get a different Errno
History
Date User Action Args
2017-07-20 12:53:33jochenhebbrechtsetmessages: + msg11487
2017-07-20 12:46:17jochenhebbrechtcreate