-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SLING-12283 : changed the config Pid to separate factoryPID & PID wit… #13
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rishabhdaim and thanks for the PR. I am still running some tests regarding your code changes, hopefully done today or tomorrow.
I left some comments in the meantime.
src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigUtil.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigUtil.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java
Outdated
Show resolved
Hide resolved
@rishabhdaim - can you please merge with the latest master commit? fd459da would make our testing easier. |
… exiting with legacy name or not
Quality Gate passedIssues Measures |
if (config == null) { | ||
config = ConfigUtil.getLegacyFactoryConfig(this.getConfigurationAdmin(), this.factoryPid, null, this.configPid); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a complete fix (together with apache/sling-org-apache-sling-installer-provider-jcr#9). The original.pid
property is not leveraged. Installation would need to be skipped if the original.pid
property is present AND a configuration with that PID exists in config admin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that I haven't checked whether the original.pid
property is present or not cause I didn't need it (may be we can remove it altogether).
Regarding the checking of config, the ConfigUtil.getLegacyFactoryConfig
does check it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change here is actually "good enough".
…h ~ before saving it