This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cfernald
Recipients cfernald, serhiy.storchaka
Date 2022-04-05.18:15:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A fix was made to unify handling of the trailing slash in TarFile.getmember related to This change fixed the <100 character case, but made it so directories over 100 character which come from a tar file can no longer be accessed through getmember, even if returned from getnames. This appears to be because internal to tarfile, member names still include the trailing slash on directories over 100 characters but getmember will always remove the trailing slash from the provided name so the comparison will always fail.

A simple example of this is as follows using 3.10.4.

1. Download:

2. place attached python script in same directory

3. run on 3.8.2 -> fails to get stripped version of path (line 16)

4. run on 3.10.4 -> fails to get even unstripped version (line 12 & 16)
Date User Action Args
2022-04-05 18:15:20cfernaldsetrecipients: + cfernald, serhiy.storchaka
2022-04-05 18:15:20cfernaldsetmessageid: <>
2022-04-05 18:15:20cfernaldlinkissue47231 messages
2022-04-05 18:15:20cfernaldcreate