Project

General

Profile

« Previous | Next » 

Revision 7065

do not attempt to parse empty file for the failure (BaseException serialization). There are cases when this is not given (failure="") when there is not a failure.
https://redmine.dataone.org/issues/2476

View differences:

src/edu/ucsb/nceas/metacat/restservice/D1ResourceHandler.java
233 233
        multipartparams = mr.getMultipartParameters();
234 234
        exceptionFile = mmFileParts.get("failure");
235 235
        
236
        if ( exceptionFile != null ) {
236
        if ( exceptionFile != null && exceptionFile.length() > 0 ) {
237 237
            
238 238
            // deserialize the BaseException subclass
239 239
            exceptionFileStream = new FileInputStream(exceptionFile);

Also available in: Unified diff