? PR-4.3-dev ? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
20 Jan 2022

Pull Request for Issue #35977.

Summary of Changes

If a finder plugin tries to add an empty taxonomy, this can fail with the error message from #35977. This PR should fix that. This most likely is an article with a non-existing author or something similar.

Testing Instructions

Unfortunately I can't replicate the issue from #35977 and the below testing instructions seem to not be able to replicate the problem. Maybe @Stuartemk can investigate this further and try to test this?

  1. Create a user.
  2. Create an article and set the author of the article to the previously created user.
  3. Delete the user.
  4. Clear your search index and rebuild it.

Actual result BEFORE applying this Pull Request

It fails with the above error message (An Error Has Occurred Category must have a title.)

Expected result AFTER applying this Pull Request

Everything is properly indexed.

avatar Hackwar Hackwar - open - 20 Jan 2022
avatar Hackwar Hackwar - change - 20 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2022
Category Administration com_finder
avatar brianteeman
brianteeman - comment - 21 Jan 2022

Followed test instructions and was unable to replicate the reported problem

avatar Hackwar Hackwar - change - 24 Jan 2022
Labels Added: ?
avatar Hackwar Hackwar - change - 21 Jun 2022
Title
[4.1] Finder: Enforce Taxonomies to contain a title
[4.2] Finder: Enforce Taxonomies to contain a title
avatar Hackwar Hackwar - edited - 21 Jun 2022
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: ? ?
Removed: ?
avatar Hackwar Hackwar - change - 4 Jul 2022
The description was changed
avatar Hackwar Hackwar - edited - 4 Jul 2022
avatar danpdanp
danpdanp - comment - 19 Jul 2022

I have tested this item successfully on 28dc8cc


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

avatar danpdanp danpdanp - test_item - 19 Jul 2022 - Tested successfully
avatar RickR2H
RickR2H - comment - 29 Jul 2022

I was not able to reproduce the issue. We need better guidance to reproduce the issue...


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

avatar Hackwar Hackwar - change - 30 Aug 2022
Title
[4.2] Finder: Enforce Taxonomies to contain a title
[4.3] Finder: Enforce Taxonomies to contain a title
avatar Hackwar Hackwar - edited - 30 Aug 2022
avatar Hackwar Hackwar - change - 30 Aug 2022
Labels Added: PR-4.3-dev
avatar Fedik
Fedik - comment - 25 Sep 2022

From code review it looks like a valid fix.
The error comes from table class

// Check for a title.
if (trim($this->title) == '') {
$this->setError(Text::_('JLIB_DATABASE_ERROR_MUSTCONTAIN_A_TITLE_CATEGORY'));

The taxonomy title requirement was introduced in #21327
I suspect User may have some custom finder plugin, that not adapted it.

avatar Fedik
Fedik - comment - 25 Sep 2022

I have tested this item successfully on 7050d69

On review looks valid, everything still works, I count it as success :)


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

avatar Fedik Fedik - test_item - 25 Sep 2022 - Tested successfully
avatar RickR2H
RickR2H - comment - 20 Oct 2022

I have tested this item successfully on 7050d69

Even when I could not reproduce the issue, it also doesn't break things. I tested all the search options and everything seems to be okay. That's a good test IMHO.


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

avatar RickR2H RickR2H - test_item - 20 Oct 2022 - Tested successfully
avatar RickR2H RickR2H - change - 20 Oct 2022
Status Pending Ready to Commit
avatar RickR2H
RickR2H - comment - 20 Oct 2022

RTC


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

avatar laoneo laoneo - change - 21 Oct 2022
Labels Added: ?
Removed: ?
avatar laoneo laoneo - close - 21 Oct 2022
avatar laoneo laoneo - merge - 21 Oct 2022
avatar laoneo laoneo - change - 21 Oct 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-10-21 16:30:43
Closed_By laoneo
avatar laoneo
laoneo - comment - 21 Oct 2022

Thanks!

Add a Comment

Login with GitHub to post a comment