[CalendarServer-users] iMiP inbox authentication? iMiP broken in recent svn versions

Markus Stürmer markus.stuermer at informatik.uni-erlangen.de
Fri May 22 04:34:28 PDT 2009


For the recent trunk version, I get the following error when trying to  
invite attendees via iMiP:

2009-05-22 13:23:25+0200 [-] [mailgateway] 2009-05-22 13:23:25+0200  
[HTTPChannel,1,127.0.0.1] [twistedcaldav.extensions#info] POST /inbox  
HTTP/1.0
2009-05-22 13:23:25+0200 [-] [mailgateway] 2009-05-22 13:23:25+0200  
[PooledMemCacheProtocol,client] Exception rendering:
2009-05-22 13:23:25+0200 [-] [mailgateway] 2009-05-22 13:23:25+0200  
[PooledMemCacheProtocol,client] Unhandled Error
2009-05-22 13:23:25+0200 [-] [mailgateway] 	Traceback (most recent  
call last):
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
261, in errback
2009-05-22 13:23:25+0200 [-] [mailgateway] 	     
self._startRunCallbacks(fail)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
304, in _startRunCallbacks
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    self._runCallbacks()
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
317, in _runCallbacks
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    self.result =  
callback(self.result, *args, **kw)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
746, in gotResult
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    _inlineCallbacks(r, g,  
deferred)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	--- <exception caught  
here> ---
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
724, in _inlineCallbacks
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    result =  
g.throw(result.type, result.value, result.tb)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/CalendarServer/twistedcaldav/mail.py",  
line 326, in http_POST
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    yield  
self.authorize(request, (caldavxml.ScheduleDeliver(),))
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
724, in _inlineCallbacks
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    result =  
g.throw(result.type, result.value, result.tb)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/web2/dav/resource.py",  
line 654, in authorize
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    yield  
self.authenticate(request)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
724, in _inlineCallbacks
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    result =  
g.throw(result.type, result.value, result.tb)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/CalendarServer/twistedcaldav/ 
extensions.py", line 142, in authenticate
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    creds = (yield  
factory.decode(authHeader[1], request))
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/Twisted/twisted/internet/defer.py", line  
726, in _inlineCallbacks
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    result = g.send(result)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	  File "/srv/ 
CalendarServer/vdisk/testing/CalendarServer/twistedcaldav/directory/ 
digest.py", line 235, in decode
2009-05-22 13:23:25+0200 [-] [mailgateway] 	    request.originalMethod  
if hasattr(request, "originalMethod") else None)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	exceptions.TypeError:  
__init__() takes exactly 5 arguments (6 given)
2009-05-22 13:23:25+0200 [-] [mailgateway] 	
2009-05-22 13:23:25+0200 [-] [caldav-8081]   
[AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.imip#error]  
Could not do server-to-imip request :  
<twistedcaldav.scheduling.imip.ScheduleViaIMip object at 0xb771d50c>  
500 Internal Server Error
2009-05-22 13:23:25+0200 [-] [caldav-8081]   
[AuthorizedHTTPGetter,client]  
[twistedcaldav.scheduling.scheduler.ScheduleResponseQueue#error] Error  
during PUT for mailto:<WHATEVER>: None

I verified that it worked with r4230, but haven't found out which  
version exactly broke it. However, the following log entry looks  
suspicious:

r4297 | sagen at apple.com | 2009-05-19 23:28:46 +0200 (Di, 19 Mai 2009)  
| 2 lines
Mail gateway's /inbox now requires authentication

Is this a bug or is just some additional configuration required? Is it  
necessary to give full access to the imip user's data using  
calendarserver_manage_principals?


Regards,
Markus


More information about the calendarserver-users mailing list