Skip to content

KARAF-7098 JsonConfigInstaller ignores R7 factory configurations#1347

Closed
oliverlietz wants to merge 2 commits intoapache:mainfrom
oliverlietz:KARAF-7098
Closed

KARAF-7098 JsonConfigInstaller ignores R7 factory configurations#1347
oliverlietz wants to merge 2 commits intoapache:mainfrom
oliverlietz:KARAF-7098

Conversation

@oliverlietz
Copy link
Member

No description provided.

* Use util ConfigurationPID for parsing and representing PIDs
* Do not create new configuration when calling deleteConfig(File)
* Simplify logging
* Rename parameter fileName to configKey where appropriate
@jbonofre
Copy link
Member

jbonofre commented May 6, 2021

It seems that this PR includes #1346. It would be great to gather both in the same PR (unique PR), or link both together. Anyway two not related commits are not easy to review.

Copy link
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR and config bundle is not good. It should use org.apache.karaf.util.config as private package, else we have the following issue:

Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=minimal; type=karaf.feature; version=4.3.2.SNAPSHOT; filter:="(&(osgi.identity=minimal)(type=karaf.feature)(version>=4.3.2.SNAPSHOT))" [caused by: Unable to resolve minimal/4.3.2.SNAPSHOT: missing requirement [minimal/4.3.2.SNAPSHOT] osgi.identity; osgi.identity=config; type=karaf.feature [caused by: Unable to resolve config/4.3.2.SNAPSHOT: missing requirement [config/4.3.2.SNAPSHOT] osgi.identity; osgi.identity=org.apache.karaf.config.core; type=osgi.bundle; version="[4.3.2.SNAPSHOT,4.3.2.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.config.core/4.3.2.SNAPSHOT: missing requirement [org.apache.karaf.config.core/4.3.2.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.karaf.util.config)"]]]

@oliverlietz
Copy link
Member Author

I see, so embedding via e.g. org.apache.karaf.util.config;-split-package:=merge-first, is the preferred way, right?

@jbonofre
Copy link
Member

jbonofre commented May 6, 2021

Yes, like the other util packages. But don't worry, I'm fixing that. Thanks !

@jbonofre
Copy link
Member

jbonofre commented May 7, 2021

Superseeded by PR #1369

@jbonofre jbonofre closed this May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants