** Description changed: - This seems to be a regression introduced in the latest security update - which is causing the error + [Test case] - AttributeError: 'functools.partial' object has no attribute - '__module__' + Without the fix: + 1. Install MAAS + 2. Access the MAAS home page (http://localhost/MAAS) → the home page displays a 500 error. The log in /var/log/maas/maas.log contains the exception: http://paste.ubuntu.com/7417954/ (AttributeError: 'functools.partial' object has no attribute '__module__') - in the MAAS test suite. + With the fix: + 1. Install MAAS + 2. Access the MAAS home page (http://localhost/MAAS) → see the login home page. - Full stack trace: + [Description of the problem] - _StringException: Traceback (most recent call last): - File "/home/ed/canonical/maas/trunk/src/maasserver/tests/test_api.py", line 477, in test_internal_error_generates_proper_api_response - response = self.client.post(reverse('nodes_handler'), {'op': 'new'}) - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 528, in reverse - return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 399, in _reverse_with_prefix - self._populate() - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 286, in _populate - for name in pattern.reverse_dict: - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 311, in reverse_dict - self._populate() - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 286, in _populate - for name in pattern.reverse_dict: - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 311, in reverse_dict - self._populate() - File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 272, in _populate - lookup_str = callback.__module__ + "." + callback.__class__.__name__ - AttributeError: 'functools.partial' object has no attribute '__module__' + This was caused by a regression in python-django introduced by a recent + security update (see the bug's comment for details).
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to maas in Ubuntu. https://bugs.launchpad.net/bugs/1311433 Title: REGRESSION: AttributeError: 'functools.partial' object has no attribute '__module__' To manage notifications about this bug go to: https://bugs.launchpad.net/django/+bug/1311433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs