'Config' object has no attribute '_load' in current

Bug #676468 reported by Gijs Molenaar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pySAML2
Fix Released
Medium
Lorenzo Gil Sanchez

Bug Description

I'm trying to get djangosaml2 to work with a simple configuration, but when I try to use it I get:

Traceback:
File "/Users/gijs/Virtualenv/filebender/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  100. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/gijs/Virtualenv/filebender/lib/python2.6/site-packages/djangosaml2/views.py" in login
  53. conf = _load_conf()
File "/Users/gijs/Virtualenv/filebender/lib/python2.6/site-packages/djangosaml2/views.py" in _load_conf
  40. conf.load(copy.deepcopy(settings.SAML_CONFIG))
File "/Users/gijs/Virtualenv/filebender/lib/python2.6/site-packages/saml2/config.py" in load
  76. self._load(config)

Exception Type: AttributeError at /saml2/login/
Exception Value: 'Config' object has no attribute '_load'

I'm using the latest version from bzr. SAML_CONFIG is set, but doesn't seem to impact something.

description: updated
Revision history for this message
Lorenzo Gil Sanchez (lgs) wrote :

djangosaml2 was out of sync with latest changes in pysaml2. A few things changed in the way the configuration was handled. Now there are two different config classes: one for the idp and one for the sp. Both classes inherits from a base abstract class, which was the only one used before.

I have adapted djangosaml2 to use the new system. Please test it and see if it works now.

Changed in pysaml2:
importance: Undecided → Medium
status: New → Fix Committed
assignee: nobody → Lorenzo Gil Sanchez (lgs)
Revision history for this message
Gijs Molenaar (gijzelaar) wrote :

this seems to have fixed the problem, thanks

Changed in pysaml2:
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.