-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-5361] Properly return FORBIDDEN on broadcast
For messages which fail signature verification, the orderer currently returns BAD_REQUEST, as it is registered simply as an error in processing the message. However, this is very poor from a serviceability perspective, and a more precise status should be returned when possible. This CR creates a new error type in the message processor which may be returned for signature validation failures. This CR also allows the broadcast error processing to use the errors package to retrieve the cause of an error, so that additional descriptive information beyond the basic error definition may be included as well. Change-Id: I7c02ca1b456bb4c052492b7979c0e75954f2b75a Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
- Loading branch information
Jason Yellick
committed
Aug 4, 2017
1 parent
cc5ca30
commit 1e4a71c
Showing
5 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters