bpo-9949: Enable symlink traversal for ntpath.realpath#15287
Conversation
|
This is ready to merge once CI passes. I'll do it and then rebase #15231 before merging that one. |
Sorry, something went wrong.
|
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, something went wrong.
(cherry picked from commit 75e0649) Co-authored-by: Steve Dower <steve.dower@python.org>
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Windows7 SP1 3.x has failed when building commit 75e0649. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/40/builds/2885 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 384 tests OK. 10 slowest tests:
2 tests failed: 33 tests skipped: 2 re-run tests: Total duration: 11 min 4 sec Click to see traceback logsTraceback (most recent call last):
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_ntpath.py", line 210, in test_realpath_curdir
tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_ntpath.py", line 30, in tester
raise TestFailed("%s should return: %s but returned: %s" \
Traceback (most recent call last):
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_venv.py", line 337, in test_unicode_in_batch_file
out, err = check_output(
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmprmrzilsg\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
Traceback (most recent call last):
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_venv.py", line 337, in test_unicode_in_batch_file
out, err = check_output(
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmp9l9odtp0\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Windows10 3.x has failed when building commit 75e0649. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/3/builds/3298 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 387 tests OK. 10 slowest tests:
2 tests failed: 30 tests skipped: 2 re-run tests: Total duration: 13 min 37 sec Click to see traceback logsTraceback (most recent call last):
File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_ntpath.py", line 210, in test_realpath_curdir
tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_ntpath.py", line 30, in tester
raise TestFailed("%s should return: %s but returned: %s" \
Traceback (most recent call last):
File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_venv.py", line 337, in test_unicode_in_batch_file
out, err = check_output(
File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\D:\\temp\\tmpjvhg3gb8\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
Traceback (most recent call last):
File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_venv.py", line 337, in test_unicode_in_batch_file
out, err = check_output(
File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\D:\\temp\\tmp6vl8d2pf\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Windows7 SP1 3.8 has failed when building commit c30c869. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/208/builds/279 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 388 tests OK. 10 slowest tests:
2 tests failed: 33 tests skipped: 2 re-run tests: Total duration: 11 min 14 sec Click to see traceback logsTraceback (most recent call last):
File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_venv.py", line 315, in test_unicode_in_batch_file
out, err = check_output(
File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpyua593m9\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
Traceback (most recent call last):
File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_ntpath.py", line 210, in test_realpath_curdir
tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_ntpath.py", line 30, in tester
raise TestFailed("%s should return: %s but returned: %s" \
Traceback (most recent call last):
File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_venv.py", line 315, in test_unicode_in_batch_file
out, err = check_output(
File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpux9eusss\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Windows10 3.8 has failed when building commit c30c869. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/217/builds/269 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 391 tests OK. 10 slowest tests:
2 tests failed: 30 tests skipped: 2 re-run tests: Total duration: 14 min 45 sec Click to see traceback logsTraceback (most recent call last):
File "D:\buildarea\3.8.bolen-windows10\build\lib\test\test_venv.py", line 315, in test_unicode_in_batch_file
out, err = check_output(
File "D:\buildarea\3.8.bolen-windows10\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\D:\\temp\\tmp_ejyuk4y\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
Traceback (most recent call last):
File "D:\buildarea\3.8.bolen-windows10\build\lib\test\test_ntpath.py", line 210, in test_realpath_curdir
tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
File "D:\buildarea\3.8.bolen-windows10\build\lib\test\test_ntpath.py", line 30, in tester
raise TestFailed("%s should return: %s but returned: %s" \
Traceback (most recent call last):
File "D:\buildarea\3.8.bolen-windows10\build\lib\test\test_venv.py", line 315, in test_unicode_in_batch_file
out, err = check_output(
File "D:\buildarea\3.8.bolen-windows10\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\D:\\temp\\tmp7utx1za6\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot x86 Windows7 3.8 has failed when building commit c30c869. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/210/builds/208 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 391 tests OK. 10 slowest tests:
2 tests failed: 30 tests skipped: 2 re-run tests: Total duration: 1 hour 5 min Click to see traceback logsTraceback (most recent call last):
File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\test\test_venv.py", line 315, in test_unicode_in_batch_file
out, err = check_output(
File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\D:\\temp\\tmpddif0hoz\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
Traceback (most recent call last):
File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\test\test_venv.py", line 315, in test_unicode_in_batch_file
out, err = check_output(
File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\test\test_venv.py", line 42, in check_output
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['\\\\?\\D:\\temp\\tmpdfbt5vu7\\\u03fc\u045e\u0422\u03bb\u0424\u0419\\Scripts\\activate.bat', '&', 'python_d.exe', '-c', 'print(0)']' returned non-zero exit status 1.
Traceback (most recent call last):
File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\test\test_ntpath.py", line 210, in test_realpath_curdir
tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\test\test_ntpath.py", line 30, in tester
raise TestFailed("%s should return: %s but returned: %s" \
|
Sorry, something went wrong.
https://bugs.python.org/issue9949