1. 16 Sep, 2013 3 commits
  2. 15 Aug, 2013 5 commits
  3. 08 Jul, 2013 2 commits
  4. 27 Jun, 2013 3 commits
  5. 25 Jun, 2013 3 commits
  6. 23 Jun, 2013 2 commits
  7. 13 Jun, 2013 3 commits
  8. 28 May, 2013 6 commits
    • Guido Günther's avatar
      Set Content-Length header on succesful OPTIONS · 2454527c
      Guido Günther authored
      Otherwise intially displaying the calendar takes
      CollectionHTTPHandler.timeout seconds in Sunbird/Lightning/Iceowl since
      it has to wait for the socket to close.
      2454527c
    • Guido Günther's avatar
      Set Content-Length header on succesful PUT · 637cb70c
      Guido Günther authored
      Otherwise new items need CollectionHTTPHandler.timeout seconds to
      display in Sunbird/Lightning/Iceowl since it has to wait for the socket
      to close.
      637cb70c
    • Guido Günther's avatar
      Set Content-Length header when authentication is required · c452d635
      Guido Günther authored
      otherwise clients might wait for the socket timeout (as e.g. curl does).
      c452d635
    • Guido Günther's avatar
      Make sure self._answer is available · 809839ef
      Guido Günther authored
      Otherwise we might end up referencing self._answer in do_GET
      when we caught an exception early in do_HEAD:
      
      127.0.0.1 - - [24/May/2013 15:12:56] "GET /asfd/ HTTP/1.1" 400 -
      ----------------------------------------
      Exception happened during processing of request from ('127.0.0.1', 45386)
      Traceback (most recent call last):
        File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
          self.process_request(request, client_address)
        File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
          self.finish_request(request, client_address)
        File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
          self.RequestHandlerClass(request, client_address, self)
        File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__ self.handle()
        File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
          self.handle_one_request()
        File "/var/scratch/debian/calypso/calypso/calypso/__init__.py", line 169, in handle_one_request
          method()
        File "/var/scratch/debian/calypso/calypso/calypso/__init__.py", line 131, in <lambda>
          check_rights = lambda function: lambda request: _check(request, function)
        File "/var/scratch/debian/calypso/calypso/calypso/__init__.py", line 86, in _check
          function(request, context={"user": user, "user-agent": request.headers.get("User-Agent", None)})
        File "/var/scratch/debian/calypso/calypso/calypso/__init__.py", line 225, in do_GET
          if self._answer:
      AttributeError: CollectionHTTPHandler instance has no attribute '_answer'
      ----------------------------------------
      
      Use an empty string instead of None since len() work on the former so we
      can compute the Content-Length
      
      fixup! Make sure self._answer is available
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      809839ef
    • Guido Günther's avatar
      Check for self._collection too · 66638a03
      Guido Günther authored
      since we use it for get_item. This avoids
      
      Failed HEAD for /asfd/
      Traceback (most recent call last):
        File "/var/scratch/debian/calypso/calypso/calypso/__init__.py", line 236, in do_HEAD
          item = self._collection.get_item(item_name)
      AttributeError: 'NoneType' object has no attribute 'get_item'
      
      and we return 404 instead of 400.
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      66638a03
    • Guido Günther's avatar
      Print the path that failed · 0e82f9e8
      Guido Günther authored
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      0e82f9e8
  9. 21 May, 2013 1 commit
  10. 08 May, 2013 4 commits
  11. 10 Apr, 2013 2 commits
  12. 06 Feb, 2013 2 commits
  13. 04 Feb, 2013 1 commit
  14. 31 Jul, 2012 3 commits