)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"90121c54fd0d5fc8648829e39ab10e5f864ebc41","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Adds improved error code handling for pkcs11 errors returned from HSM."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The error returned by HSM is currently formated in decimal where as the actual pkcs11 error codes are hexidecimal. This change utilizes a dictionary of both the hexidecimal and string representation of the decimal to make errors easier to be researched and corrected."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: I85b28e7ff28773d849b5ea71de3ef26d972de59d"},{"line_number":12,"context_line":"Closes-Bug: #1445610"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"dac4157f_f55bd8f4","line":9,"updated":"2015-04-21 09:28:08.000000000","message":"please refer to the following documentation on how to format your commit messages:\n\nhttp://docs.openstack.org/infra/manual/developers.html#committing-a-change\nhttps://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"33d79ac45b83fa518bdd7297f9316f067c46cbe9"}],"barbican/plugin/crypto/p11_crypto.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"f4820921e01e14c2c06f3e651fe8d7a7306b2092","unresolved":false,"context_lines":[{"line_number":411,"context_line":"    def _check_error(self, value):"},{"line_number":412,"context_line":"        if value !\u003d CKR_OK:"},{"line_number":413,"context_line":"            code \u003d ERROR_CODES.get(value,\u0027CKR_????\u0027)"},{"line_number":414,"context_line":"            print("},{"line_number":415,"context_line":"                \"HSM returned response code: {0} {1}\".format(hex(value),code)"},{"line_number":416,"context_line":"            )"},{"line_number":417,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"dac4157f_e688e224","line":414,"updated":"2015-04-20 20:43:30.000000000","message":"Ha, close, but please restore the raise exception here.","commit_id":"06d1a7144969dbf1a3505937b56705db5705b426"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5a64ee29a26a94445ad56c01ae0690d6b19dcdb0","unresolved":false,"context_lines":[{"line_number":412,"context_line":"        if value !\u003d CKR_OK:"},{"line_number":413,"context_line":"            code \u003d ERROR_CODES.get(value, \u0027CKR_????\u0027)"},{"line_number":414,"context_line":"            raise P11CryptoPluginException("},{"line_number":415,"context_line":"                \"HSM returned response code: {0} {1}\".format(hex(value), code)"},{"line_number":416,"context_line":"            )"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"    def _build_attributes(self, attrs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"dac4157f_9709522f","line":415,"updated":"2015-04-20 22:04:35.000000000","message":"You mentioned putting in a future CR to convert this to a localized message, so I\u0027m ok with this one then.","commit_id":"33d79ac45b83fa518bdd7297f9316f067c46cbe9"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"90121c54fd0d5fc8648829e39ab10e5f864ebc41","unresolved":false,"context_lines":[{"line_number":412,"context_line":"        if value !\u003d CKR_OK:"},{"line_number":413,"context_line":"            code \u003d ERROR_CODES.get(value, \u0027CKR_????\u0027)"},{"line_number":414,"context_line":"            raise P11CryptoPluginException("},{"line_number":415,"context_line":"                \"HSM returned response code: {0} {1}\".format(hex(value), code)"},{"line_number":416,"context_line":"            )"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"    def _build_attributes(self, attrs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"dac4157f_d5d21400","line":415,"in_reply_to":"dac4157f_9709522f","updated":"2015-04-21 09:28:08.000000000","message":"Well, I do think some localization would be appropriate here. But it\u0027s not a big deal to add. Here\u0027s an example on how to do it: https://github.com/openstack/barbican/blob/master/barbican/model/repositories.py#L1990\n\nand if you want to know a little bit more about it, here\u0027s a relevant link: http://docs.openstack.org/developer/oslo.i18n/usage.html","commit_id":"33d79ac45b83fa518bdd7297f9316f067c46cbe9"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"3a3d1c7516da93826a7619c6d5676e5454fd801b","unresolved":false,"context_lines":[{"line_number":411,"context_line":"            raise P11CryptoPluginException(u._("},{"line_number":412,"context_line":"                \"HSM returned response code: {hex_value} {code}\").format("},{"line_number":413,"context_line":"                    code\u003dERROR_CODES.get(value, \u0027CKR_????\u0027),"},{"line_number":414,"context_line":"                    hex_value\u003dhex(value))"},{"line_number":415,"context_line":"            )"},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    def _build_attributes(self, attrs):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bab921fb_825b7b54","line":414,"updated":"2015-04-22 21:21:16.000000000","message":"Nit: can you reorder the arguments to format so that they match the order they are declared in the string?","commit_id":"eb4c6076885c59bafe9c8a3874564b5fd6910fe1"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"066f3fe3e8315ab9b9fa3fca4bf06d514c7d7319","unresolved":false,"context_lines":[{"line_number":127,"context_line":"VENDOR_SAFENET_CKM_AES_GCM \u003d 0x8000011c"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"ERROR_CODES \u003d {"},{"line_number":130,"context_line":"    0: \u0027CKR_OK\u0027,"},{"line_number":131,"context_line":"    1: \u0027CKR_CANCEL\u0027,"},{"line_number":132,"context_line":"    2: \u0027CKR_HOST_MEMORY\u0027,"},{"line_number":133,"context_line":"    3: \u0027CKR_SLOT_ID_INVALID\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"bab921fb_0642a610","line":130,"updated":"2015-04-23 23:04:45.000000000","message":"small thing: CKR_OK is not needed here because it\u0027s already defined on line 32, it\u0027s not error, and the check that \"if value !\u003d CKR_OK:\" in line 410 ensures that 0 will never be used","commit_id":"c52831b07a96030a5f56c5d22383055d0babd009"}]}
