[
https://issues.apache.org/jira/browse/SLING-7496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367550#comment-16367550
]
Carsten Ziegeler commented on SLING-7496:
-----------------------------------------
Thanks for your patch, [~bosschaert] I've applied it
While it looks ok to me, we now have two failing test cases in the installer-it
module:
[ERROR]
ConfigInstallTest.testInstallUpdateRemoveConfigFactory:370->OsgiInstallerTestBase.waitForResource:607
Resource
OsgiInstallerTest:/configA/ConfigInstallTest.1_1518798684784-alias2_1518798684784
not found with state IGNORED : InstallationState[active resources: [],
installed resources:
[group[[resource[entityId=config:ConfigInstallTest.1_1518798684784.alias2_1518798684784,
scheme=OsgiInstallerTest,
url=OsgiInstallerTest:/configA/ConfigInstallTest.1_1518798684784-alias2_1518798684784,
type=config, error=null, state=INSTALLED, version=null,
lastChange=1518798684794, priority=10,
digest=9ee95e734039f9382ed7d4efd70b59f0]]]], untransformed resources: []]
[ERROR]
ConfigInstallTest.testInstallUpdateRemoveTemplateConfigFactory:403->OsgiInstallerTestBase.waitForResource:607
Resource
OsgiInstallerTest:/configA/ConfigInstallTest.1_1518798675679-alias2_1518798675679
not found with state IGNORED : InstallationState[active resources: [],
installed resources:
[group[[resource[entityId=config:ConfigInstallTest.1_1518798675679.alias2_1518798675679,
scheme=OsgiInstallerTest,
url=OsgiInstallerTest:/configA/ConfigInstallTest.1_1518798675679-alias2_1518798675679,
type=config, error=null, state=INSTALLED, version=null,
lastChange=1518798675690, priority=10,
digest=43cce692adda50cd4af84fedfca210e4]]]], untransformed resources: []]
[INFO]
It could just be that the test cases need updating, I haven't looked at them yet
> Factory config deleted with ConfigAdmin immediately after creation
> ------------------------------------------------------------------
>
> Key: SLING-7496
> URL: https://issues.apache.org/jira/browse/SLING-7496
> Project: Sling
> Issue Type: Bug
> Components: Installer
> Affects Versions: Installer Configuration Factory 1.1.2
> Reporter: David Bosschaert
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: Installer Configuration Factory 1.2.0
>
>
> In some cases when a factory configuration is created using the OSGi
> ConfigAdmin API, the configuration gets a call to {{delete()}} immediately
> when {{update()}} on the configuration is called.
>
> The issue comes down to the fact that the factory prefix is prepended twice
> to the configuration at some point in the installer, which is then assigned
> to the resource {{entityId}}. This mismatch causes the initial configuration
> to receive a delete callback as the system thinks it's no longer there.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)