José Correia created SLING-11366:
------------------------------------
Summary: Provide more error context on the Distribution API
response
Key: SLING-11366
URL: https://issues.apache.org/jira/browse/SLING-11366
Project: Sling
Issue Type: Improvement
Components: Content Distribution
Reporter: José Correia
Fix For: Content Distribution Core 0.6.0
The API is currently responding with a very generic message when packages fail
to be distributed.
{code:java}
{
"message": "an unexpected error has occurred"
}{code}
This should be improved since there are some errors that are due to bad usage,
eg: packages that are too big, and we should to provide more context to the
client:
{code:java}
{
"message": "an unexpected error has occurred",
"details": "Failed to create content package for requestType=ADD,
paths=[/content]. Error=Can't distribute package with size greater than 1 Byte,
actual 4053"
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)