[PHPBB3-15347] Password updater in cron generates invalid postgres SQL Created: 04/Sep/17  Updated: 08/Sep/17  Resolved: 08/Sep/17

Status: Closed
Project: phpBB3
Component/s: Cron
Affects Version/s: 3.1.11, 3.2.1
Fix Version/s: 3.1.12-RC1, 3.2.2-RC1

Type: Bug Priority: Blocker
Reporter: canonknipser Assignee: Marc
Resolution: Fixed Votes: 0
Labels: update-script


 Description   

SQL generated in https://github.com/phpbb/phpbb/blob/master/phpBB/phpbb/cron/task/core/update_hashes.php#L114-L116 does not follow postgres coding standards.

Postgres needs single quotes around strings; the mentioned statement generates double quotes giving following error message:

ERROR:  column "$H\2y$9TE61ADb5$10\mGuVQ7ixG0zjLxLuslrIOO$QfJA4iz7ouOvtdnduI5Cr" does not exist at character 45
STATEMENT:  UPDATE phpbb_users
                   SET user_password = "$H\2y$9TE61ADb5$10\mGuVQ7ixG0zjLxLuslrIOO$QfJA4iz7ouOvtdnduI5Cr.YLV6oUNUO"
                   WHERE user_id = 56

See discussion on german support board: https://www.phpbb.de/community/viewtopic.php?f=145&t=240166



 Comments   
Comment by canonknipser [ 05/Sep/17 ]

Same error in the CLI routine /console/command/fixup/update_hashes.php

Generated at Fri Oct 19 10:00:23 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.