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

IP Device info "Neighbor" tab is blank #2019

Closed
lunkwill42 opened this issue Nov 8, 2019 · 0 comments
Closed

IP Device info "Neighbor" tab is blank #2019

lunkwill42 opened this issue Nov 8, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@lunkwill42
Copy link
Member

Describe the bug

The IP Device info neighbor tab shows a blank map.

To Reproduce
Steps to reproduce the behavior:

  1. Open IP Device Info for any device (by searching for it in the NAVbar)
  2. Click on the "Neighbors' tab
  3. See blank map container.

Expected behavior

A map consisting of at least the browsed device itself, and potentially its neighbors, if NAV has discovered them. This worked just fine in NAV 4.9.

Environment (please complete the following information):

  • NAV version installed: 5.0.0

Additional context

Opening the browser's web developer tools reveals that the backend request to fetch the neighbor map is failing with a 500 error. The following traceback is logged:

Environment:


Request Method: GET
Request URL: http://localhost/ajax/open/neighbormap/4/

Django Version: 1.11.26
Python Version: 3.5.3
Installed Applications:
('nav.models',
 'nav.web',
 'nav.django',
 'django.contrib.staticfiles',
 'django.contrib.sessions',
 'django.contrib.humanize',
 'django_filters',
 'crispy_forms',
 'crispy_forms_foundation',
 'rest_framework',
 'nav.auditlog',
 'nav.web.macwatch',
 'nav.web.geomap',
 'nav.web.portadmin',
 'django.contrib.postgres')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'nav.web.auth.AuthenticationMiddleware',
 'nav.web.auth.AuthorizationMiddleware',
 'nav.django.legacy.LegacyCleanupMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')



Traceback:

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/source/python/nav/web/ajax/views.py" in get_neighbors
  124.         "links": link_candidates.values() + un_candidates.values()

Exception Type: TypeError at /ajax/open/neighbormap/4/
Exception Value: unsupported operand type(s) for +: 'dict_values' and 'dict_values'
@lunkwill42 lunkwill42 added the bug label Nov 8, 2019
@lunkwill42 lunkwill42 self-assigned this Nov 8, 2019
@lunkwill42 lunkwill42 changed the title [BUG] IP Device info "Neighbor" tab is blank IP Device info "Neighbor" tab is blank Nov 12, 2019
@lunkwill42 lunkwill42 added this to the 5.0.1 milestone Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant