cozy / cozy-files

This repository was part of CozyV2 which has been deprecated
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
41 stars 24 forks source link

Zip archive of a folder is corrupted #422

Open clochix opened 8 years ago

clochix commented 8 years ago

When trying to download an archive of a huge directory, the user get a corrupted zip file (download stop around 140-150 Mo). Here's the error message inside the logs:

TypeError: Cannot read property 'on' of undefined
    at drainStream (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:13:11)
    at LaterStream.module.exports.LaterStream.onReadableReady (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:68:9)
    at /usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:4:61
    at ClientRequest.<anonymous> (/usr/local/cozy/apps/files/node_modules/cozydb/node_modules/request-json-light/main.js:405:14)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at Socket.socketErrorListener (_http_client.js:256:9)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at emitErrorNT (net.js:1255:8)
clochix commented 8 years ago

don't know if its related, but some users reported that when downloading an archive of huge album in Photos, some pictures inside the archive where corrupted. I was unable to reproduce