This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 3 years ago

Closed 3 years ago

#1208 closed defect (fixed)

Error while creating HTTP API Key

Reported by: michalu Owned by:
Priority: low Milestone: v0.99.0
Component: Other Plugins Version: 0.99
Keywords: export, http api key Cc: michalu@…

Description

I've just installed Indico 0.99 on my server, but when I want to create HTTP API KEY for one user, I've got this error message (after clicking on 'Create API Key') button:


Error details

exception message => Object has default comparison
exception type => <type 'exceptions.TypeError?'>
traceback =>

File "/usr/local/lib/python2.6/dist-packages/indico-0.99-py2.6.egg/MaKaC/webinterface/rh/base.py", line 561, in process

res = self._process()

File "/usr/local/lib/python2.6/dist-packages/indico-0.99-py2.6.egg/MaKaC/webinterface/rh/api.py", line 44, in _process

ak.create()

File "/usr/local/lib/python2.6/dist-packages/indico-0.99-py2.6.egg/indico/web/http_api/auth.py", line 127, in create

self.newKey()

File "/usr/local/lib/python2.6/dist-packages/indico-0.99-py2.6.egg/indico/web/http_api/auth.py", line 118, in newKey

self.setKey(akh.makeKey())

File "/usr/local/lib/python2.6/dist-packages/indico-0.99-py2.6.egg/indico/web/http_api/auth.py", line 59, in setKey

akh.remove(self)

File "/usr/local/lib/python2.6/dist-packages/indico-0.99-py2.6.egg/MaKaC/common/ObjectHolders.py", line 131, in remove

if not tree.has_key( item.getId() ):

request handler => MaKaC.webinterface.rh.api.RHUserAPICreate
url => MY_SERVER_HERE/userAPI.py/create?userId=3
parameters =>
userId = 3
headers =>
REFERER: MY_SERVER_HERE/indico/userAPI.py?userId=3
ORIGIN: MY_SERVER_HERE
ACCEPT-CHARSET: ISO-8859-2,utf-8;q=0.7,*;q=0.3
USER-AGENT: Mozilla/5.0 (X11; Linux i686) AppleWebKit?/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
CONNECTION: keep-alive
COOKIE: Enabled=true; MAKACSESSION=AB7310D308730258
HOST: MY_SERVER_HERE
CACHE-CONTROL: max-age=0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4
ACCEPT-ENCODING: gzip,deflate,sdch
content-length: 0
content-type: application/x-www-form-urlencoded

I have no idea what goes wrong.

Kindly regards,
Michal.

Change History (6)

comment:1 Changed 3 years ago by jbenito

Have you run the migration script from your previous version to the new one?

comment:2 Changed 3 years ago by michalu

This is new, fresh installation of Indico on that server.

comment:3 Changed 3 years ago by arescope

Could you check your ZODB version?

run indico_shell

import ZODB
print ZODB.file

And please tell me which is the version.

comment:4 Changed 3 years ago by michalu

Thank you for your help!
This is output:

/usr/local/lib/python2.6/dist-packages/ZODB-4.0.0a4-py2.6.egg/ZODB/init.pyc

comment:5 Changed 3 years ago by arescope

You need to install another version of ZODB
first remove the folder /usr/local/lib/python2.6/dist-packages/ZODB-4.0.0a4-py2.6.egg/

and run

sudo easy_install -U ZODB==3.10.5

comment:6 Changed 3 years ago by jbenito

  • Milestone set to v0.99.0
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.