[Checkins] SVN: grok/branches/faassen-rest/src/grok/ftests/rest/rest.py Some extra security checks just in case.

Martijn Faassen faassen at infrae.com
Tue Oct 16 08:44:08 EDT 2007


Log message for revision 80892:
  Some extra security checks just in case.
  

Changed:
  U   grok/branches/faassen-rest/src/grok/ftests/rest/rest.py

-=-
Modified: grok/branches/faassen-rest/src/grok/ftests/rest/rest.py
===================================================================
--- grok/branches/faassen-rest/src/grok/ftests/rest/rest.py	2007-10-16 12:43:07 UTC (rev 80891)
+++ grok/branches/faassen-rest/src/grok/ftests/rest/rest.py	2007-10-16 12:44:08 UTC (rev 80892)
@@ -231,6 +231,19 @@
   A server error occurred.
   </body></html>
   <BLANKLINE>
+
+ We shouldn't be allowed to PUT either::
+ 
+  >>> print http('PUT /app/beta HTTP/1.1')
+  HTTP/1. 500 Internal Server Error
+  Content-Length: 127
+  Content-Type: text/html;charset=utf-8
+  <BLANKLINE>
+  <html><head><title>ForbiddenAttribute</title></head>
+  <body><h2>ForbiddenAttribute</h2>
+  A server error occurred.
+  </body></html>
+  <BLANKLINE>
   
 XXX shouldn't this really give a FORBIDDEN response?
 



More information about the Checkins mailing list