[j4] Default custom_data and system_data to an empty string#14958
[j4] Default custom_data and system_data to an empty string#14958laoneo wants to merge 1 commit intojoomla:4.0-devfrom
Conversation
|
This should have already been solved with #14750 ? |
|
Yeah, it's fixed by that PR, but that PR may break 3rd party extensions and is the wrong "fix". |
|
I can not reproduce test instruction.
|
|
If you had installed an older J4 version with later updated files then Extensions -> Database -> Fix should resolve the problem. |
|
Database -> Fix action didn't work before. I was testing it on the media manager project, but since the latest merge from the 4.0 from upstream, discovery is working again. I leave it open in case #14750 go reverted, then this fix is needed. |
|
If we do revert it we should do everything in one big PR. So I'm going to close this. If someone wants to do the all in one feel free. But honestly if we are using a database column on a major version upgrade once every 5 years then tbh I think we can do better than that anyhow |
Maybe that's true for the system_data field. But what is your arhument when some extension (eg a plugin) uses the custom_data field? Ever since the extension table was created, both fields were present and especially the custom_data one could be used by extensions to store some simple stuff in it without creating own tables (at least I suppose that's the intent of this field). I don't get why you want to remove those fields. They don't hurt at all and may be helpful for 3rd parties and even core in situational cases. |
Summary of Changes
Discovery is broken on Joomla 4 becaus of an SQl error that custom_data and system_data don't have to be null.
Honestly I don't know what are this columns for, but they must be initialized with some data as the installer defines them as not nullable. Either way we always write some data into the coumns for an extension or we allow null values. Somebody a clue what these columns are for?
Testing Instructions
Expected result
The override plugin should appear in the list.
Actual result
The list is empty.
Documentation Changes Required
None as it is a bug.