{"record":{"id":"6172dcd8b1e1cbe9","repo":"hyperledger/fabric","slug":"failed-parsing-proposal","errorCode":null,"errorMessage":"failed parsing proposal","messagePattern":"failed parsing proposal","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/handlers/auth/filter/expiration.go","lineNumber":37,"sourceCode":"\n// NewExpirationCheckFilter creates a new Filter that checks identity expiration\nfunc NewExpirationCheckFilter() auth.Filter {\n\treturn &expirationCheckFilter{}\n}\n\ntype expirationCheckFilter struct {\n\tnext peer.EndorserServer\n}\n\n// Init initializes the Filter with the next EndorserServer\nfunc (f *expirationCheckFilter) Init(next peer.EndorserServer) {\n\tf.next = next\n}\n\nfunc validateProposal(signedProp *peer.SignedProposal) error {\n\tprop, err := protoutil.UnmarshalProposal(signedProp.ProposalBytes)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"failed parsing proposal\")\n\t}\n\n\thdr, err := protoutil.UnmarshalHeader(prop.Header)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"failed parsing header\")\n\t}\n\n\tsh, err := protoutil.UnmarshalSignatureHeader(hdr.SignatureHeader)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"failed parsing signature header\")\n\t}\n\texpirationTime := crypto.ExpiresAt(sh.Creator)\n\tif !expirationTime.IsZero() && time.Now().After(expirationTime) {\n\t\treturn errors.New(\"proposal client identity expired\")\n\t}\n\treturn nil\n}\n","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/core/handlers/auth/filter/expiration.go#L19-L55","documentation":"The expiration-check auth filter could not unmarshal the SignedProposal's ProposalBytes into a Proposal proto — the proposal payload is malformed or truncated, so expiration checking cannot proceed and the request is rejected.","triggerScenarios":"Thrown at core/handlers/auth/filter/expiration.go:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the client SDK constructs a well-formed signed proposal","Reject the client request; the proposal bytes are not a valid Proposal message"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2736b63f8fd5932511d56fe68b7039d15977f7f6","analyzedAt":"2026-09-04T08:52:36.465Z","contentChangedAt":"2026-09-04T08:52:36.465Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}