User tests: Successful: Unsuccessful:
Pull Request for Issue #45470 .
fixes inconsistent behavior between the Joomla backend Interface and the Web Services (API) when creating an article with an alias that already exists in the same category.
Ensure you have at least one category and an existing article within that category (e.g., an article with the alias "my-test-article" in the "Uncategorised" category).
Use an API client (like Postman) or write a script to send a POST request to the /api/index.php/v1/content/articles endpoint.
Send a JSON payload that will create a duplicate alias in the same category. For example:
{
"title": "My Test Article",
"alias": "my-test-article",
"catid": 2,
"articletext": "This is the article text.",
"state": 1,
"language": "*",
}the API returns a HTTP 400 error with the message: Save failed with the following error: Another Article in this category has the same alias.
Verify that the new article has been created and its alias has been modified (e.g., to my-test-article-1).
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 | ⇒ | Administration com_content |
| Title |
|
||||||
| Labels |
Added:
PR-6.1-dev
|
||
| Category | Administration com_content | ⇒ | Administration com_content JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
|
||
| Labels |
Added:
Webservices
|
||
@Razzo1987 thanks added the missing "language": "*", in the payload test instructions
I have tested this item ✅ successfully on 754e306
HI @alikon, I was able to test this successfully! - thanks to the help of @Razzo1987!
At least with Postman, the JSON load package had to be adjusted to:
{
"title": "My Test Article",
"alias": "my-test-article",
"catid": 2,
"articletext": "This is the article text.",
"state": 1,
"language": "*"
}
( "language": "*" not "language": "*", )
| 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 | ⇒ | 2026-01-29 15:25:41 |
| Closed_By | ⇒ | tecpromotion |
I have tested this item ✅ successfully on 754e306
Note:
@alikon: You forgot the
languagein Testing Instructions, see content_articles_POST_PR46144_1 in Details ;)Before patch:
Details
After patch:
Note: content_articles_POST_PR46144_1 correctly fails beacause it doesn't have language.
Details
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46144.