)]}'
{"barbican/api/controllers/__init__.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"153c4c7017b9ea03dc7469356f676a9eef0ea322","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            \"Unexpected content type: {type}.  Expected content types \""},{"line_number":125,"context_line":"            \"are: {expected}\""},{"line_number":126,"context_line":"        ).format("},{"line_number":127,"context_line":"            type\u003dpecan_req.content_type.decode(\u0027utf-8\u0027),"},{"line_number":128,"context_line":"            expected\u003dvalid_content_types"},{"line_number":129,"context_line":"        )"},{"line_number":130,"context_line":"        pecan.abort(415, m)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_fc2cbf4c","line":127,"updated":"2015-03-23 18:58:15.000000000","message":"Should we even try to print the input content type? What if the user inputs a string of bytes that cannot be decoded by utf-8?\n\nI wonder if we should not print the input type. Just say what was expected.","commit_id":"650912655b65e3263ed8e774a2271b95923bfa15"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"47b8b50635c7788525490c98b6dfaa30e6e64024","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            \"Unexpected content type: {type}.  Expected content types \""},{"line_number":125,"context_line":"            \"are: {expected}\""},{"line_number":126,"context_line":"        ).format("},{"line_number":127,"context_line":"            type\u003dpecan_req.content_type.decode(\u0027utf-8\u0027),"},{"line_number":128,"context_line":"            expected\u003dvalid_content_types"},{"line_number":129,"context_line":"        )"},{"line_number":130,"context_line":"        pecan.abort(415, m)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a6ced46_733abace","line":127,"updated":"2015-03-23 21:00:51.000000000","message":"Did you see my earlier comment? What if the content cannot be decoded using utf-8? Then we are stuck with the same bug. It seems like not printing it would be the safest.","commit_id":"a725605b033a497e1ac9634d42910727a2a9f769"},{"author":{"_account_id":15356,"name":"Everardo Padilla Saca","email":"everardo.padilla.saca@ericsson.com","username":"epadillas"},"change_message_id":"57a4f11c653106bfd2f6981a374e8e9326ad824c","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            \"Unexpected content type: {type}.  Expected content types \""},{"line_number":125,"context_line":"            \"are: {expected}\""},{"line_number":126,"context_line":"        ).format("},{"line_number":127,"context_line":"            type\u003dpecan_req.content_type.decode(\u0027utf-8\u0027),"},{"line_number":128,"context_line":"            expected\u003dvalid_content_types"},{"line_number":129,"context_line":"        )"},{"line_number":130,"context_line":"        pecan.abort(415, m)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a6ced46_b6c5fb5c","line":127,"in_reply_to":"1a6ced46_733abace","updated":"2015-03-24 00:11:32.000000000","message":"Yes, sorry, I\u0027m just getting hold of gerrit\u0027s comment flow. I\u0027ve posted a reply in this commit\u0027s main page.","commit_id":"a725605b033a497e1ac9634d42910727a2a9f769"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"4550d8a5eb1f3cf48c5d540f50ca497cfd06add6","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            \"Unexpected content type: {type}.  Expected content types \""},{"line_number":125,"context_line":"            \"are: {expected}\""},{"line_number":126,"context_line":"        ).format("},{"line_number":127,"context_line":"            type\u003dpecan_req.content_type.decode(\u0027utf-8\u0027),"},{"line_number":128,"context_line":"            expected\u003dvalid_content_types"},{"line_number":129,"context_line":"        )"},{"line_number":130,"context_line":"        pecan.abort(415, m)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a6ced46_edb0748d","line":127,"in_reply_to":"1a6ced46_b6c5fb5c","updated":"2015-03-24 11:02:44.000000000","message":"This is an example that shows a byte string that cannot be decoded.\n\n\u003e\u003e\u003e foo \u003d b\u0027\\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\u0027\n\u003e\u003e\u003e import base64\n\u003e\u003e\u003e bar \u003d base64.b64decode(foo)\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py\", line 76, in b64decode\n    raise TypeError(msg)\nTypeError: Incorrect padding","commit_id":"a725605b033a497e1ac9634d42910727a2a9f769"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"04d06cb87a04b3e4a82edda81ec9d410681b0fbb","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            \"Unexpected content type: {type}.  Expected content types \""},{"line_number":125,"context_line":"            \"are: {expected}\""},{"line_number":126,"context_line":"        ).format("},{"line_number":127,"context_line":"            type\u003dpecan_req.content_type.decode(\u0027utf-8\u0027),"},{"line_number":128,"context_line":"            expected\u003dvalid_content_types"},{"line_number":129,"context_line":"        )"},{"line_number":130,"context_line":"        pecan.abort(415, m)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a6ced46_37be4ed5","line":127,"in_reply_to":"1a6ced46_edb0748d","updated":"2015-03-24 14:36:00.000000000","message":"I\u0027d be up for not printing it at all...so just leaving the {expected} output there.","commit_id":"a725605b033a497e1ac9634d42910727a2a9f769"}]}
