Project

General

Profile

Bug #3553

importing zip-file

Added by dominique de guchtenaere over 8 years ago. Updated over 6 years ago.

Status:
Needs testing
Priority:
Normal
Assignee:
-
Start date:
06/06/2011
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal

Description

installation: waldorf stable

When I upload a zip-file with documents in French, with accents in the title such as élève.docx, all the letters with accents disappear. If I upload the same docx file by file, the titles are well displayed.
see zip-file attached.


Files

léger.zip (14.5 KB) léger.zip dominique de guchtenaere, 06/06/2011 14:13
table_view_in_repo.png (5.07 KB) table_view_in_repo.png dominique de guchtenaere, 26/06/2012 10:55
octet_stream.png (29.1 KB) octet_stream.png dominique de guchtenaere, 26/06/2012 10:55
léger.zip (14.5 KB) léger.zip dominique de guchtenaere, 26/06/2012 10:55
élèves.png (10.6 KB) élèves.png dominique de guchtenaere, 26/06/2012 10:55
léger.png (10.5 KB) léger.png dominique de guchtenaere, 26/06/2012 10:55

History

#1

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version set to 2.1.0
#2

Updated by Sven Vanpoucke over 8 years ago

  • Assignee set to Sven Vanpoucke
#3

Updated by Sven Vanpoucke over 8 years ago

When unzipping the file we need to write the files temporary to the file system. Due to encoding issues we need to remove all the special characters from the file. I propose you give your files another filename to avoid this problem.

When uploading a single file this is not an issue because the file name is directly moved to the database without the bypass on the file system.

#4

Updated by Sven Vanpoucke over 8 years ago

  • Status changed from New to Needs more info
#5

Updated by Sven Vanpoucke over 8 years ago

I found a solution for when the zip is made in windows (dos encoding: CP437). I don't know how this will work when zip's are imported from linux, mac...

#6

Updated by dominique de guchtenaere over 8 years ago

If you push this solution to the stable, we will check it from linux. You can check it from the mac in your office.

#7

Updated by Sven Vanpoucke over 8 years ago

The code is on the stable.

I can confirm that this works for MAC OSX

#8

Updated by dominique de guchtenaere over 8 years ago

Thanks!

We tested it with Linux, and there it works partialy: if the first letter is a special character, this one is deleted, the other letters with special characters are well displayed.

#9

Updated by dominique de guchtenaere almost 8 years ago

I just retested this, and I still have the same problem, not with the file léger.docx but with the file élèves.docx. In this last file, the first letter disapeared after importing the zip-file.

#10

Updated by Stefaan Vanbillemont almost 8 years ago

  • Target version changed from 2.1.0 to Backlog (default)
#11

Updated by dominique de guchtenaere over 7 years ago

In the current c3 dev version, this doesn't work.
When I upload the zipped file with two files : élèves.docx and léger.docx in it, the upload works, but neither the title or the description are visible (see screen shot)
When I click the vertical sign, I get the following message: this is an application/octet-stream
After download, when I change the extension to docx, I can view the document

Importing a single document such as léger.docx or élèves.docx gives the following problem: lèves.docx ; the file léger.docx is well imported, but when opening it I see léger

Tested on a windows computer

#12

Updated by dominique de guchtenaere about 7 years ago

  • Target version changed from Backlog (default) to LCMS 3.1

still the same issue on our installation e-perspectief.

#13

Updated by Anonymous over 6 years ago

  • Status changed from New to Needs testing
  • Assignee changed from Sven Vanpoucke to Anonymous
  • % Done changed from 0 to 100
Based on the fix for LCMS4 by Sven (see #6271).
Some minor changes were necessary:
  • uses Document instead if File
  • some refactoring
  • fix for path separator on Windows

Also available in: Atom PDF