Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentification fails when photo has a name too long #58

Closed
CamiAndrei opened this issue Nov 24, 2020 · 2 comments
Closed

Authentification fails when photo has a name too long #58

CamiAndrei opened this issue Nov 24, 2020 · 2 comments
Assignees
Milestone

Comments

@CamiAndrei
Copy link

CamiAndrei commented Nov 24, 2020

Steps to reproduce:

  • Login with a google user ( make sure it has an attachment that it is fetched that has a longer name than 255 characters)
    Expected results:
  • The user is created
  • The login works
    Actual result:
  • The user is created
  • The login fails with:
    Erreur : Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'XWA_FILENAME' at row 1
    image

Maybe we should just ignore the image, even if could not be saved in the database the attachment could not be saved or even a rename, if that's possible.

Current workaround: Disable "User image" from the Google Apps Administration.

@polx
Copy link

polx commented Nov 24, 2020

It would be just as complex to just trim the filename...

@polx polx added this to the 2.4.8 milestone Nov 24, 2020
@polx
Copy link

polx commented Nov 25, 2020

Fixed by trimming the filename when it is imported.

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

No branches or pull requests

2 participants