#106283DataHandler copy for not-nullable passwords fails with SQL error
Description
- Use EXT:styleguide
- Create an empty record of type “elements basic”, no fields filled out
- Copy that record
- Paste the record onto the same page
- SQL Error: 2: SQL error: "An exception occurred while executing a query: Column 'password_1' cannot be null" (tx_styleguide_elements_basic:NEW67c209516b0d0488988845)
This is repeated for all passwords fields that do not have the 'nullable' => true TCA option (password_1, 4, 5, 6, 7)
This happens because the DataHandler method call $value = $newHashInstance->getHashedPassword($value); can return null as a value, which is then tried to be persisted.
Reviews 2
History 24
-
Gerrit Code Review pushed patch set 1 for main to change 88416 status
NewUnder Review <span data-processor="relativetime" data-value="2025-02-28T19:13:54+00:00" > 02/28/25, 19:13 </span> -
Gerrit Code Review pushed patch set 1 for 13.4 to change 88564 <span data-processor="relativetime" data-value="2025-03-10T18:20:29+00:00" > 03/10/25, 18:20 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-03-10T18:55:10+00:00" > 03/10/25, 18:55 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:22:30+00:00" > 12/02/25, 14:22 </span>
Applied in changeset commit:9d68c957b5337d5281617eb9af914757aa181975.