RTC PBF bug Maintainers Checked Small PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
6 Jun 2022

Pull Request for Issue #30995.

Summary of Changes

Store assets without NULLs.

Testing Instructions

Create custom table class with assets (property $asset_id is required) and try to execute parent::store(true).

Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.

Actual result BEFORE applying this Pull Request

See error.

Expected result AFTER applying this Pull Request

Save without errors.

Documentation Changes Required

No.

d941c02 6 Jun 2022 avatar Denitz fix
avatar Denitz Denitz - open - 6 Jun 2022
avatar Denitz Denitz - change - 6 Jun 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jun 2022
Category Libraries
avatar Denitz Denitz - change - 6 Jun 2022
Title
fix
JTable::store(true) to update NULLs fails if assets are tracked
avatar Denitz Denitz - edited - 6 Jun 2022
avatar richard67
richard67 - comment - 11 Jun 2022

Hmm, but when doing a real test as suggested to emulate the real case, I do not get any error without this PR applied.

avatar richard67
richard67 - comment - 13 Jun 2022

@Denitz As I wrote in my previous comments, I think by review that your PR is right. But I can't really reproduce the issue on a current 4.1-dev. I do not get any kind of error without the PR applied and doing the suggested edit of the "libraries/src/Table/Content.php" file. Could you check and report back how you did get an error and which kind of error?

avatar Denitz
Denitz - comment - 14 Jun 2022

Sorry, can't reproduce as well, too much time has passed :(

avatar chmst
chmst - comment - 15 Jun 2022

Can replicate following this instruction, but get another message.

Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.

BUT .. I could replicate it only once and never again.

avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull requests has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: ? Maintainers Checked ?
avatar Denitz Denitz - change - 2 Jul 2022
Labels Added: ?
Removed: ?
avatar Denitz
Denitz - comment - 24 Mar 2023

@richard67 Please rebase to 4.3-dev, I don't want to loose your approval after my rebase.

avatar Denitz
Denitz - comment - 24 Mar 2023

Anybody, please delete this PR if I won't remind about it in 5 years, otherwise it means that I've gone to better place.

avatar richard67 richard67 - change - 24 Mar 2023
Labels Added: ?
Removed: ?
avatar richard67 richard67 - change - 24 Mar 2023
Labels Added: PR-4.3-dev
Removed: ?
avatar HLeithner
HLeithner - comment - 30 Sep 2023

This pull request has been automatically rebased to 4.4-dev.

avatar Denitz Denitz - change - 3 Oct 2023
Title
JTable::store(true) to update NULLs fails if assets are tracked
[4.4] JTable::store(true) to update NULLs fails if assets are tracked
avatar Denitz Denitz - edited - 3 Oct 2023
avatar hl-dev-DE hl-dev-DE - test_item - 24 Feb 2024 - Tested successfully
avatar hl-dev-DE
hl-dev-DE - comment - 24 Feb 2024

I have tested this item ✅ successfully on 54ac9e4


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

avatar TLWebdesign
TLWebdesign - comment - 24 Feb 2024

I have tested this item ✅ successfully on 54ac9e4

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

What did you do to succesfully get the error message? I am not getting any errors before applying the patch.

avatar TLWebdesign TLWebdesign - test_item - 24 Feb 2024 - Tested unsuccessfully
avatar TLWebdesign
TLWebdesign - comment - 24 Feb 2024

I have tested this item ? unsuccessfully on 54ac9e4

Could not replicate the error on saving before applying the patch


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

avatar richard67
richard67 - comment - 24 Feb 2024

@TLWebdesign The testing instructions say that it needs to implement a custom table class to reproduce the issue. That means some programming or some 3rd party extension which does that. Have you done that? If no, then change your test result to "not tested". Thanks in advance.

avatar TLWebdesign
TLWebdesign - comment - 24 Feb 2024

@richard67

it also said you could do this approach:

Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.

Thats what i tried.

avatar richard67
richard67 - comment - 24 Feb 2024

it also said you could do this approach:

Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.

Thats what i tried.

I see. Was reading not far enough.

avatar Hackwar Hackwar - test_item - 26 Feb 2024 - Tested successfully
avatar Hackwar
Hackwar - comment - 26 Feb 2024

I have tested this item ✅ successfully on 54ac9e4

I did a codereview and indeed it is false to hand over the $updateNulls here to the asset table object. So this can be merged by codereview.


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

avatar Hackwar Hackwar - change - 26 Feb 2024
Status Pending Ready to Commit
avatar Hackwar
Hackwar - comment - 26 Feb 2024

RTC


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

avatar MacJoom MacJoom - change - 26 Feb 2024
Labels Added: RTC PBF bug Small PR-4.4-dev
Removed: PR-4.3-dev ?
avatar MacJoom MacJoom - change - 26 Feb 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-02-26 15:33:06
Closed_By MacJoom
avatar MacJoom MacJoom - close - 26 Feb 2024
avatar MacJoom MacJoom - merge - 26 Feb 2024
avatar MacJoom
MacJoom - comment - 26 Feb 2024

Thank you!

Add a Comment

Login with GitHub to post a comment