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

Server error when adding a device bay with a name that is too long #1158

Closed
olfway opened this issue May 10, 2017 · 0 comments
Closed

Server error when adding a device bay with a name that is too long #1158

olfway opened this issue May 10, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@olfway
Copy link

olfway commented May 10, 2017

Issue type: bug report

Python version: 2.7.13
NetBox version: 2.0.1

I'm trying to add device bay template to device type and got exception:

URL: /dcim/device-types/1/device-bays/add/
Exception Type:	ValueError
Exception Value:	
'DeviceBayTemplateCreateForm' has no field named 'name'.
Exception Location:	/usr/local/lib/python2.7/site-packages/django/forms/forms.py in add_error, line 352

Actual error was too long device bay name: ValidationError([u'Ensure this value has at most 30 characters (it has 36).'])
but then it was addeed to non-existed "name" field, right field probably is "name_pattern"

@jeremystretch jeremystretch changed the title Exception on Server error when adding a device bay with a name that is too long May 10, 2017
@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label May 10, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants