-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Property Type Alias field is missing max-length validation #18421
Comments
Hi there @danielhnelson! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Thanks for reporting @danielhnelson, and yes, a PR to |
Hi @danielhnelson, We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know. For more information about issues and states, have a look at this blog post. Thanks muchly, from your friendly Umbraco GitHub bot :-) |
…ertyTypeBasic Alias Property
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.6.0
Bug summary
When a back office user tries to save a Property Type Alias that is more that 255 characters long, they will see the following error:
This can be a problem when property names need to be particularly long, and the user has not set a specific Alias, instead letting the Alias be auto-generated.
I have fixed this issue locally by amending the Alias property on the PropertyTypeBasic Class to include a MaxLength attribute, which instead produces a specific validation warning on save.
I intend to open a PR to apply that fix soon. 😊
Specifics
I've seen this issue on an Umbraco 8.9.0 website, a 13.6.0 site and reproduced locally with the v13/contrib branch. This may not be relevant in V14+ as the PropertyTypeBasic class isn't present in that.
Steps to reproduce
Expected result / actual result
Expected Result:
Meaningful validation on the field, similar to the 'Invalid alias' warning that is shown for users who use invalid characters
Actual Result:
Exception that is large and disruptive for the user, and requires interpretation to understand what has caused the problem.
The text was updated successfully, but these errors were encountered: