Ticket #8 (closed Defect: Fixed)

Opened 4 years ago

Last modified 3 years ago

Anonymous instance has no attribute 'checkPeer'

Reported by: rcartas Owned by: Mircea Amarascu
Priority: Major Milestone: OpenXCAP 1.0.0
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

comment:1 Changed 4 years 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.

comment:2 Changed 4 years 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.

comment:3 Changed 4 years 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?

comment:4 Changed 4 years 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.

comment:5 Changed 4 years ago by tenoche

Hi,

yes, the error was fixed as in version 0.9.6.

thanks,

tenoche

comment:6 Changed 4 years ago by sthijs

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

comment:7 Changed 3 years ago by anonymous

  • Milestone Stabilize dependencies deleted

Milestone Stabilize dependencies deleted

comment:8 Changed 3 years ago by adigeo

  • Milestone set to OpenXCAP 1.0
Note: See TracTickets for help on using tickets.