AttributeError on Alert Profiles permissions page

Bug #348853 reported by Morten Brekkevold
2
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
Morten Brekkevold

Bug Description

When attempting to look at the Alert Profiles permissions for any group, Alert Profiles crashes with a Django error (NAV 3.5.2 and trunk/default).

Here is the copy&paste output from the error:

Environment:

Request Method: GET
Request URL: https://nav.example.org/alertprofiles/permissions/3/
Django Version: 1.0.2 final
Python Version: 2.4.4
Installed Applications:
[]
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.common.CommonMiddleware')

Traceback:
File "/var/lib/python-support/python2.4/django/core/handlers/base.py" in get_response
  86. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/nav/lib/python/nav/web/alertprofiles/views.py" in permission_list
  2385. permissions = AccountGroup.objects.get(pk=group_id).filter_group_set.all()

Exception Type: AttributeError at /alertprofiles/permissions/3/
Exception Value: 'AccountGroup' object has no attribute 'filter_group_set'

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Taking a shot at this myself, need it fixed to debug another reported problem.

Changed in nav:
assignee: nobody → mvold
importance: Undecided → Medium
milestone: none → v3.5.3
status: New → Confirmed
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

A second bug surfaced as soon as the reported issue was resolved: Changes in permissions would never be saved (because of what looked like a typo), yet the web interface would display a big green message telling the user that it was saved.

Fix committed and pushed to series/3.5.x: http://metanav.uninett.no/hg/series/3.5.x/rev/783d6f2ea532

Changed in nav:
status: Confirmed → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.