#106509Extbase allowProperty() broken for trustedProperties with INT keys
Description
With #101292 the introduced types change the signature of PropertyMappingConfiguration->allowProperties() to:
public function allowProperties(string ...$propertyNames): self
In case an extbase f:form though submits this:
<input type="hidden" name="tx_some_model[__trustedProperties]" value="{"item":{"title":1,"categories":[1,1,1],"date":1},"submit":1}99199382b36db7c8ee660a55c327d10f68addcff">
Here the [1,1,1] gets passed to allowProperties as int values. This means the signtatur also needs to accept at least ints.
Note that currently, there are no functional extbase tests in place that cover most of these type changes affecting f:form handling.
Reviews 3
Related issues 2
History 58
-
Garvin Hicking changed description <span data-processor="relativetime" data-value="2025-04-03T18:35:29+00:00" > 04/03/25, 18:35 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 88942 status
NewUnder Review <span data-processor="relativetime" data-value="2025-04-03T18:38:16+00:00" > 04/03/25, 18:38 </span> -
Garvin Hicking changed Related to #101292 <span data-processor="relativetime" data-value="2025-04-03T18:38:27+00:00" > 04/03/25, 18:38 </span>
-
Garvin Hicking changed Related to #106493 <span data-processor="relativetime" data-value="2025-04-03T18:38:42+00:00" > 04/03/25, 18:38 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 88942 <span data-processor="relativetime" data-value="2025-04-03T18:38:54+00:00" > 04/03/25, 18:38 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 88942 <span data-processor="relativetime" data-value="2025-04-03T18:41:19+00:00" > 04/03/25, 18:41 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-04-10T06:00:09+00:00" > 04/10/25, 06:00 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-08-12T14:36:35+00:00" > 08/12/25, 14:36 </span>
Applied in changeset commit:f9d80f1be30ef93a01ee44cb94fea6e4578a8f29.