RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
22 Apr 2026

Pull Request resolves #47609.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

The PR #44910 deprecated the UCM code, but broke storing the data in the #__ucm_base table. This PR reverts this change and fixes the problem.

Testing Instructions

Create an article and assign a tag to it. Click on save, wait for the page to reload and click on save again.

Actual result BEFORE applying this Pull Request

In the #__ucm_content table, for each click on save, a new entry is created in the table. No entry for the item is generated in #__ucm_base.

Expected result AFTER applying this Pull Request

An entry is created in #__ucm_base for the item and the corresponding entry in #__ucm_content is only updated, no duplicates are created.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar Hackwar Hackwar - open - 22 Apr 2026
avatar Hackwar Hackwar - change - 22 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2026
Category Libraries
avatar Hackwar Hackwar - change - 22 Apr 2026
Labels Added: bug PR-5.4-dev
avatar krishnagandhicode krishnagandhicode - test_item - 22 Apr 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71


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

avatar krishnagandhicode
krishnagandhicode - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71


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

avatar krishnagandhicode
krishnagandhicode - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71

Before patch :
Screenshot 2026-04-23 001652
Screenshot 2026-04-23 001701

After patch:
Screenshot 2026-04-23 002206
Screenshot 2026-04-23 001842


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47664.
avatar CSGoat0
CSGoat0 - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71.
I have screenshots I will provide in a different comment because I cannot upload them on the tracker as I have 2 issues when I try to upload them:

1- the opacity is set to 0, I could solve that.
2- when clicking Start upload I get this error: Error Empty file upload result. Unfortunately, I couldn't solve that.


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

avatar CSGoat0
CSGoat0 - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71.
I have screenshots I will provide in a different comment because I cannot upload them on the tracker as I have 2 issues when I try to upload them:

1- the opacity is set to 0, I could solve that.
2- when clicking Start upload I get this error: Error Empty file upload result. Unfortunately, I couldn't solve that.


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

avatar CSGoat0
CSGoat0 - comment - 22 Apr 2026
image image

ucm_id stopped at 7.

avatar CSGoat0
CSGoat0 - comment - 22 Apr 2026
image ----------------------------------------------- image

ucm_id stopped at 7.

avatar CSGoat0 CSGoat0 - test_item - 22 Apr 2026 - Tested successfully
avatar CSGoat0
CSGoat0 - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71


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

avatar CSGoat0
CSGoat0 - comment - 22 Apr 2026

I have tested this item ✅ successfully on 8c07a71


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

avatar sertlan
sertlan - comment - 23 Apr 2026

Tested it successfully: no duplicates are created in ucm_content table after saving an article again, corresponding row is updated.

avatar BeginnerJoomlaCom
BeginnerJoomlaCom - comment - 23 Apr 2026

@sertlan Please mark your test as successfully at https://issues.joomla.org/tracker/joomla-cms/47664

avatar krishnagandhicode
krishnagandhicode - comment - 23 Apr 2026

@sertlan Please mark your test as successfully at https://issues.joomla.org/tracker/joomla-cms/47664

Well this PR already has 2 Successful human Tests using issue tracker which is enough to get it RTCed (some maintainer will add the RTC tag as soon as they look into this PR)

Well more testing is always good - but as @sertlan already reported it here about their Successful test - after 2 human Successful test via joomla issue tracker It's not really needed for them to mark it using Issue tracker.

Thanks.

avatar sertlan sertlan - test_item - 23 Apr 2026 - Tested successfully
avatar sertlan
sertlan - comment - 23 Apr 2026

I have tested this item ✅ successfully on 8c07a71


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

avatar sertlan
sertlan - comment - 23 Apr 2026

I have tested this item ✅ successfully on 8c07a71


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

avatar BeginnerJoomlaCom
BeginnerJoomlaCom - comment - 23 Apr 2026

It's not really needed for them to mark it using Issue tracker

@krishnagandhicode please think also about less experienced users.

avatar richard67 richard67 - change - 23 Apr 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 23 Apr 2026

RTC


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

avatar richard67
richard67 - comment - 23 Apr 2026

RTC


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

avatar sertlan
sertlan - comment - 23 Apr 2026

Is it safe to delete duplicates in ucm_content table with this SQL query?

DELETE FROM `[prefix]_ucm_content` 
WHERE core_type_alias = 'com_content.article' 
AND core_content_id NOT IN (
    SELECT max_id FROM (
        SELECT MAX(core_content_id) as max_id 
        FROM `[prefix]_ucm_content` 
        WHERE core_type_alias = 'com_content.article' 
        GROUP BY core_content_item_id
    ) as tmp
);
avatar richard67
richard67 - comment - 23 Apr 2026

Is it safe to delete duplicates in ucm_content table with this SQL query?

DELETE FROM `[prefix]_ucm_content` 
WHERE core_type_alias = 'com_content.article' 
AND core_content_id NOT IN (
    SELECT max_id FROM (
        SELECT MAX(core_content_id) as max_id 
        FROM `[prefix]_ucm_content` 
        WHERE core_type_alias = 'com_content.article' 
        GROUP BY core_content_item_id
    ) as tmp
);

No. The query is wrong. On MySQL 8 in strict mode you will get an SQL error because you are using a group by but the column by which you are grouping is not part of the select statement.

avatar sertlan
sertlan - comment - 23 Apr 2026

No. The query is wrong. On MySQL 8 in strict mode you will get an SQL error

For me (MariaDB 10.6.17) this SQL query works.

But is it safe to delete duplicates in the ucm_content table?

avatar sertlan
sertlan - comment - 23 Apr 2026

No. The query is wrong. On MySQL 8 in strict mode you will get an SQL error

For me (MariaDB 10.6.17) this SQL query works.

But is it safe to delete duplicates in ucm_content table?

avatar richard67
richard67 - comment - 24 Apr 2026

No. The query is wrong. On MySQL 8 in strict mode you will get an SQL error

For me (MariaDB 10.6.17) this SQL query works.

As said, try it on MySQL 8 or PostgreSQL and you will get an SQL error.

avatar muhme muhme - change - 24 Apr 2026
Labels Added: RTC
avatar muhme muhme - test_item - 24 Apr 2026 - Tested unsuccessfully
avatar muhme
muhme - comment - 24 Apr 2026

I have tested this item 🔴 unsuccessfully on 779a9ca

Starting final test before merge using JBT

  • Tested with MariaDB 11.8.6
  • Before the PR
    • If a tag is assigned to an article, only one ucm_content entry is created
    • Every time an article is saved, another duplicate ucm_content entry is created
  • After applying PR with Patch Tester
    • One ucm_base and one ucm_content entry is created for assigning a tag
    • No duplicate entries anymore on editing the article
    • When the tag assignment is deleted, the ucm_content entry is also deleted; the ucm_base entry remains
    • ❌ Trying to assign the tag a second time silently fails, article is saved, but the tag is missing
avatar muhme
muhme - comment - 24 Apr 2026

I have tested this item 🔴 unsuccessfully on 779a9ca

Starting final test before merge using JBT

  • Tested with MariaDB 11.8.6
  • Before the PR
    • If a tag is assigned to an article, only one ucm_content entry is created
    • Every time an article is saved, another duplicate ucm_content entry is created
  • After applying PR with Patch Tester
    • One ucm_base and one ucm_content entry is created for assigning a tag
    • No duplicate entries anymore on editing the article
    • When the tag assignment is deleted, the ucm_content entry is also deleted; the ucm_base entry remains
    • ❌ Trying to assign the tag a second time silently fails, article is saved, but the tag is missing
avatar muhme muhme - change - 24 Apr 2026
Status Ready to Commit Pending
avatar muhme
muhme - comment - 24 Apr 2026

back to pending


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

avatar muhme
muhme - comment - 24 Apr 2026

back to pending


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

avatar sertlan
sertlan - comment - 24 Apr 2026

When the tag assignment is deleted, the ucm_content entry is also deleted; the ucm_base entry remains
Trying to assign the tag a second time silently fails, article is saved, but the tag is missing
This may be related to the ucm_base entry, if this is deleted manually, the article tag assignment is working again

Tested it. Unfortunately, it is.

Add a Comment

Login with GitHub to post a comment