Skip to content

SQL error while logging in #21

Open

Description

@pipeten

A recent issue has presented for one of our users. While logging in using their google account they receive a SQL error. The URL is

?controller=OAuthController&action=handler&plugin=GoogleAuth&state=STATE&scope=SCOPE

(SCOPE & STATE removed from URL for sec reasons)

Actual behaviour

While using the google account to login, the following error is received,

Internal Error: SQL Error[22001]: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'value' at row 1

If the page is refreshed then the following error is returned,

Internal Error: SQL Error[42000]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE id = '6'' at line 1

Expected behaviour

To login and present 2fa then view the dashboard

Steps to reproduce

Attempt to login using Google using the google auth plugin

Configuration

  • Plugin version: 1.0.8
  • Kanboard version: 1.2.26
  • Database type and version: MariaDB 10.4.13
  • PHP version: 8.1.9
  • OS: Centos 7
  • Browser: Chrome 109.0.5414.120

Activity

  1. jasonday commented on Jul 28, 2026

    @jasonday

    I had a user experience this. Gemini states:

    This Kanboard login error occurs because your MySQL/MariaDB database is running in Strict Mode, and an incoming data string (such as an OAuth payload, a massive session variable, or a long plugin setting) exceeds the character limit defined for the value column in the database.

  2. pipeten commented on Jul 28, 2026

    @pipeten
    Author

    It's been a few years and I'm unsure of the current status, but I'd consider it better to reject the insert via strict mode and stop on the error, than to write a truncated value with strict mode off and carry on silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions