User tests: Successful: Unsuccessful:
Pull Request for Issue #46095 .
This PR fixes the DELETE endpoints to properly return HTTP 404 status code when attempting to delete non-existent resources, instead of returning 204 (No Content).
execute a DELETE for a non-existent resource es: /api/index.php/v1/contacts/99999
DELETE /api/v1/contacts/9999 returned 204 (No Content)
DELETE /api/v1/contacts/9999 returns 404 (Not Found) with error message
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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
PR-6.0-dev
|
||
| Labels |
Added:
Webservices
|
||
| Title |
|
||||||
I have tested this item ✅ successfully on f9f4ac1
Before patch i got 204
Now a 404 as exspected
thanks @alikon
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Labels |
Added:
RTC
|
||
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-11-10 19:02:24 |
| Closed_By | ⇒ | Bodge-IT |
I have tested this item ✅ successfully on f9f4ac1
Tested with JBT and test_46161.sh:
Thank you 👍
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46161.