Renaming files in an artifact zip causes errors, unless I remove and replace the file

When I go into a subfolder in my zip of artifacts (created by TeamCity) and try to rename a file (using 7zip) I get a "not implemented" error. If I extract the subfolder (drag and drop), delete it from the archive, then drag and drop it back, I can now successfully edit the filenames in that folder.  Just to be clear, I am not editing the filenames before putting them back in the archive. I just pull them out, then put them back.

TeamCity seems to be creating these zips in some odd way. What can I do about it?

Thanks,
Josh

3 comments
Comment actions Permalink

Hi Josh,

We are packing files using java libraries for creating archives. I was able to rename file without unpacking in WinRAR.
It seems that files renaming inside the archive is implemented in different ways in 7Zip and WinRAR.
If this is critical for you, please feel free to create a request in our tracker.

0
Comment actions Permalink

It's not critical for us, but it was certainly surprising. Our salesperson sent an odd support request when he said "I can't rename the branding image file anymore". We have a work around so I'll leave it up to you to decide if it's important for TC to create consistent zip files, or not.

0
Comment actions Permalink

Thank you for your feedback. I created the issue: https://youtrack.jetbrains.com/issue/TW-41756, please vote for it.

0

Please sign in to leave a comment.