Problem/Motivation
As I found out in #3360782: Exclude fast_404 paths and file extensions by default (Performance), the settings form fields #maxlength of 128 inherited from core due to this issue: is too short.
Especially for the "Extensions to abort search" field, you can't even enter all the required typical file extension values. But we should remove the limit for all relevant fields.
Steps to reproduce
Try entering values with > 128 characters into the "Extensions to abort search" field and save. They are cut off.
Proposed resolution
Remove the #maxlength as config has no limits for such values.
#3331028: Increase default textfield #maxlength=128 to 256 will presumably not be solved soon.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork search404-3360909
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyComment #3
anybodyAs unsetting the #maxlength would be worse to read and 512 characters will presumably enough forever, let's increase the value to 512 instead. Once the referenced core issue is solved, this can be removed.
Comment #5
anybodyComment #6
grevil commentedLGTM! Are you sure, that the comment is necessary there?
Comment #7
anybodyI'd say so, because you wouldn't add the limit at all if the core issue wouldn't exist. A reference makes sense so, I think.
Comment #8
emilymathew commentedComment #10
emilymathew commentedComment #11
anybodyThank you @emilymathew! :)