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

OverflowError when searching for IPv6 prefix in the navbar #1476

Closed
lunkwill42 opened this issue Mar 10, 2017 · 0 comments
Closed

OverflowError when searching for IPv6 prefix in the navbar #1476

lunkwill42 opened this issue Mar 10, 2017 · 0 comments
Assignees
Milestone

Comments

@lunkwill42
Copy link
Member

If I attempt to search for an IPv6 prefix, like fe80::/64, in the navbar, the result is a crashpage with an OverflowError. Traceback as follows:

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/source/python/nav/web/info/views.py" in index
  45.             searchproviders = process_form(form)
File "/source/python/nav/web/info/views.py" in process_form
  67.                        providers.NetboxSearchProvider(query),
File "/source/python/nav/web/info/searchproviders.py" in __init__
  51.         self.fetch_results()
File "/source/python/nav/web/info/searchproviders.py" in fetch_results
  84.         if is_valid_ip(self.query):
File "/source/python/nav/util.py" in is_valid_ip
  74.         return _is_valid_ip_ipy(ip)
File "/source/python/nav/util.py" in _is_valid_ip_ipy
  101.             if len(valid_ip) == 1:

Exception Type: OverflowError at /search/
Exception Value: long int too large to convert to int
@lunkwill42 lunkwill42 added this to the 4.6.2 milestone Mar 10, 2017
@lunkwill42 lunkwill42 self-assigned this Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant