[6.0] [webservices] cannot delete not trashed resource return 409#45868
[6.0] [webservices] cannot delete not trashed resource return 409#45868Bodge-IT merged 20 commits intojoomla:6.0-devfrom
Conversation
|
I have tested this item ✅ successfully on 9b475e6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45868. |
|
I have tested this item ✅ successfully on 4fbb57e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45868. |
|
I have tested this item ✅ successfully on 4fbb57e Same positive results :D This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45868. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45868. |
|
I've allowed myself to fix the conflict in the ApiController.php file. It was caused by the same line of code being removed with this PR here and with PR #45589 on the 5.3-dev branch. As this did not change anything on the code, RTC is still valid. |
|
@alikon Since the last branch update, system tests are failing for this PR here: Did I do something wrong when resolving the conflict caused by the upmerged PR #45589 ? |
|
@richard67 all system tests are successful now |
|
Sorry for being late, it has been very busy days ... but I was of course, I am interested to see the fix of my issue 😄 Tested with JBT graft nightly builds and api_500_test.sh:
Before the PR and tested from 5.3 onwards, deleting an not-trashed item no longer results in a 500, but still results in a wrong 204. This is fixed well 👍 Created #46095 Thank you for extending System Tests with testing to delete not-trashed and not-existing banner 👍 |
Pull Request for Issue #45590 .
Summary of Changes
return HTTP status code 409 instead of 500
add a system test
Testing Instructions
delete not-trashed resource like: tag, category, article etc via webservices DELETE endpoint
Actual result BEFORE applying this Pull Request
HTTP status code 500 and error message "Internal server error".
Expected result AFTER applying this Pull Request
HTTP status code 409 with informative message like : Resource not in state that can be deleted, must be trashed before it can be deleted
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed