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

fix(SystemTagManager): Truncate overlong tag names #36837

Merged
merged 3 commits into from
Feb 27, 2023

Conversation

marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Feb 23, 2023

Summary

The systemtag.name column has a length of 64 but the code never asserts the length of tag names. Thus without this patch you can get an exception when creating tags with long names.

Checklist

@szaimen szaimen added bug 3. to review Waiting for reviews labels Feb 24, 2023
@szaimen szaimen added this to the Nextcloud 26 milestone Feb 24, 2023
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
marcelklehr and others added 2 commits February 24, 2023 14:22
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
Copy link
Member Author

Do we backport this?

@nickvergessen nickvergessen merged commit 70a68e8 into master Feb 27, 2023
@nickvergessen nickvergessen deleted the fix/truncate-overlong-tagnames branch February 27, 2023 10:49
@nickvergessen
Copy link
Member

Do we backport this?

I guess we could as it's not breaking things that worked before?

@marcelklehr
Copy link
Member Author

Great!

@marcelklehr
Copy link
Member Author

/backport to stable25

@marcelklehr
Copy link
Member Author

/backport to stable24

@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

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

Successfully merging this pull request may close these issues.

String data, right truncated: 1406 Data too long for column 'name' at row 1
5 participants