You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2023/09/25 13:41:00 UTC
[jira] [Created] (SLING-12041) Slings Models Export Servlet: Never return 200 status in case of exceptions
Konrad Windszus created SLING-12041:
---------------------------------------
Summary: Slings Models Export Servlet: Never return 200 status in case of exceptions
Key: SLING-12041
URL: https://issues.apache.org/jira/browse/SLING-12041
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)