fix: feed generator should use FullElementName() instead of raw ElementName #604

Closed
opened 2026-06-11 21:15:34 +00:00 by jmiller · 0 comments
Owner

Problem

resolveExtensionMetadata() in services/updateserver/joomla.go reads manifest.ElementName directly (line 195). If ElementName is empty but Name and PackageType are set, the auto-construction logic in FullElementName() would produce the correct element (e.g. pkg_ + mokosuitehqpkg_mokosuitehq), but it's never called.

Expected

The feed generator should call manifest.FullElementName() which returns the override if set, otherwise auto-constructs from PackageType + Name.

Fix

In services/updateserver/joomla.go line 195, replace:

if manifest.ElementName != "" {
    m.Element = manifest.ElementName
}

With:

if elem := manifest.FullElementName(); elem != "" {
    m.Element = elem
}

Impact

Repos that have Name and PackageType set in their manifest but no explicit ElementName override will fall back to the repo name instead of getting the correct auto-constructed element name.

## Problem `resolveExtensionMetadata()` in `services/updateserver/joomla.go` reads `manifest.ElementName` directly (line 195). If `ElementName` is empty but `Name` and `PackageType` are set, the auto-construction logic in `FullElementName()` would produce the correct element (e.g. `pkg_` + `mokosuitehq` → `pkg_mokosuitehq`), but it's never called. ## Expected The feed generator should call `manifest.FullElementName()` which returns the override if set, otherwise auto-constructs from `PackageType` + `Name`. ## Fix In `services/updateserver/joomla.go` line 195, replace: ```go if manifest.ElementName != "" { m.Element = manifest.ElementName } ``` With: ```go if elem := manifest.FullElementName(); elem != "" { m.Element = elem } ``` ## Impact Repos that have `Name` and `PackageType` set in their manifest but no explicit `ElementName` override will fall back to the repo name instead of getting the correct auto-constructed element name.
Sign in to join this conversation.