Skip to content

Server Error in a invite link on some mobile phones #250

@OliverViking

Description

@OliverViking

Describe the bug

I have a invite link with infinite uses and a expiry date of 1 day (url: invite/fFdblk). When opening it up on my iOS phone I get the "Server error" page, and the error:

{
  "code":500,
  "error_msg": "This is an unhelpful error message for a miscellaneous internal error."
}

I've tried multiple different mobile browsers on iOS, none of them work. I also have a report from one of our users saying they have the same issue on their Android phone with the Chrome browser.

Server logs:

Jan 24 16:16:45 MSCChat writefreely[2628]: ERROR: 2020/01/24 16:16:45 database.go:2278: Failed selecting invite: Error 1267: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='
Jan 24 16:16:45 MSCChat writefreely[2628]: ERROR: 2020/01/24 16:16:45 handle.go:508: [Web handler] 500: Error 1267: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='
Jan 24 16:16:45 MSCChat writefreely[2628]: 2020/01/24 16:16:45 Web internal error render
Jan 24 16:16:45 MSCChat writefreely[2628]: 2020/01/24 16:16:45 "GET /invite/fFdblk%!F(MISSING)0%!F(MISSING)%82" 500 2.979818ms "Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/21.0 Mobile/15E148 Safari/605.1.15"
Jan 24 16:16:45 MSCChat writefreely[2628]: 2020/01/24 16:16:45 http: multiple response.WriteHeader calls

Steps to reproduce (if necessary)

Steps to reproduce the behavior:

  1. Generate a invite link
  2. Open up the invite link on a mobile phone

Expected behavior

Should allow the user to sign up using the invite link

Application configuration

  • Single mode or Multi-user mode?: Multi-user mode
  • Database?: mysql
  • Open registration?: no
  • Federation enabled?: yes

Version or last commit: v0.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementProposed enhancements to current behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions