?
avatar nikosdion
nikosdion
2 Jun 2021

Steps to reproduce the issue

  • Go to System, Update Sites
  • Click the “- Select Download Key -” dropdown and select “Download Key Support”.
  • After the page reloads click the same dropdown and select “- Select Download Key -”.

Expected result

All Update Sites listed.

Actual result

No Update Sites listed.

System information (as much as possible)

Confirmed on PHP 7.4 and 8.0. The environment seems to be irrelevant, though.

Additional comments

This is a bug in code I had contributed in 2019, namely

$query->where($db->qn('s.update_site_id') . ' = 0');

The switch statement above should be setting $supportedIDs to null and the noted line should have a check for a non-null result.

I will submit a PR shortly.

avatar nikosdion nikosdion - open - 2 Jun 2021
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jun 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Jun 2021
avatar sozzled
sozzled - comment - 2 Jun 2021

Confirmed. Thanks.

avatar nikosdion
nikosdion - comment - 2 Jun 2021

Here's the Pull Request #34357

avatar zero-24
zero-24 - comment - 2 Jun 2021

We can close here while we have the PR right?

avatar wilsonge wilsonge - change - 2 Jun 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-06-02 08:07:51
Closed_By wilsonge
avatar wilsonge wilsonge - close - 2 Jun 2021
avatar nikosdion
nikosdion - comment - 2 Jun 2021

BTW, you don't have to close my issues when I submit a PR. I always include the text "closes blah-blah" as the first thing in my PR description so that the issue is auto-closed by GitHub when you merge the PR. IMHO it makes it easier for people to see if an issue is known — most people will search the issues but almost nobody looks into open PRs.

avatar PhilETaylor
PhilETaylor - comment - 2 Jun 2021

BTW, you don't have to close my issues when I submit a PR. I always include the text "closes blah-blah" as the first thing in my PR description so that the issue is auto-closed by GitHub when you merge the PR.

The Joomla Way™️ - To be fair Symfony do that too..

This was also a duplicate of #34132 (comment) which you missed before opening this :)

avatar nikosdion
nikosdion - comment - 2 Jun 2021

Yeah, I'd missed your issue. It didn't come up when I searched. I believe you called it Download ID, Joomla calls it Download Key and I searched for the latter. Nothing immediately popped up so I filed an issue :)

avatar PhilETaylor
PhilETaylor - comment - 2 Jun 2021

ah :) haha

avatar nikosdion
nikosdion - comment - 2 Jun 2021

If Microsoft is hearing, we'd like some AI in the issues search so it can figure out subtle differences in terminology to avoid awkward situations like this... ?

Add a Comment

Login with GitHub to post a comment