altryne / extensionizr

Extensionizr! Create a chrome extension in 15 seconds!
http://www.extensionizr.com
1.81k stars 126 forks source link

Corrupt data in zip file #10

Closed i8ramin closed 10 years ago

i8ramin commented 11 years ago

Trying to extract the downloaded zip archive but it seems corrupt. Am I the only one experiencing this?

URL of my options: http://extensionizr.com/!#{"modules":["browser-mode","with-bg","with-persistent-bg","with-custom-options","no-override","inject-css","inject-js","omnibox","jquerymin","angular"],"boolean_perms":["clipboardRead","clipboardWrite","notifications"],"match_ptrns":[]}

Generated zip file: http://cl.ly/1L2C0C36032C

tomardern commented 11 years ago

I'm having the same issue too.

altryne commented 11 years ago

I'm sorry I'm barely responsive to this, I'll try to get my hands on it. Can you specify the browser you're using?

tomardern commented 11 years ago

I'm using Chrome, also happens in Firefox.

altryne commented 11 years ago

I've notices that if I go the the url, and click download it's corrupt, when I change a setting, and then change it back, the zip works. Can either of you guys confirm this is the case as well?

tomardern commented 11 years ago

It seems to have been fixed. Just done a couple of tests with Chrome.

jbeja commented 11 years ago

Have the same problem, this is the output:

Archive:  extensionizr_custom1382879579342.zip
error [extensionizr_custom1382879579342.zip]:  missing 2 bytes in zipfile
  (attempting to process anyway)
error [extensionizr_custom1382879579342.zip]:  attempt to seek before beginning of zipfile
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
  (attempting to re-compensate)
   creating: ext/
   creating: ext/_locales/
   creating: ext/_locales/en/
  inflating: ext/_locales/en/messages.json  
   creating: ext/css/
   creating: ext/icons/
  inflating: ext/icons/icon128.png   
  inflating: ext/icons/icon16.png    
  inflating: ext/icons/icon19.png    
  inflating: ext/icons/icon48.png    
   creating: ext/js/
   creating: ext/js/angular/
  inflating: ext/js/angular/angular.js  
  inflating: ext/js/angular/angular.min.js  
  inflating: ext/js/angular/component.json  
   creating: ext/js/jquery/
  inflating: ext/js/jquery/.gitignore  
  inflating: ext/js/jquery/bower.json  
  inflating: ext/js/jquery/component.json  
  inflating: ext/js/jquery/composer.json  
  inflating: ext/js/jquery/jquery-migrate.js  
  inflating: ext/js/jquery/jquery-migrate.min.js  
  inflating: ext/js/jquery/jquery.js  
  inflating: ext/js/jquery/jquery.min.js  
  inflating: ext/js/jquery/package.json  
  inflating: ext/js/jquery/README.md  
   creating: ext/src/
  inflating: ext/src/.DS_Store       
   creating: ext/src/bg/
  inflating: ext/src/bg/background.html  
  inflating: ext/src/bg/background.js  
   creating: ext/src/browser_action/
  inflating: ext/src/browser_action/browser_action.html  
   creating: ext/src/inject/
  inflating: ext/src/inject/inject.css  
  error:  invalid compressed data to inflate
file #36:  bad zipfile offset (local header sig):  299919
  (attempting to re-compensate)
   creating: ext/src/options_custom/
   creating: ext/src/options_custom/css/
  inflating: ext/src/options_custom/css/main.css  
  inflating: ext/src/options_custom/css/setting.css  
  inflating: ext/src/options_custom/custom.css  
  inflating: ext/src/options_custom/i18n.js  
  inflating: ext/src/options_custom/icon.png  
  inflating: ext/src/options_custom/index.html  
   creating: ext/src/options_custom/js/
   creating: ext/src/options_custom/js/classes/
  inflating: ext/src/options_custom/js/classes/fancy-settings.js  
  inflating: ext/src/options_custom/js/classes/search.js  
  inflating: ext/src/options_custom/js/classes/setting.js  
  inflating: ext/src/options_custom/js/classes/tab.js  
  inflating: ext/src/options_custom/js/i18n.js  
   creating: ext/src/options_custom/lib/
  inflating: ext/src/options_custom/lib/default.css  
  inflating: ext/src/options_custom/lib/mootools-core.js  
  inflating: ext/src/options_custom/lib/store.js  
  inflating: ext/src/options_custom/manifest.js  
  inflating: ext/src/options_custom/README.md  
  inflating: ext/src/options_custom/settings.js  
  inflating: ext/manifest.json      
altryne commented 11 years ago

@jbeja can you tell me what happens if you uncheck "inject css"? does this continue to be a bad zip?

jbeja commented 11 years ago

Stil the dame problem:

Archive:  extensionizr_custom1382889711795.zip
error [extensionizr_custom1382889711795.zip]:  missing 2 bytes in zipfile
  (attempting to process anyway)
error [extensionizr_custom1382889711795.zip]:  attempt to seek before beginning of zipfile
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
  (attempting to re-compensate)
   creating: ext/
   creating: ext/_locales/
   creating: ext/_locales/en/
  inflating: ext/_locales/en/messages.json  
   creating: ext/css/
   creating: ext/icons/
  inflating: ext/icons/icon128.png   
  inflating: ext/icons/icon16.png    
  inflating: ext/icons/icon19.png    
  inflating: ext/icons/icon48.png    
   creating: ext/js/
   creating: ext/js/angular/
  inflating: ext/js/angular/angular.js  
  inflating: ext/js/angular/angular.min.js  
  inflating: ext/js/angular/component.json  
   creating: ext/js/jquery/
  inflating: ext/js/jquery/.gitignore  
  inflating: ext/js/jquery/bower.json  
  inflating: ext/js/jquery/component.json  
  inflating: ext/js/jquery/composer.json  
  inflating: ext/js/jquery/jquery-migrate.js  
  inflating: ext/js/jquery/jquery-migrate.min.js  
  inflating: ext/js/jquery/jquery.js  
  inflating: ext/js/jquery/jquery.min.js  
  inflating: ext/js/jquery/package.json  
  inflating: ext/js/jquery/README.md  
   creating: ext/src/
  inflating: ext/src/.DS_Store       
   creating: ext/src/bg/
  inflating: ext/src/bg/background.html  
  inflating: ext/src/bg/background.js  
   creating: ext/src/browser_action/
  inflating: ext/src/browser_action/browser_action.html  
   creating: ext/src/inject/
  inflating: ext/src/inject/inject.css  
  error:  invalid compressed data to inflate
file #36:  bad zipfile offset (local header sig):  299919
  (attempting to re-compensate)
  inflating: ext/src/inject/inject.js  
   creating: ext/src/options/
  inflating: ext/src/options/index.html  
   creating: ext/src/options_custom/
   creating: ext/src/options_custom/css/
  inflating: ext/src/options_custom/css/main.css  
  inflating: ext/src/options_custom/css/setting.css  
  inflating: ext/src/options_custom/custom.css  
  inflating: ext/src/options_custom/i18n.js  
  inflating: ext/src/options_custom/icon.png  
  inflating: ext/src/options_custom/index.html  
   creating: ext/src/options_custom/js/
   creating: ext/src/options_custom/js/classes/
  inflating: ext/src/options_custom/js/classes/fancy-settings.js  
  inflating: ext/src/options_custom/js/classes/search.js  
  inflating: ext/src/options_custom/js/classes/setting.js  
  inflating: ext/src/options_custom/js/classes/tab.js  
  inflating: ext/src/options_custom/js/i18n.js  
   creating: ext/src/options_custom/lib/
  inflating: ext/src/options_custom/lib/default.css  
  inflating: ext/src/options_custom/lib/mootools-core.js  
  inflating: ext/src/options_custom/lib/store.js  
  inflating: ext/src/options_custom/manifest.js  
  inflating: ext/src/options_custom/README.md  
  inflating: ext/src/options_custom/settings.js  
   creating: ext/src/override/
  inflating: ext/src/override/override.html  
   creating: ext/src/page_action/
  inflating: ext/src/page_action/page_action.html  
  inflating: ext/manifest.json

I am using the unzip command in Ubuntu, the file just give me a error and won't extract.

jojobyte commented 11 years ago

I'm having the same problem. Chrome doesn't report any errors in Dev Tools however Firefox gets two JS errors when you click download.

ReferenceError: event is not defined
http://extensionizr.com/js/script.js
Line 19

ReferenceError: event is not defined
http://extensionizr.com/js/script.js
Line 22

I can't open it in the default windows ZIP manager however 7zip will open it, but wont extract anything but manifest.json.

All the folders report Unsupported compression Method for 'ext\_localest', 'ext\locales\en', etc

thecodejunkie commented 11 years ago

I'm getting this as well in Chrome 33.0.1707.0 dev-m - are there any known work-arounds?

evandroamparo commented 10 years ago

With Chrome 32 and 7-zip, it doesn't happen only if I uncheck "inject css" and I check "inject js".

thecodejunkie commented 10 years ago

Yep it's the css file that is causing the problem

altryne commented 10 years ago

@thecodejunkie @evandroamparo can you guys check extensionizr.com to see if files with inject.css extract correctly?

evandroamparo commented 10 years ago

It's OK now. Thanks!