I have been working on getting the latest
Hula-store/Dragonfly running on my mail server. I have had
no luck with apache/mod_python so I am running
hula-standalone. I have a user test that works ok, so I
tried creating a user with an email address as the username
and it fails with the error below:
DEBUG: adding auth cookie: HulaAuthToken.matt example.com
----------------------------------------
Exception happened during processing of request from
('192.168.1.1', 51606)
Traceback (most recent call last):
File "/usr/local/lib/python2.5/SocketServer.py",
line 463, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python2.5/SocketServer.py",
line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python2.5/SocketServer.py",
line 521, in __init__
self.handle()
File
"/usr/local/lib/python2.5/BaseHTTPServer.py", line
316, in handle
self.handle_one_request()
File
"/usr/local/hula/libexec/hula/hula-standalone.py",
line 298, in handle_one_request
auth = hula.dragonfly.Auth.authenhandler(req)
File
"/usr/local/hula/lib/python2.5/site-packages/hula/drago
nfly/Auth.py", line 188, in authenhandler
if AcceptCredentials(req):
File
"/usr/local/hula/lib/python2.5/site-packages/hula/drago
nfly/Auth.py", line 149, in AcceptCredentials
path="/", expires=time.time()+604800)
File
"/usr/local/hula/lib/python2.5/site-packages/hula/drago
nfly/HulaCookie.py", line 12, in add_cookie_python
req.cookies_out[cookie] = value
File "/usr/local/lib/python2.5/Cookiepy", line
579, in __setitem__
self.__set(key, rval, cval)
File "/usr/local/lib/python2.5/Cookie.py", line
572, in __set
M.set(key, real_value, coded_value)
File "/usr/local/lib/python2.5/Cookie.py", line
451, in set
raise CookieError("Illegal key value: %s" %
key)
CookieError: Illegal key value: HulaAuthToken.matt example.com
----------------------------------------
I created a new user without the " "
symbol and it worked so I went and commented out lines 450
and 450 in Cookie.py to see what would happen and it let me
in! I don't know python yet, so I am not sure where in the
hula/dragonfly site-packages a change would need to be made.
Anyone?
Thanks,
--
Matt Haught
_______________________________________________
Hula-general mailing list
Hula-general forge.novell.com
http://forge.novell.com/mailman/listinfo/hula-general
|