Page MenuHomePhabricator

Filenames truncated in 1.34.2 tarball release (The Unarchiver bug!)
Closed, ResolvedPublicBUG REPORT

Description

Affecting
Tarball release on MacOS 10.15.5 using The Unarchiver to decompress.

Please note this is not a MediaWiki issue, but I'm documenting here as it's apparently an issue recognised elsewhere with a very common (but not default) archive utility on MacOS - The Unarchiver.

I'm raising this as a bug with support for the app, but there's no public issue tracker and MacPaw are somewhat infamous for not supporting their software well (more fool me for using it, but it's useful for some rare compressed formats)

While this isn't a MediaWiki bug, it may be worthwhile documenting this on the release page for MacOS users, alongside the tip for Windows users to use 7-Zip. The default MacOS Archive Utility app does not exhibit this issue, so perhaps the recommendation should be to use that and/or cli.

When decompressing the tarball release of MediaWiki 1.34.2 (likely affects other versions) using The Unarchiver, files with very long paths get truncated, producing confusing errors.

I found this issue specifically in resources/src/mediawiki.rcfilters/styles/, but it may affect other files too. Example truncated filenames:

  • mw.rcfilters.ui.ChangesLimitPopupWidget.le
  • mw.rcfilters.ui.FilterMenuSectionOptionWid
  • mw.rcfilters.ui.SaveFiltersPopupButtonWidg
  • mw.rcfilters.ui.WatchlistTopSectionWidget.

Steps to Reproduce:

  • Download the 1.34.2 tarball release
  • Decompress on MacOS with The Unarchiver
  • Navigate to the resources/src/mediawiki.rcfilters/styles/ directory and view file list

Actual Results:

  • Truncated filenames

Expected Results:

  • Correctly decompressed filenames

Event Timeline

Reedy subscribed.

While this isn't a MediaWiki bug, it may be worthwhile documenting this on the release page for MacOS users, alongside the tip for Windows users to use 7-Zip. The default MacOS Archive Utility app does not exhibit this issue, so perhaps the recommendation should be to use that and/or cli.

Where is that documented? Is that the same as T257102: MediaWiki 1.34.2 release tarball incompatible with 7zip on Windows due to Pax format?

Note, it's a Wiki, so you too can change it! ;)

It doesn't appear to be the same issue as T257102

I should have been more explicit in my suggestion - I'm referring to this template: https://www.mediawiki.org/wiki/Template:DownloadMediaWiki

It's protected, but I made an edit for review and left a note on the talk page.

I think I added a "not" in there in my head

The docs say to use 7-zip on windows, but due to T257102: MediaWiki 1.34.2 release tarball incompatible with 7zip on Windows due to Pax format, they shouldn't...

My edit to the DownloadMediaWiki template was accepted, so perhaps this can be closed.

Reedy triaged this task as Low priority.Jan 28 2021, 3:22 AM

There's now a zip format too