You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jens Hofschröer (Jira)" <ji...@apache.org> on 2021/06/11 07:59:00 UTC
[jira] [Commented] (NETBEANS-5772) OSGi Bundles with dash in
Bundle-Symbolic-Name are not installable or updatable
[ https://issues.apache.org/jira/browse/NETBEANS-5772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17361521#comment-17361521 ]
Jens Hofschröer commented on NETBEANS-5772:
-------------------------------------------
On further investigation it seems, that the updates.xml of the update center contains the invalid entry. The commons csv OSGi Bundle is renamed to "org.apache.commons.commons_csv" but the other OSGi Bundle depending on the commons csv bundle has the "original" bundle name in its dependencies. So may be the generation-task for the update center should be cause.
> OSGi Bundles with dash in Bundle-Symbolic-Name are not installable or updatable
> -------------------------------------------------------------------------------
>
> Key: NETBEANS-5772
> URL: https://issues.apache.org/jira/browse/NETBEANS-5772
> Project: NetBeans
> Issue Type: Bug
> Components: platform - Module System
> Affects Versions: 12.3
> Reporter: Jens Hofschröer
> Priority: Major
>
> The NetBeans Module System is based on "Code-Name-Base" module names. These names are formatted the same way as Java packages. OSGi uses "Symbolic Names" that are "mostly" like Java Packages, but the OSGi specification allows also a dash and an underscore to be part of that "symbolic-name" [1] and [2].
> In org.openide.modules.Dependency#checkCodeName() the check is that only a NetBeans CNB/Java package is a valid identifier. This will prevent modules to be installed or updated if they depend on these OSGi Bundles:
> java.lang.IllegalArgumentException: Malformed dot-separated identifier: org.apache.commons.commons-csv
> at org.openide.modules.Dependency.checkCodeName(Dependency.java:176)
> at org.openide.modules.Dependency.create(Dependency.java:254)
> at org.netbeans.modules.autoupdate.updateprovider.DummyModuleInfo.parseDeps(DummyModuleInfo.java:176)
> at org.netbeans.modules.autoupdate.updateprovider.DummyModuleInfo.<init>(DummyModuleInfo.java:97)
> at org.netbeans.modules.autoupdate.updateprovider.ModuleItem.getModuleInfo(ModuleItem.java:150)
> [catch] at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:169)
> at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:118)
> at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:267)
> at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:227)
> at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:96)
> at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:78)
> at org.netbeans.modules.autoupdate.ui.PluginManagerUI.updateUnitsChanged(PluginManagerUI.java:656)
> at org.netbeans.modules.autoupdate.ui.UnitTab$3.updateUnitsChanged(UnitTab.java:168)
> at org.netbeans.modules.autoupdate.ui.UnitCategoryTableModel.fireUpdataUnitChange(UnitCategoryTableModel.java:261)
> at org.netbeans.modules.autoupdate.ui.UnitTab.fireUpdataUnitChange(UnitTab.java:619)
> at org.netbeans.modules.autoupdate.ui.UnitTab$14$1.run(UnitTab.java:790)
> at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
>
> [1] [http://docs.osgi.org/specification/osgi.core/7.0.0/framework.module.html#framework.module.bsn]
> [2] [http://docs.osgi.org/specification/osgi.core/7.0.0/ch01.html#framework.general.syntax]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists