Skip to content

Missing Addon Configuration for kar file based deployments #5044

@HolgerHees

Description

@HolgerHees

If I install the default pythonscripting binding, everything is fine. I can see and use the related web configuration.

The marketplace version “Python Scripting Next” has just a prefixed “next-” feature name. But if I install these binding, I can see the menu entry, but the page itself is empty.

And if I install the kar file directly inside the addon folder, nothing is visible.

Some details about the setup.

  • default pythonscripting binding is a official one.
    • it has the id pythonscripting in addon.xml
    • and a <config-description-ref uri="automation:pythonscripting"/>
    • the config.xml has the uri <config-description uri="automation:pythonscripting">
  • the marketplace version is exactly the same. Means it is using the same id's and uris.
    • only the feature.xml is prefixt with "next-" like
      <feature name="next-automation-pythonscripting"
    • everything else is the same

The prefixed feature ID was necessary to avoid conflics with official the addon. If I was using the same feature id like the official one, the AddonInstaller was always uninstalling my binding

---- UPDATE 1 ----

I checked via Java Code (I got AddonInfoRegistry & ConfigDescriptionRegistry by @reference before)

AddonInfo info = AddonInfoRegistry.getAddonInfo("automation-pythonscripting");
logger.info("URI {}", info.getConfigDescriptionURI());

I got “URI automation:pythonscripting”

But if I ask

ConfigDescription desc = ConfigDescriptionRegistry.getConfigDescription("automation:pythonscripting");

I got null

So for some reason the Add-on is not registering the config.xml

---- UPDATE 2 ----

it looks like that the related config.xml is never parsed for kar file based deployments.

I was also not able to find a addon kar file on marketplace where this ever worked.

All addons which provide their own configuration page are all jar files.

---- FORUM THREAD ----

The issues is based on a thread on our forum

https://community.openhab.org/t/missing-addon-configuration-for-kar-file-based-deployments/165171

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions