Skip to content

[6.0][webservices] cannot delete not trashed resource return 409 #45868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: 6.0-dev
Choose a base branch
from

Conversation

alikon
Copy link
Contributor

@alikon alikon commented Aug 7, 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

@alikon alikon changed the title Draft cannot delete not trashed banner test [WIP][webservices] cannot delete not trashed resource return 409 Aug 7, 2025
@alikon alikon changed the title [WIP][webservices] cannot delete not trashed resource return 409 [WIP][webservices] cannot not trashed resource return 409 Aug 7, 2025
@alikon alikon changed the title [WIP][webservices] cannot not trashed resource return 409 [WIP][webservices] cannot delete not trashed resource return 409 Aug 7, 2025
@alikon alikon changed the title [WIP][webservices] cannot delete not trashed resource return 409 [6.0][webservices] cannot delete not trashed resource return 409 Aug 8, 2025
@alikon alikon marked this pull request as ready for review August 8, 2025 10:25
@exlemor
Copy link

exlemor commented Aug 8, 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.

@bembelimen bembelimen added the bug label Aug 20, 2025
@alikon alikon added the PBF Pizza, Bugs and Fun label Aug 22, 2025
@rbuelund
Copy link

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.

@exlemor
Copy link

exlemor commented Aug 24, 2025

I have tested this item ✅ successfully on 4fbb57e

I have re-tested this successfully ! Thanks @alikon

Same positive results :D


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants