{"record":{"id":"2ecd9e1f132e2d8d","repo":"AlistGo/alist","slug":"failed-to-get-destination-parent-link-w","errorCode":null,"errorMessage":"failed to get destination parent link: %w","messagePattern":"failed to get destination parent link: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":831,"sourceCode":"}\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)\n\t}\n\n\treturn reencryptedPassphrase, nil\n}\n\nfunc (d *ProtonDrive) generateNameHash(ctx context.Context, name string, parentLinkID string) (string, error) {","sourceCodeStart":813,"sourceCodeEnd":849,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L813-L849","documentation":"Error \"failed to get destination parent link: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:831 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-15T22:17:37.221Z"}