{"record":{"id":"b1a34d97f88f66d1","repo":"AlistGo/alist","slug":"linkid-cannot-be-empty","errorCode":null,"errorMessage":"linkID cannot be empty","messagePattern":"linkID cannot be empty","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":429,"sourceCode":"\n\treturn nameHash, nil\n}\n\nfunc (d *ProtonDrive) getOriginalNameHash(link *proton.Link) (string, error) {\n\tif link == nil {\n\t\treturn \"\", fmt.Errorf(\"link cannot be nil\")\n\t}\n\n\tif link.Hash == \"\" {\n\t\treturn \"\", fmt.Errorf(\"link hash is empty\")\n\t}\n\n\treturn link.Hash, nil\n}\n\nfunc (d *ProtonDrive) getLink(ctx context.Context, linkID string) (*proton.Link, error) {\n\tif linkID == \"\" {\n\t\treturn nil, fmt.Errorf(\"linkID cannot be empty\")\n\t}\n\n\tlink, err := d.c.GetLink(ctx, d.MainShare.ShareID, linkID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &link, nil\n}\n\nfunc (d *ProtonDrive) getLinkKR(ctx context.Context, link *proton.Link) (*crypto.KeyRing, error) {\n\tif link == nil {\n\t\treturn nil, fmt.Errorf(\"link cannot be nil\")\n\t}\n\n\t// Root Link or Root Dir\n\tif link.ParentLinkID == \"\" {\n\t\tsignatureVerificationKR, err := d.getSignatureVerificationKeyring([]string{link.SignatureEmail})","sourceCodeStart":411,"sourceCodeEnd":447,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L411-L447","documentation":"getLink was invoked with an empty linkID, a validation guard; indicates an upstream caller passed an unresolved identifier.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:429 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the referenced value is configured and non-empty, then retry the operation."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","contentChangedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}