cancel
Showing results for 
Search instead for 
Did you mean: 

Why does Nuxeo send 303 See Other after API deletes, where the target returns 500 Server Error?

Steven_Huwig1
Star Contributor
Star Contributor

Hi,

We received many spurious alerts in our monitoring system; it turns out that the HTTP client in use to access Nuxeo's REST APIs was following redirects.

It seems that after something like DELETE /nuxeo/api/v1/path/docpath, Nuxeo responds with a redirect to /nuxeo/api/v1. However, if one does a GET on this redirect, the result is a 500 error. One can see this on Nuxeo's own demo server by attempting to access http://cmis.demo.nuxeo.org/nuxeo/api/v1

Is this a small bug in Nuxeo's implementation of POST/DELETE type operations, or is this being done for a good reason? It seems to me that if no meaningful status URL can be returned in a See Other response, then something like 204 No Content is more appropriate.

Thanks, Steve

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

Yes it's a bug. I opened NXP-17701 to track this.

View answer in original post

1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

Yes it's a bug. I opened NXP-17701 to track this.