You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "José Correia (Jira)" <ji...@apache.org> on 2022/06/02 13:51:00 UTC
[jira] [Created] (SLING-11371) Wrong 503-unavailable status code in Distribution API responses
José Correia created SLING-11371:
------------------------------------
Summary: Wrong 503-unavailable status code in Distribution API responses
Key: SLING-11371
URL: https://issues.apache.org/jira/browse/SLING-11371
Project: Sling
Issue Type: Bug
Components: Content Distribution
Reporter: José Correia
Sometimes we are answered with an HTTP *503-UNAVAILABLE* status code when there are unexpected errors within the distribution system.
This status code is misleading since the service is not unavailable, but had an unexpected exception. Maybe a more precise status code would be a *500*
However, we need to make sure that we don't break current clients, so this change needs to be discussed.
h2. Cases
# [https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionAgentServlet.java#L74]
# [https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionPackageExporterServlet.java#L81]
# [https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionPackageExporterServlet.java#L157]
--
This message was sent by Atlassian Jira
(v8.20.7#820007)