@johanneshahn: please consider also my private message to you about this issue.

File Framework and Bitcache were running smoothly when this problem occured:

Uploaded doc, docx, odt or jpg files cannot be opened after downloading them from the file node page. Neither Open Office nor Gimp (in case of an image file) can open the files. PDF files are working.

I tested this on two different computers with different software and all the files were working before uploading them with FF.

When I look into the bitstreams (admin/content/bitcache/list) I see that there are no jpg or msword files listed, only

application/x-gzip; charset=binary
application/zip; charset=binary
application/pdf; charset=binary

I have disabled the "converter" module which is part of File Framework.

In the Drupal logs it says that it has created a "application/zip" preview f.e. test4.doc with the bitcache bitcache://0df98d5b32523073e78fbcde1...

Why does it convert the file instead of just uploading the .doc into a bitstream? Why does this not happen to pdf files but only to doc and jpg?

The stream is definitely corrupted because I cannot open a downloaded file with zip or gzip utilities.

Versions:
The problem appeared with the 6.x-1.3+9-dev version and did not dissapear after updating to 6.x-1.4.

Thank you in advance for your help!

CommentFileSizeAuthor
#1 bitcache_1845666-1.patch509 bytestobiasb

Comments

tobiasb’s picture

Version: 6.x-1.4 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new509 bytes

I created a patch which removes the whitespace from header, which produces such file downloads.

lorenz’s picture

Thanks Tobias, it works now!

lorenz’s picture

Status: Needs review » Closed (fixed)
tobiasb’s picture

Status: Closed (fixed) » Needs review

Lets this open, so that the maintainer can review the patch ;-)

tobiasb’s picture

Project: File Framework » Bitcache
johanneshahn’s picture

Status: Needs review » Closed (fixed)

patch applied