[
https://issues.apache.org/jira/browse/SLING-5581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tommaso Teofili resolved SLING-5581.
------------------------------------
Resolution: Fixed
fixed in r1733468
> Transport doesn't throw an exception if a 400+ 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)