[Yahoo-eng-team] [Bug 1270516] [NEW] XmlBodyMiddleware logic causes an unnecessary JSON to dict conversion

2014-01-18 Thread Venkat Sundaram
Public bug reported: The XmlBodyMiddleware converts request body from XML string to JSON string and passes it on to the JsonBodyMiddleware next in chain. Observe the following line in the XmlBodyMiddleware.process_request method: request.body = jsonutils.dumps( s

[Yahoo-eng-team] [Bug 1270378] [NEW] NormalizingFilter performs incorrect validation of PATH_INFO variable

2014-01-17 Thread Venkat Sundaram
Public bug reported: class NormalizingFilter(wsgi.Middleware): """Middleware filter to handle URL normalization.""" def process_request(self, request): """Normalizes URLs.""" # Removes a trailing slash from the given path, if any. if (len(request.environ['PATH_INFO