[BlueBream] Session IClientId adapter issue

Baiju M baiju.m.mail at gmail.com
Thu May 6 05:12:35 EDT 2010


Hi,
     Any idea about this issue.

I have included "zope.session" where the IClientId adapter is registered.

Here is the full traceback:

URL: http://localhost:8080/tc1
File '/mnt/a9/eggs/Paste-1.7.3-py2.6.egg/paste/evalexception/middleware.py',
line 306 in respond
  app_iter = self.application(environ, detect_start_response)
File '/mnt/a9/eggs/Paste-1.7.3-py2.6.egg/paste/translogger.py', line
68 in __call__
  return self.application(environ, replacement_start_response)
File '/mnt/a9/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py',
line 59 in __call__
  request = publish(request, handle_errors=handle_errors)
File '/mnt/a9/eggs/zope.publisher-3.12.2-py2.6.egg/zope/publisher/publish.py',
line 131 in publish
  obj = request.traverse(obj)
File '/mnt/a9/eggs/zope.publisher-3.12.2-py2.6.egg/zope/publisher/browser.py',
line 542 in traverse
  ob = super(BrowserRequest, self).traverse(obj)
File '/mnt/a9/eggs/zope.publisher-3.12.2-py2.6.egg/zope/publisher/http.py',
line 455 in traverse
  ob = super(HTTPRequest, self).traverse(obj)
File '/mnt/a9/eggs/zope.publisher-3.12.2-py2.6.egg/zope/publisher/base.py',
line 251 in traverse
  publication.callTraversalHooks(self, obj)
File '/mnt/a9/eggs/zope.app.publication-3.10.2-py2.6.egg/zope/app/publication/zopepublication.py',
line 135 in callTraversalHooks
  self._maybePlacefullyAuthenticate(request, ob)
File '/mnt/a9/eggs/zope.app.publication-3.10.2-py2.6.egg/zope/app/publication/zopepublication.py',
line 122 in _maybePlacefullyAuthenticate
  principal = auth.authenticate(request)
File '/mnt/a9/eggs/zope.pluggableauth-1.0.1-py2.6.egg/zope/pluggableauth/authentication.py',
line 61 in authenticate
  credentials = credplugin.extractCredentials(request)
File '/mnt/a9/eggs/zope.pluggableauth-1.0.1-py2.6.egg/zope/pluggableauth/plugins/session.py',
line 191 in extractCredentials
  session = ISession(request)
File '/mnt/a9/eggs/zope.component-3.9.3-py2.6.egg/zope/component/hooks.py',
line 106 in adapter_hook
  return siteinfo.adapter_hook(interface, object, name, default)
File '/mnt/a9/eggs/zope.component-3.9.3-py2.6.egg/zope/component/security.py',
line 79 in factory
  ob = original_factory(*args)
File '/mnt/a9/eggs/zope.session-3.9.2-py2.6.egg/zope/session/session.py',
line 330 in __init__
  self.client_id = str(IClientId(request))
TypeError: ('Could not adapt', <zope.publisher.browser.BrowserRequest
instance URL=http://localhost:8080/tc1>, <InterfaceClass
zope.session.interfaces.IClientId>)


CGI Variables
-------------
  CONTENT_LENGTH: '0'
  HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
  HTTP_ACCEPT_ENCODING: 'gzip,deflate'
  HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'
  HTTP_AUTHORIZATION: 'Basic bG9nb3V0OmxvZ291dA=='
  HTTP_CONNECTION: 'keep-alive'
  HTTP_HOST: 'localhost:8080'
  HTTP_KEEP_ALIVE: '115'
  HTTP_USER_AGENT: 'Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3'
  PATH_INFO: '/tc1'
  REMOTE_ADDR: '127.0.0.1'
  REQUEST_METHOD: 'GET'
  SERVER_NAME: '127.0.0.1'
  SERVER_PORT: '8080'
  SERVER_PROTOCOL: 'HTTP/1.1'


WSGI Variables
--------------
  application: <paste.translogger.TransLogger object at 0xa1f302c>
  paste.evalexception: <z3c.evalexception.ZopeEvalException object at 0xa1f31cc>
  paste.evalexception.debug_count: 1273136883
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at
0x9b4e12c>
  paste.throw_errors: True
  wsgi process: 'Multithreaded'
  wsgi.handleErrors: False

--
Baiju M


More information about the bluebream mailing list