{"record":{"id":"62892cb5093415ec","repo":"rustfs/rustfs","slug":"malformed-document","errorCode":"MALFORMED_DOCUMENT","errorMessage":"the offline enrollment document is not well formed","messagePattern":"the offline enrollment document is not well formed","errorType":"exception","errorClass":"EnrollmentError","httpStatus":null,"severity":"error","filePath":"rustfs/src/connect/offline/enrollment.rs","lineNumber":210,"sourceCode":"\n    #[error(\"no issued challenge matches this challengeId\")]\n    ChallengeUnknown,\n\n    #[error(\"the challenge is not yet valid at the evaluation time\")]\n    ChallengeNotYetValid,\n\n    #[error(\"the challenge has expired at the evaluation time\")]\n    ChallengeExpired,\n\n    #[error(\"the response nonce or challengeProof is not the one issued for this challenge\")]\n    ChallengeProofInvalid,\n\n    #[error(\"the response does not prove possession of the device key it presents\")]\n    DeviceProofInvalid,\n\n    #[error(\"the challenge was already consumed\")]\n    EnrollmentReplayed,\n\n    #[error(\"the response names a different organization than the challenge it answers\")]\n    OrganizationMismatch,\n\n    #[error(\"the response names a different cluster than the challenge it answers\")]\n    ClusterMismatch,\n\n    /// The artifact could not be read as a signed enrolment document at all: the\n    /// envelope, the base64 of the signed octets, or a field the frozen order\n    /// reads before the signature verifies did not parse.\n    #[error(\"the offline enrollment document is not well formed\")]\n    MalformedDocument,\n\n    /// A fault on this side of the exchange rather than in the artifact: the\n    /// device key did not round-trip through its own PKCS#8 encoding, or the\n    /// caller named an instant outside the representable calendar. Fails closed\n    /// because a half-produced response must never reach removable media.\n    #[error(\"the enrollment response could not be produced on this device\")]\n    ResponseNotProduced,","sourceCodeStart":192,"sourceCodeEnd":228,"githubUrl":"https://github.com/rustfs/rustfs/blob/5dca076efed96e7b842de07c4c2111035ae7c7a2/rustfs/src/connect/offline/enrollment.rs#L192-L228","documentation":"EnrollmentError::Malformed fires when the artifact cannot be read as a signed enrollment document at all — the envelope, the base64 of the signed octets, or a field the frozen read order touches before the signature is structurally broken.","triggerScenarios":"Thrown at rustfs/src/connect/offline/enrollment.rs:206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Regenerate or re-download the enrollment artifact","Check the file for transfer corruption (encoding, truncation, line endings)","Verify the producer emits the documented envelope format"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5dca076efed96e7b842de07c4c2111035ae7c7a2","analyzedAt":"2026-08-23T16:57:04.676Z","contentChangedAt":"2026-08-23T16:57:04.676Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}