From bugzilla-daemon at ecoinformatics.org Thu Oct 1 09:28:40 2009 From: bugzilla-daemon at ecoinformatics.org (bugzilla-daemon at ecoinformatics.org) Date: Thu, 1 Oct 2009 09:28:40 -0700 (PDT) Subject: [seek-dev] [Bug 4432] New: - AuthenticatedQueryService corrupts binary files (Zip) on download Message-ID: <20091001162840.D668528406F@ceres.ecoinformatics.org> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4432 Summary: AuthenticatedQueryService corrupts binary files (Zip) on download Product: SEEK Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: critical Priority: P2 Component: ecogrid AssignedTo: leinfelder at nceas.ucsb.edu ReportedBy: leinfelder at nceas.ucsb.edu QAContact: seek-dev at ecoinformatics.org CC: soong at nceas.ucsb.edu 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. From bugzilla-daemon at ecoinformatics.org Thu Oct 1 12:09:14 2009 From: bugzilla-daemon at ecoinformatics.org (bugzilla-daemon at ecoinformatics.org) Date: Thu, 1 Oct 2009 12:09:14 -0700 (PDT) Subject: [seek-dev] [Bug 4432] - AuthenticatedQueryService corrupts binary files (Zip) on download Message-ID: <20091001190914.3606128406F@ceres.ecoinformatics.org> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4432 ------- Comment #1 from leinfelder at nceas.ucsb.edu 2009-10-01 12:09 ------- 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 From bugzilla-daemon at ecoinformatics.org Thu Oct 1 15:24:44 2009 From: bugzilla-daemon at ecoinformatics.org (bugzilla-daemon at ecoinformatics.org) Date: Thu, 1 Oct 2009 15:24:44 -0700 (PDT) Subject: [seek-dev] [Bug 4432] - AuthenticatedQueryService corrupts binary files (Zip) on download Message-ID: <20091001222444.E37C428406F@ceres.ecoinformatics.org> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4432 leinfelder at nceas.ucsb.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from leinfelder at nceas.ucsb.edu 2009-10-01 15:24 ------- this just needs to be deployed (to dev.nceas.ucsb.edu first).