Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Cloning config entities doesn't validate length of machine name for ID.
Config entity IDs cannot be more than 32 characters for bundle sake.
To test:
- Create a contact form
- Clone it
- Give it a really long name
- Fatal error
Comment | File | Size | Author |
---|---|---|---|
#9 | 2754047-9-maxlength.patch | 4.48 KB | vpeltot |
Comments
Comment #2
larowlanComment #3
larowlanComment #6
larowlanGah, so this is only for config entities that are bundles.
So we need a new class for those forms.
Comment #7
AsadKamil CreditAttribution: AsadKamil at Valuebound commentedPatch applied successfully and now we can give more than 70 chars to label and we can have only 32 letters for machine name.
machine name automatically take 32 chars from label name.Now it is not giving fatal error
Thanks
Comment #8
alan-ps CreditAttribution: alan-ps commentedChange status to Needs work, in accordance with comment #6
Comment #9
vpeltot CreditAttribution: vpeltot at Niji commentedHere a patch to solve this (older) issue !
Comment #10
vpeltot CreditAttribution: vpeltot at Niji commentedComment #11
optimusprime619 CreditAttribution: optimusprime619 commentedThanks for the patch, encountered the same error when trying to clone a webform with a lengthy name
Issue resolved after updating the patch and the machine name was restricted to 32 characters.
Comment #12
larowlanThis is good to go, thanks for re-rolling
Comment #14
vpeltot CreditAttribution: vpeltot at Niji commentedCommited.
Thanks.