Bug #23667 Bug Fixed

Editing template group name with only character case change throws exception

Version: 4.3.2 Reporter: obfuscode

If you create a template group and then edit that group to change the case of a character, it throws an exception:

Original Template Group Name: “Testing” (accidentally capitalized it) Attempted Rename: “testing”

Folder in /system/user/templates was “Testing.group” Docker Centos Nginx stack

----------------------------------
Exception Caught
Cannot rename, destination already exists: user/templates/default_site/testing.group
ee/EllisLab/ExpressionEngine/Library/Filesystem/Filesystem.php:318

Stack Trace: Please include when reporting this error
#0 ee/EllisLab/ExpressionEngine/Model/Template/TemplateGroup.php(110): EllisLab\ExpressionEngine\Library\Filesystem\Filesystem->rename('...', '...')
#1 [internal function]: EllisLab\ExpressionEngine\Model\Template\TemplateGroup->onAfterUpdate(Array)
#2 ee/EllisLab/ExpressionEngine/Service/Model/Model.php(824): call_user_func_array(Array, Array)
  • The pound symbol for the exception stack trace lines made markdown think they were Heading 1s… sorry about that.

    obfuscode
    11th July, 2018 at 10:19am
  • We’ve added validation to prevent case changes in the template group names to the next release, though we will be having a more general discussion of case sensitivity and files in the future.

    Thanks for the report!

    Robin Sowell
    16th August, 2018 at 4:44pm

You must be signed in to comment on a bug report.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases