Project

General

Profile

Bug #4432

AuthenticatedQueryService corrupts binary files (Zip) on download

Added by ben leinfelder almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
ecogrid
Target version:
Start date:
10/01/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4432

Description

It appears that all files are being treated as text when downloaded through the AuthenticatedQueryService.get() method.
We need to handle binary data, of course.

History

#1 Updated by ben leinfelder almost 11 years ago

Turns out this is a MetacatClient bug at it's core.
MC was returning a Reader for all read() calls. But this uses characters and is not appropriate for binary data (ie a Zip file).
Changing the method to return an InputStream - then we can handle both text and binary

#2 Updated by ben leinfelder almost 11 years ago

this just needs to be deployed (to dev.nceas.ucsb.edu first).

#3 Updated by Redmine Admin over 7 years ago

Original Bugzilla ID was 4432

Also available in: Atom PDF