apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

HTTP 500 on expired digest creds #271

Closed macosforgebot closed 15 years ago

macosforgebot commented 15 years ago

helge@… originally submitted this as ticket:340


192.168.0.111 - - [02/Jul/2009:14:49:24 +0200] "GET /calendars/users/user01/764828A8-FEE7-4ED7-AF1F-3A043504BBBC/z1-event-20090702-123008-018-0.ics HTTP/1.1" 500 201 "-" "cadaver/0.23.2 neon/0.27.2" i=8009 t=363.6 or=1

2009-07-02 14:49:23+0200 [-] [caldav-8009]  [AMP,client] [twistedcaldav.extensions#info] GET /calendars/users/user01/764828A8-FEE7-4ED7-AF1F-3A043504BBBC/z1-event-20090702-123008-018-0.ics HTTP/1.1
2009-07-02 14:49:23+0200 [-] [caldav-8009]  [PooledMemCacheProtocol,client] Exception rendering:
2009-07-02 14:49:24+0200 [-] [caldav-8009]  [PooledMemCacheProtocol,client] Unhandled Error
2009-07-02 14:49:24+0200 [-] [caldav-8009]  Traceback (most recent call last):
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 267, in errback
2009-07-02 14:49:24+0200 [-] [caldav-8009]      self._startRunCallbacks(fail)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 310, in _startRunCallbacks
2009-07-02 14:49:24+0200 [-] [caldav-8009]      self._runCallbacks()
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 326, in _runCallbacks
2009-07-02 14:49:24+0200 [-] [caldav-8009]      self.result = callback(self.result, *args, **kw)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 769, in gotResult
2009-07-02 14:49:24+0200 [-] [caldav-8009]      _inlineCallbacks(r, g, deferred)
2009-07-02 14:49:24+0200 [-] [caldav-8009]  --- <exception caught here> ---
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 747, in _inlineCallbacks
2009-07-02 14:49:24+0200 [-] [caldav-8009]      result = result.throwExceptionIntoGenerator(g)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2009-07-02 14:49:24+0200 [-] [caldav-8009]      return g.throw(self.type, self.value, self.tb)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/CalendarServer/twistedcaldav/method/get.py", line 65, in http_GET
2009-07-02 14:49:24+0200 [-] [caldav-8009]      response = (yield super(CalDAVFile, self).http_GET(request))
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 747, in _inlineCallbacks
2009-07-02 14:49:24+0200 [-] [caldav-8009]      result = result.throwExceptionIntoGenerator(g)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2009-07-02 14:49:24+0200 [-] [caldav-8009]      return g.throw(self.type, self.value, self.tb)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/CalendarServer/twistedcaldav/extensions.py", line 144, in authenticate
2009-07-02 14:49:24+0200 [-] [caldav-8009]      creds = (yield factory.decode(authHeader[1], request))
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 747, in _inlineCallbacks
2009-07-02 14:49:24+0200 [-] [caldav-8009]      result = result.throwExceptionIntoGenerator(g)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2009-07-02 14:49:24+0200 [-] [caldav-8009]      return g.throw(self.type, self.value, self.tb)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/CalendarServer/twistedcaldav/directory/digest.py", line 229, in decode
2009-07-02 14:49:24+0200 [-] [caldav-8009]      result = (yield self._validate(auth, request))
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/Twisted/twisted/internet/defer.py", line 749, in _inlineCallbacks
2009-07-02 14:49:24+0200 [-] [caldav-8009]      result = g.send(result)
2009-07-02 14:49:24+0200 [-] [caldav-8009]    File "/Users/helge/Developer/Collaboration/CalendarServer/twistedcaldav/directory/digest.py", line 310, in _validate
2009-07-02 14:49:24+0200 [-] [caldav-8009]      raise error.LoginFailed('Digest credentials expired')
2009-07-02 14:49:24+0200 [-] [caldav-8009]  twisted.cred.error.LoginFailed: Digest credentials expired
macosforgebot commented 15 years ago

@wsanchez originally submitted this as comment:1:⁠ticket:340

macosforgebot commented 15 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:340


I assume this is trunk. Wonder why we aren't seeing this on our test server. Client is ZideOne?

macosforgebot commented 15 years ago

helge@… originally submitted this as comment:3:⁠ticket:340


Yes, trunk of today.

Client is "cadaver/0.23.2 neon/0.27.2" on MacOS, see the access log.

macosforgebot commented 15 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:340


Morgen, does this look familiar?

macosforgebot commented 15 years ago

@m0rgen originally submitted this as comment:5:⁠ticket:340


Yes, this is fixed already -- you just need to blow away your Twisted directory and re-run ./run -s so that our patch is applied.

macosforgebot commented 15 years ago

@wsanchez originally submitted this as comment:6:⁠ticket:340


OK. Or try ./run -fs.