Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9559

Server <modules> configuration with a single entry can break classloading

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

      There's a bug in CacheContainerConfigurationBuilder introduced by changes for ISPN-7714. This happens only if we have a single module entry specified in the <modules> element of the cache container config and nothing in the 'module' attribute. In that case the module is used as if it was specified in the 'module' attribute. The classloader of the specified module is used as the global classloader of the cache container and this is almost always wrong. We should instead have an AggregatedClassloader of the classloaders of the user specified module/modules + the infinispan subsystem classloader (if no module attribute is present). If a 'module' attribute was specified then we should let that module be the designated classloader and do not use infinispan subsystem classloader as backup.

            [ISPN-9559] Server <modules> configuration with a single entry can break classloading

            Adrian Nistor (Inactive) created issue -
            Adrian Nistor (Inactive) made changes -
            Status Original: New [ 10016 ] New: Open [ 1 ]
            Adrian Nistor (Inactive) made changes -
            Git Pull Request New: https://github.com/infinispan/infinispan/pull/6286
            Status Original: Open [ 1 ] New: Pull Request Sent [ 10011 ]
            Adrian Nistor (Inactive) made changes -
            Description New: There's a bug in CacheContainerConfigurationBuilder introduced by changes for ISPN-7714. This happens only if we have a single module entry specified in the <modules> element of the cache container config or if we have a non-empty 'module' attribute. The classloader of the specified module is used as the global classloader of the cache container. This is almost always wrong. We should instead have an AggregatedClassloader of the user specified classloader in module/modules + the infinispan subsystem classloader. If no module is specified then the infinispan subsystem classloader should be used.
            Adrian Nistor (Inactive) made changes -
            Summary Original: Server <modules> configuration with a single entry breaks classloading New: Server <modules> configuration with a single entry can break classloading
            Adrian Nistor (Inactive) made changes -
            Description Original: There's a bug in CacheContainerConfigurationBuilder introduced by changes for ISPN-7714. This happens only if we have a single module entry specified in the <modules> element of the cache container config or if we have a non-empty 'module' attribute. The classloader of the specified module is used as the global classloader of the cache container. This is almost always wrong. We should instead have an AggregatedClassloader of the user specified classloader in module/modules + the infinispan subsystem classloader. If no module is specified then the infinispan subsystem classloader should be used. New: There's a bug in CacheContainerConfigurationBuilder introduced by changes for ISPN-7714. This happens only if we have a _single_ module entry specified in the <modules> element of the cache container config and nothing in the 'module' attribute. In that case the module is used as if it was specified in the 'module' attribute. The classloader of the specified module is used as the global classloader of the cache container and this is almost always wrong. We should instead have an AggregatedClassloader of the classloaders of the user specified module/modules + the infinispan subsystem classloader (if no module attribute is present). If a 'module' attribute was specified then we should let that module be the designated classloader and do not use infinispan subsystem classloader as backup.
            Gustavo Fernandes (Inactive) made changes -
            Resolution New: Done [ 1 ]
            Status Original: Pull Request Sent [ 10011 ] New: Resolved [ 5 ]
            Adrian Nistor (Inactive) made changes -
            Fix Version/s New: 9.3.4.Final [ 12339151 ]
            Gustavo Lira Silva made changes -
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Pedro Zapata Fernandez made changes -
            Workflow Original: GIT Pull Request with Triage workflow [ 12930019 ] New: OJA-WF-BG [ 24697400 ]

              anistor Adrian Nistor (Inactive)
              anistor Adrian Nistor (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: