[ckan-changes] commit/ckan: dread: [lib]: Fix problem with request.POST being mangled by looking at request.body. This problem was introduced in WebOb 1.0.8 compared with 1.0.

Bitbucket commits-noreply at bitbucket.org
Mon Jul 4 17:04:08 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/e83bad9caa1b/
changeset:   e83bad9caa1b
user:        dread
date:        2011-07-04 19:03:58
summary:     [lib]: Fix problem with request.POST being mangled by looking at request.body. This problem was introduced in WebOb 1.0.8 compared with 1.0.
affected #:  1 file (5 bytes)

--- a/ckan/lib/base.py	Mon Jul 04 09:26:52 2011 +0100
+++ b/ckan/lib/base.py	Mon Jul 04 18:03:58 2011 +0100
@@ -146,7 +146,7 @@
         '''
         cls.log.debug('Retrieving request params: %r' % request.params)
         cls.log.debug('Retrieving request POST: %r' % request.POST)
-        cls.log.debug('Retrieving request POST body: %r' % request.body)
+
         if request.POST:
             try:
                 request_data = request.POST.keys() or request.body
@@ -156,6 +156,7 @@
                 raise ValueError, msg
             request_data = request_data[0]
         elif request.body:
+            cls.log.debug('Retrieving request POST body: %r' % request.body)
             try:
                 request_data = request.body
             except Exception, inst:

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list