server icon indicating copy to clipboard operation
server copied to clipboard

Statement.php change breaks oc_authtoken insertion

Open justin-sleep opened this issue 10 years ago • 0 comments

Steps to reproduce

  1. Use Nextcloud server after 9b808c4
  2. Try to log in on a computer without an auth token

Expected behaviour

Statement.php's "remember" value should be an integer, either a 0 or a 1 depending on whether the session should be remembered. The "remember" column of the "oc_authtokens" table contains only integers.

Actual behaviour

The remember value is either "true" or "false", not integers. A database exception occurs as a result of trying to insert the word "true" or "false" into the "remember" column.

SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "f"

Because the auth token can't be stored in the database, you can't log in.

Server configuration

Operating system: Gentoo Linux Web server: Apache Database: PostgreSQL PHP version: 7.0.13 Nextcloud version: (see Nextcloud admin page) 11.0 beta 2 Updated from an older Nextcloud/ownCloud or fresh install: Yes Where did you install Nextcloud from: Most recently, the web updater.

justin-sleep avatar Nov 30 '16 21:11 justin-sleep