You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The admin field is completely ignored by clients and while logins work all the user have access to is the logout button.
Not sure why this issue hasn't cropped up before I suspect it may be down to mysql version or driver.
Setup:
Server:
TYPO3 Version 12.4.10
Webserver Apache
PHP Version 8.2.15
Database (Default) MySQL 8.0.35-27 / pdo_mysql
Application Context Production
Operating System Linux 5.14.0-362.13.1.el9_3.x86_64
T3AM 5.0.0 (default.isServer=1)
Client:
TYPO3 Version 12.4.10
Webserver Apache
PHP Version 8.2.15
Database (Default) MySQL 8.0.35-27 / pdo_mysql
Application Context Production
Operating System Linux 5.14.0-362.13.1.el9_3.x86_64
Bootstrap Package 14.0.7
T3AM 5.0.0
Problem location
In the function: typo3conf/ext/t3am/Classes/Domain/Factory/UserFactory.php :: toDatabaseConformArray
The database columns are compared to the JSON keys of the user object.
This works for every field except admin due to it's array key being stored escaped:
Short description
The admin field is completely ignored by clients and while logins work all the user have access to is the logout button.
Not sure why this issue hasn't cropped up before I suspect it may be down to mysql version or driver.
Setup:
Server:
Client:
Problem location
In the function:
typo3conf/ext/t3am/Classes/Domain/Factory/UserFactory.php :: toDatabaseConformArray
The database columns are compared to the JSON keys of the user object.
This works for every field except admin due to it's array key being stored escaped:
var_dump($columns):
( the "..." above is just me cropping out irelevant info. )
The problem is that the json object contains the key
"admin"
where as $columns only contains"`admin`"
( mysql escape )The quick & dirty solutions would be to loop over the $columns array like so:
Which would effectively create a duplicate for escaped keys - not a pretty solution by any means, but it works (tested).
Any better way to fix it?
The text was updated successfully, but these errors were encountered: