[ 
https://issues.apache.org/jira/browse/SLING-11366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothee Maret updated SLING-11366:
-----------------------------------
    Fix Version/s: Content Distribution Core 0.8.0
                       (was: Content Distribution Core 0.7.0)

> 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
>            Priority: Major
>             Fix For: Content Distribution Core 0.8.0
>
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> 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.10#820010)

Reply via email to