Ticket #8 (closed Defect: Fixed)
Anonymous instance has no attribute 'checkPeer'
| Reported by: | rcartas | Owned by: | Mircea Amarascu |
|---|---|---|---|
| Priority: | Major | Milestone: | Stabilize dependencies |
| Component: | XCAP protocol | Version: | Release 1.0 |
| Severity: | Non-critical | Keywords: | |
| Cc: |
Description
I have installed openxcap with twisted sources from svn. Everything seems to run until I try to make a query. Whenever I try http://xcap:8000/xcap-root/pres-rules/users/sip:1000@klejbors.informatik.rwth-aachen.de/presence_rules.xml, with the user registered in the database I get the following exception:
[HTTPChannel,2,127.0.0.1] Exception rendering: [HTTPChannel,2,127.0.0.1] Traceback (most recent call last): [HTTPChannel,2,127.0.0.1] File "/usr/local/lib/python2.5/site-packages/xcap/authentication.py", line 190, in renderHTTP [HTTPChannel,2,127.0.0.1] d = self.authenticate(request) [HTTPChannel,2,127.0.0.1] File "/usr/local/lib/python2.5/site-packages/xcap/authentication.py", line 127, in authenticate [HTTPChannel,2,127.0.0.1] return HTTPAuthResource.authenticate(self, request) [HTTPChannel,2,127.0.0.1] File "/usr/local/lib/python2.5/site-packages/twisted/web2/auth/wrapper.py", line 169, in authenticate [HTTPChannel,2,127.0.0.1] *self.interfaces [HTTPChannel,2,127.0.0.1] File "/usr/local/lib/python2.5/site-packages/twisted/cred/portal.py", line 114, in login [HTTPChannel,2,127.0.0.1] return maybeDeferred(self.checkers[i].requestAvatarId, credentials [HTTPChannel,2,127.0.0.1] --- <exception caught here> --- [HTTPChannel,2,127.0.0.1] File "/usr/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 107, in maybeDeferred [HTTPChannel,2,127.0.0.1] result = f(*args, **kw) [HTTPChannel,2,127.0.0.1] File "/usr/local/lib/python2.5/site-packages/xcap/authentication.py", line 62, in requestAvatarId [HTTPChannel,2,127.0.0.1] if credentials.checkPeer(self.trusted_peers): [HTTPChannel,2,127.0.0.1] exceptions.AttributeError: Anonymous instance has no attribute 'checkPeer'
Is there any dependence I might be missing?
Regards,
Rodolfo
