Unit/System Tests PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
7 Aug 2025

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

avatar alikon alikon - open - 7 Aug 2025
avatar alikon alikon - change - 7 Aug 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2025
Category JavaScript Unit Tests
avatar alikon alikon - change - 7 Aug 2025
Labels Added: Unit/System Tests PR-6.0-dev
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2025
Category JavaScript Unit Tests Libraries JavaScript Unit Tests
avatar alikon alikon - change - 7 Aug 2025
Title
Draft cannot delete not trashed banner test
[WIP][webservices] cannot delete not trashed resource return 409
avatar alikon alikon - edited - 7 Aug 2025
avatar alikon alikon - change - 7 Aug 2025
The description was changed
avatar alikon alikon - edited - 7 Aug 2025
03dfd25 7 Aug 2025 avatar alikon cs
2e72e0d 7 Aug 2025 avatar alikon cs
c74de06 7 Aug 2025 avatar alikon cs
5c2467d 7 Aug 2025 avatar alikon cs
avatar alikon alikon - change - 7 Aug 2025
Title
[WIP][webservices] cannot delete not trashed resource return 409
[WIP][webservices] cannot not trashed resource return 409
avatar alikon alikon - edited - 7 Aug 2025
avatar alikon alikon - change - 7 Aug 2025
Title
[WIP][webservices] cannot not trashed resource return 409
[WIP][webservices] cannot delete not trashed resource return 409
avatar alikon alikon - edited - 7 Aug 2025
avatar alikon alikon - change - 8 Aug 2025
The description was changed
avatar alikon alikon - edited - 8 Aug 2025
avatar alikon alikon - change - 8 Aug 2025
Title
[WIP][webservices] cannot delete not trashed resource return 409
[6.0][webservices] cannot delete not trashed resource return 409
avatar alikon alikon - edited - 8 Aug 2025
avatar exlemor exlemor - test_item - 8 Aug 2025 - Tested successfully
avatar exlemor
exlemor - comment - 8 Aug 2025

I have tested this item ✅ successfully on 9b475e6

I have tested this successfully via Postman! Thanks @alikon (and I confirmed that if you do Trash the article, if does DELETE it as well).


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45868.

Add a Comment

Login with GitHub to post a comment