Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11371

Wrong 503-unavailable status code in Distribution API responses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Content Distribution
    • None

    Description

      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.

      Cases

      1. https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionAgentServlet.java#L74
      2. https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionPackageExporterServlet.java#L81
      3. https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionPackageExporterServlet.java#L157

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jose-correia José Correia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: