Avoid a database exception at user account registration when users enter very long real names by setting a maximum length.
This does not affect existing account data as it is only called in the account registration code.
Fixes T15962
Paths
| Differential D25841 Authored by aklapper on Nov 29 2024, 14:22.
Tags None Referenced Files
Details
Summary Avoid a database exception at user account registration when users enter very long real names by setting a maximum length. Fixes T15962 Test Plan Go to http://phorge.localhost/auth/register/ and enter long values into the "Real Name" field
Diff Detail
Event TimelineHerald added subscribers: Cigaryno, Matthew, valerio.bozzolan, tobiaswiese. · View Herald TranscriptNov 29 2024, 14:222024-11-29 14:22:39 (UTC+0) Harbormaster completed remote builds in B1632: Diff 2542.Nov 29 2024, 14:222024-11-29 14:22:41 (UTC+0) aklapper edited the summary of this revision. (Show Details)Nov 29 2024, 14:302024-11-29 14:30:11 (UTC+0) Harbormaster completed remote builds in B1633: Diff 2543.Nov 29 2024, 14:332024-11-29 14:33:22 (UTC+0) Comment Actions sgtm. Thanks :) just that comment
This revision is now accepted and ready to land.Nov 29 2024, 18:112024-11-29 18:11:38 (UTC+0) Harbormaster completed remote builds in B1634: Diff 2544.Nov 30 2024, 12:172024-11-30 12:17:12 (UTC+0) Closed by commit rPeb380f922c9a: Account registration: Restrict Real Name length. · Explain WhyDec 2 2024, 19:362024-12-02 19:36:45 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 2542 src/applications/auth/controller/PhabricatorAuthRegisterController.php
src/applications/people/storage/PhabricatorUser.php
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0 |
Note: Changing the default to '' doesn't work, because $old_data might be set to null by $this->getBlob() on line 762.