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

Cannot edit prefixes or ip addresses #140

Closed
mhmsh opened this issue Jun 30, 2016 · 10 comments
Closed

Cannot edit prefixes or ip addresses #140

mhmsh opened this issue Jun 30, 2016 · 10 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@mhmsh
Copy link

mhmsh commented Jun 30, 2016

I get server error whenever i try to edit a prefix or ip address. Im running the lastest version upgraded from a 1.0.0. Error was also present in v1.0.0

@mhmsh
Copy link
Author

mhmsh commented Jun 30, 2016

Im thinking its because i accientally used a local caracter, like æøå. Could that be the reason?

@mdlayher mdlayher added the type: bug A confirmed report of unexpected behavior in the application label Jun 30, 2016
@mdlayher
Copy link
Contributor

@mhmsh can you provide the exact steps you used to make this problem occur?

@mdlayher mdlayher added awaiting reply and removed type: bug A confirmed report of unexpected behavior in the application labels Jun 30, 2016
@augustocarlson
Copy link

When I edit anything that has accentuation on it, I get the error below:

" Server Error

There was a problem with your request. This error has been logged and administrative staff have been notified. Please return to the home page and try again.
If you are responsible for this installation, please consider filing a bug report."

For example, site with the name: "São José".

@jeremystretch
Copy link
Member

I tweaked the way the status message was generated upon creating/editing an object in 2829303. I'm now able to create, edit, and delete a site named São José with no problem. Please clone the develop branch and let us know if it's still a problem.

@jeremystretch jeremystretch reopened this Jun 30, 2016
@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Jun 30, 2016
@jeremystretch
Copy link
Member

Going to close this one for now but please comment here or open a new issue if you find that this is still a problem.

@mhmsh
Copy link
Author

mhmsh commented Jul 1, 2016

Im still seeing issues with editing prefixes after changing to develop branch. Another symptom im seeing is that i cannot select a vlan when adding a prefix, the dropdown shows nothing.

UnicodeEncodeError at /ipam/prefixes/19/edit/
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Request Method: GET
Request URL: http://netdoc-01.corp.systemhosting.dk/ipam/prefixes/19/edit/
Django Version: 1.9.7
Exception Type: UnicodeEncodeError
Exception Value:
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Exception Location: /opt/netbox/netbox/ipam/models.py in display_name, line 370
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/opt/netbox/netbox/netbox',
'/opt/netbox/netbox',
'/usr/bin',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time: Fri, 1 Jul 2016 12:07:42 +0000
Unicode error hint

The string that could not be encoded/decoded was: Kunde LAN

@augustocarlson
Copy link

augustocarlson commented Jul 1, 2016

I tried to add a site it is now working.

The problem still persists with VLAN names. If I add the VLAN with accentuation in the name, I receive the error. Despite the error, the VLAN is successfully added. If I try to delete, I receive the error and the VLAN is not removed.
Using v1.0.8-dev

*update: When trying to edit an IP prefix, the error also occurs. In that case no accentuation is used.

@mhmsh
Copy link
Author

mhmsh commented Jul 7, 2016

I still have issue in 1.1.0-dev

UnicodeEncodeError at /ipam/vlans/15/
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Request Method: GET
Request URL: http://netdoc-01.corp.systemhosting.dk/ipam/vlans/15/
Django Version: 1.9.7
Exception Type: UnicodeEncodeError
Exception Value:
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Exception Location: /opt/netbox/netbox/ipam/models.py in display_name, line 370
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/opt/netbox-1.1.0-dev/netbox/netbox',
'/opt/netbox/netbox',
'/opt/netbox-1.1.0-dev/netbox',
'/usr/bin',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time: Thu, 7 Jul 2016 07:05:22 +0000

@mhmsh
Copy link
Author

mhmsh commented Jul 7, 2016

After re-populating the data it seems to be working.

Thanks

@augustocarlson
Copy link

Hi all!

I started all from scratch with v1.1.0 and it is now working fine.

Thank you!

if-fi pushed a commit to if-fi/netbox that referenced this issue Oct 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 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

4 participants