-
Notifications
You must be signed in to change notification settings - Fork 2.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
Replication fields broken in custom validation #11032
Comments
Another side-effect of that change is that creating a duplicate interface (device or vm) fails silently instead of showing the form validation error. Before v3.3.3 it showed the also sub-optimal "This field is required" form validation error. I'm guessing there's some order issues with how validation is executed. Complete replication steps for posterity:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
NetBox version
v3.3.8
Python version
3.9
Steps to Reproduce
After updating NetBox 3.2.x to 3.3.8 the custom validation logic that used to work is now broken.
VMInterface
model try to validate fieldname
.Expected Behavior
The custom validator should have access to
name
field.Observed Behavior
The
name
field is always empty when creating a new object and the custom validation logic fails.As per #11031 this is apparently due to "replication fields (think interface name expansion) was refactored in that PR and seems to have caused the name field to be blank at the time of validation", possibly due to #10312.
The text was updated successfully, but these errors were encountered: