-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Too long description of organizations breaks UI #6755
Comments
I cannot replicate this. There is actually validation in place to protect against this kind of thing. @shaoran How were you able to make a description of more than 254 characters |
@adelowo that is the repo description -- this error is about the description of an org: if you go to https://example.com/org/orgname/settings you can see. |
Damn... I haven't had enough water today :) Will take a look at it |
@adelowo no problem, we all do mistakes. To answer your question, I copied and pasted a couple of paragraphs (3 to be precise) from our company homepage, that leads to more than 255 characters. |
it looks like updating an org settings is maybe missing helper functions to check these types of things similar to what repos and org_teams have: Line 1675 in 81059a2
Line 370 in 81059a2
Updating an org uses updateUser: Lines 971 to 974 in 81059a2
But the truncating for a user happens in this BeforeUpdate: Line 156 in 81059a2
Which maybe doesn't happen for an org. I'm not totally familiar with how it all works though |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This also affects the organisation name if there are added more than 40 letters |
fix go-gitea#6755 Signed-off-by: Michael Gnehr <michael@gnehr.de>
…tion settings affects go-gitea#6755 Signed-off-by: Michael Gnehr <michael@gnehr.de>
fix #6755 Signed-off-by: Michael Gnehr <michael@gnehr.de>
@mrsdizzie JFYI: I found, that organisations are nearly the same as users, they share the same model. It's a flag, so these update functions got called. It was just a missing variable for template. |
fix go-gitea#6755 Signed-off-by: Michael Gnehr <michael@gnehr.de>
[x]
):Description
You'll get the following error:
The text field should allow max. 254 characters or the description in the database should allow more characters.
The text was updated successfully, but these errors were encountered: