WebDAV/SPP: fixed compilation problem.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@35869 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2012-04-29 18:23:39 +00:00
parent 4ee3384c37
commit d083904a6a

View File

@@ -318,7 +318,7 @@ public abstract class WebDAVMethod
* and handling the error conditions. * and handling the error conditions.
* @throws IOException * @throws IOException
*/ */
public void execute() throws WebDAVServerException, IOException public void execute() throws WebDAVServerException
{ {
// Parse the HTTP headers // Parse the HTTP headers
parseRequestHeaders(); parseRequestHeaders();
@@ -343,7 +343,18 @@ public abstract class WebDAVMethod
// Log message only. // Log message only.
logger.debug("Malformed request body: " + saxParseEx.getMessage()); logger.debug("Malformed request body: " + saxParseEx.getMessage());
} }
m_response.sendError(e.getHttpStatusCode());
try
{
m_response.sendError(e.getHttpStatusCode());
}
catch (IOException ioe)
{
if (logger.isDebugEnabled())
{
logger.debug("Unable to send status code", ioe);
}
}
// Halt processing. // Halt processing.
return; return;
} }