{"record":{"id":"08b68844f00d75ce","repo":"AlistGo/alist","slug":"failed-to-get-source-parent-keyring-w","errorCode":null,"errorMessage":"failed to get source parent keyring: %w","messagePattern":"failed to get source parent keyring: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":825,"sourceCode":"\treturn &model.Object{\n\t\tName:     srcObj.GetName(),\n\t\tSize:     srcObj.GetSize(),\n\t\tModified: srcObj.ModTime(),\n\t\tIsFolder: srcObj.IsDir(),\n\t}, nil\n}\n\nfunc (d *ProtonDrive) reencryptNodePassphrase(ctx context.Context, srcLink *proton.Link, dstParentLinkID string) (string, error) {\n\t// Get source parent link with metadata\n\tsrcParentLink, err := d.getLink(ctx, srcLink.ParentLinkID)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get source parent link: %w\", err)\n\t}\n\n\t// Get source parent keyring using link object\n\tsrcParentKR, err := d.getLinkKR(ctx, srcParentLink)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get source parent keyring: %w\", err)\n\t}\n\n\t// Get destination parent link with metadata\n\tdstParentLink, err := d.getLink(ctx, dstParentLinkID)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get destination parent link: %w\", err)\n\t}\n\n\t// Get destination parent keyring using link object\n\tdstParentKR, err := d.getLinkKR(ctx, dstParentLink)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get destination parent keyring: %w\", err)\n\t}\n\n\t// Re-encrypt the node passphrase from source parent context to destination parent context\n\treencryptedPassphrase, err := reencryptKeyPacket(srcParentKR, dstParentKR, d.DefaultAddrKR, srcLink.NodePassphrase)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to re-encrypt key packet: %w\", err)","sourceCodeStart":807,"sourceCodeEnd":843,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L807-L843","documentation":"Error \"failed to get source parent keyring: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:825 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}