Ticket #8 (closed Defect: Fixed)

Opened 14 months ago

Last modified 13 months ago

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

Change History

Changed 14 months ago by rcartas

  • status changed from new to closed
  • resolution changed from To be investigated to Fixed

The problem occurs when OpenXCAP runs on top of the latest web2 code from svn. I installed the web2 package from the apt-get repository and now it works. Does anyone know the svn revision number of the code the package is compiled against? That would be very useful as I'm running openxcap on a suse machine too.

Changed 14 months ago by sthijs

  • priority changed from Minor to Major
  • status changed from closed to reopened
  • resolution Fixed deleted

Can you specify with which version/revision of web2 it works? On the homepage of OpenXCAP, Manual Installation: "OpenXCAP requires the latest version of web2, from the SVN Trunk" But with that version we get the described error.

Changed 13 months ago by tenoche

Hey Hello,

I have the same problem. I am running openxcap on a suse machine too. Does anybody know how to overcome this problem?

Changed 13 months ago by mircea

  • status changed from reopened to closed
  • version set to Release 1.0
  • resolution set to Fixed
  • milestone set to Stabilize dependencies

Fixed as in version 0.9.6 Please test this and confirm it now works. Thank you.

Changed 13 months ago by tenoche

Hi,

yes, the error was fixed as in version 0.9.6.

thanks,

tenoche

Changed 13 months ago by sthijs

We're using version 0.9.7 now, and the error does not occur anymore.

Note: See TracTickets for help on using tickets.