Sim
Well-known member
- Affected version
- 2.0.10
The changes made to
As a result:
Here's how it looks in XF 2.0.10:
... note the leading slash in the path introduced in 2.0.10
I haven't had a chance to trace through the code yet to identify the source of the bug - will do when I get a chance.
XF\Service\AddOn\ReleaseBuilder
in XF 2.0.10 introduced a bug where the release zip file is saved with leading slashes in all paths making them absolute rather than relative.As a result:
- Windows 10 cannot open the release zip files at all (reports them as empty)
- 7zip opens them, identifies the root and lets you navigate to the upload folder (first folder is "unnamed")
- unzip on Linux (Ubuntu) strips the leading slash to make the paths relative but gives warnings
Bash:
$ unzip -t release_built_with_2_0_7.zip
Archive: release_built_with_2_0_7.zip
testing: upload/ OK
testing: upload/src/ OK
testing: upload/src/addons/ OK
... etc
Here's how it looks in XF 2.0.10:
Bash:
$ unzip -t release_built_with_2_0_10.zip
Archive: release_built_with_2_0_10.zip
testing: /upload/ OK
testing: /upload/src/ OK
testing: /upload/src/addons/ OK
... etc
... note the leading slash in the path introduced in 2.0.10
I haven't had a chance to trace through the code yet to identify the source of the bug - will do when I get a chance.