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

Handle long titles #184

Open
gameame opened this issue Oct 31, 2016 · 2 comments
Open

Handle long titles #184

gameame opened this issue Oct 31, 2016 · 2 comments

Comments

@gameame
Copy link

gameame commented Oct 31, 2016

When I try to add a link with a long title, Unmark raises a database error:

A DATABASE ERROR OCCURRED

Error Number: 1406

Data too long for column 'title' at row 1

I tested this through the bookmarklet. I could't test the Chtome extension because I have a local installation and didn't find a way to customize the installation url.

You can easily test this issue on most GitHub repos (eg https://github.com/Kickball/awesome-selfhosted) because it appears that GitHub puts also the description of the repo in the title.

It would be nice if Umark could automatically truncate long titles.

@cdevroe
Copy link
Owner

cdevroe commented Apr 29, 2017

@gameame Agreed. Rolling this into 1.8.1 to have as an adjustment.

@cdevroe cdevroe added this to the 1.8.1 milestone Apr 29, 2017
@cdevroe cdevroe added the bug label Apr 29, 2017
@duman
Copy link

duman commented Oct 30, 2018

I had the same error popped up on the bookmarklet today. I didn't test the side effects, but it seems to be working for now.

Edit your database and change marks -> title -> varchar(150) to varchar(500) or something higher.
This will allow 500 character long titles to be added. Programmatically title parameter can be checked and if it exceeds 150 characters can be cropped down to 150.

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

3 participants