view · edit · sidebar · attach · print · history


<< | Index | >>


  • Updated fachinfo chapter exporetr
  • Repair test case



Update fachinfo chapter exporter

  • Changed compress format as attachment. (gz -> zip)
  • Added time measuring in report.
  • Fixed chapter order problem.
Chapters:                        usage,other_advice
Lang:                            de
Term:                            nüchtern

      #packages = [
      #  ODBA.cache.fetch(254164),
      #  ODBA.cache.fetch(1191963),
      #  ODBA.cache.fetch(1191966),

Zip transfer mode problem on production

It may caused by locale of filesystem.
This problem ist umlaut (multibyte character) in filename.

$ unzip fachinfo_chapter_usage-other_advice_nü 
Archive:  fachinfo_chapter_usage-other_advice_nü
warning [fachinfo_chapter_usage-other_advice_nü]:  1 extra byte at beginning or within zipfile
  (attempting to process anyway)
error [fachinfo_chapter_usage-other_advice_nü]:  reported length of central directory is
  -1 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...
  inflating: fachinfo_chapter_usage-other_advice_n??chtern.2012-10-17.cs  
  error:  invalid compressed data to inflate

note:  didn't find end-of-central-dir signature at end of central dir.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

Substitude umlaut in meta data at start and end of this zip binary.
Then extract file with unzip.

Production server has locale as de_CH.UTF-8.



plugin test

  • csv_export.rb
Finished in 0.082425176 seconds.

12 tests, 11 assertions, 2 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
75% passed

145.59 tests/s, 133.45 assertions/s
view · edit · sidebar · attach · print · history
Page last modified on October 17, 2012, at 08:25 AM