You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Matthias Bläsing (Jira)" <ji...@apache.org> on 2020/05/27 21:31:00 UTC

[jira] [Commented] (NETBEANS-4378) Plugin manager timeout when loading from PP3; some state corruption

    [ https://issues.apache.org/jira/browse/NETBEANS-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17118112#comment-17118112 ] 

Matthias Bläsing commented on NETBEANS-4378:
--------------------------------------------

I could track it down into the PP3 update catalog. The data in the update catalog does not match the module data and this will make it impossible for the autoupdate code to activate the right modules at runtime, which results in the timeout messages.

This can be illustrated using the LDIF module as reference:

From the update catalog:
{code:xml}
 <module codenamebase="nb-ldif-editor"
         distribution="https://plugins.netbeans.apache.org/catalogue/download?id=139"
         downloadsize="1024"
         targetcluster="nbms"
         moduleauthor="mblaesing@doppel-helix.eu">
    <manifest OpenIDE-Module="nb-ldif-editor"
              OpenIDE-Module-Name="LDIF Editor"
              OpenIDE-Module-Specification-Version="0.15"
              OpenIDE-Module-Long-Description="Syntax Highlighting for LDIF-Files (intended as a companion to the ldap explorer)"/>
    <message_digest algorithm="SHA-1" value="bf318519e6746077ce7b27303af4145b6ed86091"/>
  </module>
{code}
From the _info.xml_ in the module:
{code:xml}
<module codenamebase="com.google.code.nb_ldap_explorer.ldif"
        distribution="nb-ldif-editor-0.15.nbm"
        downloadsize="0"
        homepage="https://github.com/nb-ldap-explorer/nb-ldap-explorer"
        license="1C67F54"
        moduleauthor="Matthias Bläsing"
        needsrestart="false"
        releasedate="2020/05/03"
        targetcluster="nb-ldap-bundle">
    <manifest OpenIDE-Module="com.google.code.nb_ldap_explorer.ldif"
              OpenIDE-Module-Display-Category="Tools"
              OpenIDE-Module-Implementation-Version="0.15"
              OpenIDE-Module-Long-Description="Syntax Highlighting for LDIF-Files (intended as a companion to the ldap explorer)"
              OpenIDE-Module-Module-Dependencies="org.openide.filesystems &gt; 9.12.1, org.openide.loaders &gt; 7.68.1, org.openide.nodes &gt; 7.47.1, org.netbeans.modules.editor/3 &gt; 1.89.1.6.3.23.55, org.netbeans.modules.parsing.api/1 &gt; 9.9.1.8, org.openide.text &gt; 6.69.1, org.netbeans.modules.lexer/2 &gt; 1.65.1.1, org.openide.util &gt; 9.9.1, org.openide.util.lookup &gt; 8.35.1"
              OpenIDE-Module-Name="LDIF Editor"
              OpenIDE-Module-Requires="org.openide.modules.ModuleFormat1"
              OpenIDE-Module-Short-Description="Syntax Highlighting for LDIF-Files (intended as a companion to the ldap explorer)"
              OpenIDE-Module-Specification-Version="0.15"/>
              <!-- ... -->
</module>
{code}
Of course the distribution differs, but problematic are the attributes _codenamebase_ and _targetcluster._ So I see too problems: Autoupdate relying on the update catalog information and the portal distributing invalid data. 

The pluginportal needs to fetch the info.xml data from the modules and integrate that data into the update catalog, if the data is not consistent, pain will follow.

> Plugin manager timeout when loading from PP3; some state corruption
> -------------------------------------------------------------------
>
>                 Key: NETBEANS-4378
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4378
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Plugin Manager, updatecenters - Pluginportal
>    Affects Versions: 12.0
>         Environment: Product Version: Apache NetBeans IDE 12.0-beta5
> Java: 14.0.1; Java HotSpot(TM) 64-Bit Server VM 14.0.1+7
> Runtime: Java(TM) SE Runtime Environment 14.0.1+7
> System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
>            Reporter: Ernie Rael
>            Priority: Major
>         Attachments: mlog-1
>
>
> I don't have time right now to put together a report, but attached is alog after
>  * fresh NB install
>  * load a plugin from "netbeans plugin portal" (PP3)
> BTW, I've seen the unpack200 (or whatever) issue but I don't see that in the log. I didn't think PP3 had that issue.
> Could be plugin manager or PP3. Could be transient or permanent. Reproduced by someone who reads the dev list.



--
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