Closed Bug 991459 Opened 10 years ago Closed 6 years ago

[Tarako][Gaia]Unzip settings application.zip get unzip error

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog, b2g-v1.3T affected)

RESOLVED WONTFIX
tracking-b2g backlog
Tracking Status
b2g-v1.3T --- affected

People

(Reporter: mlien, Unassigned)

References

Details

Attachments

(1 file)

[Device]
  Tarako
---------------------------------------------
[Reproduction build] - V1.3T
  Gaia      c418ec10d1e1d53c6757ad12b2320c204808d251
  Gecko     https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/36b1279ef6df
  BuildID   20140402164000
  Version   28.1
---------------------------------------------
[Reproduce Steps]
  1. adb pull /system/b2g/webapps/settings.gaiamobile.org/application.zip
  2. unzip application.zip on GUI
---------------------------------------------
[Expected Result]
  Should unzip normally
---------------------------------------------
[Actual Result]
  It will unzip error

Archive:  /home/$user/application.zip
Zip file size: 2663595 bytes, number of entries: 338
warning [/home/$user/application.zip]:  2636546 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [/home/$user/application.zip]:  reported length of central directory is
  -2636546 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...
blocking-b2g: --- → 1.3T?
Mike, What kind of scenario or test case that you need to pull the app out?
Flags: needinfo?(mlien)
this zip error case will case some automation cannot be executed, ex: b2g-perf
now alternatives is pull this broken zip out and refine it then push it back to let automation can be used
Flags: needinfo?(mlien)
(In reply to Mike Lien[:mlien] from comment #2)
> this zip error case will case some automation cannot be executed, ex:
> b2g-perf
> now alternatives is pull this broken zip out and refine it then push it back
> to let automation can be used

update for typo
this zip error case will cause some automation cannot be executed, ex: b2g-perf
now alternatives is pull this broken zip out and refine it then push it back to let automation can be used
triage: let's not block the release with this
ni? Evelyn
blocking-b2g: 1.3T? → backlog
Flags: needinfo?(ehung)
Try unzip -ff application.zip and then try unzipping again.

Not sure why we are getting this.
Can someone bisect to see which commit cause the problem? I can't think of any change in settings app is related. :(
Flags: needinfo?(ehung)
Component: Gaia → Gaia::Build
needinfo myself.
Flags: needinfo?(yurenju.mozilla)
I cannot reproduce. Mike, could you attach the zip file? thanks.
Flags: needinfo?(yurenju.mozilla) → needinfo?(mlien)
Attached file application.zip
Flags: needinfo?(mlien)
it should be an issue of nsIZipWriter, needinfo Shian-Yow Wu.
Component: Gaia::Build → General
Flags: needinfo?(swu)
BTW, I got a warning message but still can uncompress this file with unzip.
This can be reproduced on Tarako when building apps by "make reorder", and doesn't happen when building apps with "make webapp-zip".
Depends on: 835695
Flags: needinfo?(swu)
The optimizejars.py added in bug 835695 reorders the zip headers in application.zip to make apps load faster.  Such reordering might be complained by some zip programs.
In bug 605524 comment 2, it was suggested to de-optimize the zip package before been used by zip program that doesn't accept such reordering.
See Also: → 605524
blocking-b2g: backlog → ---
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: