Fixed Issue when creating add-ons via CLI with incorrect case when namespace already exists on case insensitive filesystem

Affected version
2.1.X

Jake B.

Well-known member
Say I have a ThemeHouse/AddOnA add-on already, and then create an add-on that has an incorrect casing, for example, Themehouse/AddOnB it will create the files for it in src/addons/ThemeHouse/AddOnB since the directory already exists, and the OS doesn't know any better. However, it will be inserted into the database as Themehouse/AddOnB, so trying to uninstall it with the CLI fails and says the add-on doesn't exist, and the dropdown menu in the admin interface is empty so you have to delete it through the database directly to fix it
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.7).

Change log:
Correctly handle add-ons created with incorrect casing when the namespace already exists.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top