Project

General

Profile

Actions

Bug #4432

closed

AuthenticatedQueryService corrupts binary files (Zip) on download

Added by ben leinfelder over 14 years ago. Updated over 14 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.

Actions #1

Updated by ben leinfelder over 14 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

Actions #2

Updated by ben leinfelder over 14 years ago

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

Actions #3

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 4432

Actions

Also available in: Atom PDF