Skip to content

Commit

Permalink
SAK-29732 Cannot upload malformed zip file
Browse files Browse the repository at this point in the history
Catch all Exception instead of only IOException
  • Loading branch information
Gao-Jun committed Jul 22, 2015
1 parent f94ce2f commit 756b2a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5957,8 +5957,8 @@ public void commitResource(ContentResourceEdit edit, int priority) throws OverQu
M_log.debug("Magic: Setting content type from " + currentContentType + " to " + newmatch);
}
edit.setContentType(newmatch);
} catch (IOException e) {
M_log.warn("IOException when trying to get the resource's data: " + e);
} catch (Exception e) {
M_log.warn("Exception when trying to get the resource's data: " + e);
}
}

Expand Down

0 comments on commit 756b2a7

Please sign in to comment.