03-31-2014 09:48 AM
I have a Nuxeo Studio project, and I have a self-built Marketplace package that I use to install custom Java extension code. When I use the server development mode to load the latest Studio project, I receive a message like the following:
07:39:18,587 WARN [AppCenterViewsManager] Got warnings on package validation myorg-0.0.0-SNAPSHOT -> [The package myorg-nuxeo-package-0.9.0-SNAPSHOT will be uninstalled!]
myorg-0.0.0-SNAPSHOT
is the Studio project and myorg-nuxeo-package-0.9.0-SNAPSHOT
is my custom one.
Then the server spends much time uninstalling my custom marketplace package, forcing me to reinstall it. How can I avoid this uninstallation behavior? I tried turning the logging to DEBUG
but I didn't see any extra information about what caused the "warnings on package validation," or even if those warnings are the reason that the Studio update uninstalls my Java code.
03-31-2014 11:24 PM
I believe this code is the source of my problem.
public synchronized String getActivePackageId(String name) {
name = name + '-';
for (Entry<String, PackageState> entry : states.entrySet()) {
if (entry.getKey().startsWith(name)
&& entry.getValue().isInstalled()) {
return entry.getKey();
}
}
return null;
}
I don't think this can distinguish between myorg-0.0.0-SNAPSHOT
and myorg-nuxeo-package-0.9.0-SNAPSHOT
, so the second one gets listed as needing to be uninstalled. I renamed the Nuxeo package name in package.xml
for the second package and everything worked as it should.
Can someone please confirm this as the cause, and either explain to me why it is not a bug or help me open a bug report? Thanks!
04-02-2014 10:10 AM
Hi,
04-02-2014 11:17 AM
I opened https
04-02-2014 12:52 PM
Thanks for the report
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.