Workspace doesn't check for server error on response

Steps to reproduce

Seen in production on UCT. An encoding operation failed on examination the file downloaded was a felix error message:

"<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 org.apache.cxf.interceptor.Fault: File must not be null</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /files/mediapackage/d808b0ff-4df4-4508-9a50-acaee5cd7057/43335eb0-d3c4-4828-a333-b2bc3bab4658/Presentation.mp4. Reason:
<pre> org.apache.cxf.interceptor.Fault: File must not be null</pre></p><h3>Caused by:</h3><pre>java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: File must not be nul
l "

It seems round l229 WorkspaceImpl tests for a 404 or a not modified returned but not for a 500. I'm not sure what caused the felix error, but it seems that the correct response might be a "wait and retry n times"

Assignee

Tobias Wunden

Reporter

David Horwitz

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Critical
Configure