mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 00:46:03 +03:00
[GH-ISSUE #1082] API DELETE method fails on domains and accounts #903
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#903
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @figassis on GitHub (Mar 26, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1082
Impacted versions
Steps to reproduce
Current behavior
A 200 response code is returned along with full json of object to DELETE
A GET request still returns the same object with a 200 response
Expected behavior
A 200 response code is returned along with full json of object to DELETE
A GET request should return a 404 response code, with a { "detail": "Not found." } response.
@tonioo commented on GitHub (Mar 28, 2017):
A DELETE request should return a 204 code on success, not 200... Have you checked the response payload?
@figassis commented on GitHub (Mar 28, 2017):
Yes, it's a the full json object of the resource I attempted to DELETE
Assis Ngolo
CEO, Nellcorp
On Mar 28, 2017, 9:52 AM +0100, Antoine Nguyen notifications@github.com, wrote:
@tonioo commented on GitHub (Mar 28, 2017):
Have you tried with something else than postman?
@figassis commented on GitHub (Mar 31, 2017):
Sorry for the late reply. No, I haven't tried with anything else. Is it working for you?
@tonioo commented on GitHub (Apr 3, 2017):
@figassis Could you please try with something else (curl or similar)?
@figassis commented on GitHub (May 5, 2017):
@tonioo, I tried with curl (using php) and was able to delete accounts. So it might be a postman issue.
@tonioo commented on GitHub (May 5, 2017):
Ok, so I close the issue.