Konrad Windszus created SLING-12042:
---------------------------------------
Summary: Slings Models Export Servlet: Never return 200 status in
case of exceptions
Key: SLING-12042
URL: https://issues.apache.org/jira/browse/SLING-12042
Project: Sling
Issue Type: Improvement
Components: Sling Models
Affects Versions: Sling Models Jackson Exporter 1.0.2, Sling Models Impl
1.4.0
Reporter: Konrad Windszus
Especially for JSON exporters it doesn't make sense to render incomplete JSON
with a 200 status code. All exception which may happen somewhere during the
rendering should lead to a 4xx/5xx status code (and should not be caught prior
to
https://github.com/apache/sling-org-apache-sling-models-impl/blob/0b4f64e167a3999f2835de878191ef1f2b5b4938/src/main/java/org/apache/sling/models/impl/ExportServlet.java#L89)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)