You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2016/03/03 14:39:18 UTC
[jira] [Created] (SLING-5581) Transport doesn't throw an exception
if a 4+ status is returned
Tommaso Teofili created SLING-5581:
--------------------------------------
Summary: Transport doesn't throw an exception if a 4+ status is returned
Key: SLING-5581
URL: https://issues.apache.org/jira/browse/SLING-5581
Project: Sling
Issue Type: Bug
Components: Distribution
Affects Versions: Content Distribution Core 0.1.12
Reporter: Tommaso Teofili
Assignee: Tommaso Teofili
Priority: Critical
Fix For: Content Distribution Core 0.1.14
{{SimpleHttpDistributionTransport}} HTTP call uses
{code}
Response response = executor.execute(req);
response.discardContent();
{code}
but the second line doesn't throw an Exception if e.g. the HTTP status is 500, while it used to do it when the code was:
{code}
Response response = executor.execute(req);
response.returnContent();
{code}
Therefore this may result in lost packages if an error occurs on the receiving side.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)