fix: use string client values per Joomla update spec #611
Reference in New Issue
Block a user
Delete Branch "fix/client-tag-strings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reverts client tag from numeric 0/1 to string site/administrator per Joomla update server spec.
Critical:
<client>tag breaks package update detection in Joomla 6Root Cause (traced through Joomla 6.1.1 source)
ExtensionAdapter.phpline 62 — when parsing the update XML feed, the defaultclient_idis hardcoded to1(administrator):ExtensionAdapter.phplines 308-318 — the<client>tag is resolved:<client>administrator</client>→client_id = 1<client>site</client>→client_id = 0client_id = 1PackageAdapter.phpline 548 — packages are always stored withclient_id = 0:Updater.phplines 362-380 — the update finder matches by exact(element, type, client_id, folder):The Problem
The MokoGitea feed generator emits
<client>administrator</client>for ALL extensions including packages. This causes:client_id = 1in#__updatesclient_id = 0in#__extensions1 != 0→extension_idstays0Required Fix
<client>valueclient_idadministratorsitesiteadministratorsitesitesiteAffected
pkg_mokosuitehqconfirmed — updates never show despite valid feed. Potentially ALL package-type extensions using MokoGitea update feeds.Pull request closed