iMiP inbox authentication? iMiP broken in recent svn versions

View: New views
3 Messages — Rating Filter:   Alert me  

iMiP inbox authentication? iMiP broken in recent svn versions

by Markus Stürmer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... | 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
_______________________________________________
calendarserver-users mailing list
calendarserver-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users

Re: iMiP inbox authentication? iMiP broken in recent svn versions

by Cyrus Daboo-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Markus,

--On May 22, 2009 1:34:28 PM +0200 Markus Stürmer
<markus.stuermer@...> wrote:

> 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@... | 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?

Make sure you do a ./run -s - there is a new patch to Twisted that you are
missing - that run command should apply it.

--
Cyrus Daboo

_______________________________________________
calendarserver-users mailing list
calendarserver-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users

Re: iMiP inbox authentication? iMiP broken in recent svn versions

by Markus Stürmer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Cyrus!

Thank you so much, this was exactly the problem! Unfortunately, only "run -s" was not sufficient, but I had to remove  the whole Twisted directory first, so that it was retrieved and patched again.

Best regards!
Markus

Am 22.05.2009 um 16:22 schrieb Cyrus Daboo:

Hi Markus,

--On May 22, 2009 1:34:28 PM +0200 Markus Stürmer <markus.stuermer@...> wrote:

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@... | 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?

Make sure you do a ./run -s - there is a new patch to Twisted that you are missing - that run command should apply it.

--
Cyrus Daboo




_______________________________________________
calendarserver-users mailing list
calendarserver-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users