Extension installers allow extensions with duplicate names to be enabled

Created on 16 April 2015, about 9 years ago
Updated 21 March 2023, about 1 year ago

Problem/Motivation

Having modules and themes with duplicate names enabled is not supported and should not be allowed in the first place.

Form LibraryDiscoveryParser::buildByExtension()

      if ($this->moduleHandler->moduleExists($extension)) {
        $extension_type = 'module';
      }
      else {
        $extension_type = 'theme';
      }

Above code always parse $modulename.libraries.yml if module and theme has same name. This also occurs if install profile has same name as theme name.

Proposed resolution

Throw an exception if this is attempted.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

🐛 Bug report
Status

Closed: duplicate

Version

10.1

Component
Extension 

Last updated 3 days ago

No maintainer
Created by

🇵🇰Pakistan jibran Sydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024