[issue37528] test_tarfile: test_extractall_symlinks() fails on Windows with: [WinError 206] The filename or extension is too long

Steve Dower report at bugs.python.org
Wed Aug 21 20:34:07 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

I disabled the long path support on my own build and can reproduce this by passing a long path to --tempdir

Unfortunately, I'm not familiar enough with what tarfile is trying to do here - why is it recreating the entire directory structure within itself?

Browsing through lib/tarfile.py, I suspect it's the mix of "/" literals and os.path functions that's at fault here. It probably requires a much bigger job to go through and fix it up than simply fixing tests.

----------
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37528>
_______________________________________


More information about the Python-bugs-list mailing list