fix(weiyun): bump weiyun-sdk-go to v0.1.4 to fix nil pointer panic on mount#9561
Open
okatu-loli wants to merge 1 commit into
Open
fix(weiyun): bump weiyun-sdk-go to v0.1.4 to fix nil pointer panic on mount#9561okatu-loli wants to merge 1 commit into
okatu-loli wants to merge 1 commit into
Conversation
… Init The upstream SDK v0.1.3 had a bug in Resp.HasError() that dereferenced r.Data without a nil check (types.go:38), causing a nil pointer panic when mounting Weiyun storage if the API returned a response with an empty data field. v0.1.4 guards the nil access. LoginType() also changed from int8 to a string enum in v0.1.4, so the QQ-cookie keepalive check is updated to compare against AccountTypeQQ. Fixes AlistGo#9551
JoaHuang
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题 / Problem
挂载腾讯微云(weiyun)存储时,
Init阶段触发 nil pointer panic,导致存储无法初始化。崩溃源自上游 SDKgithub.com/foxxorcat/weiyun-sdk-go@v0.1.3的Resp.HasError(),它在r.Data为 nil 时直接解引用r.Data.RspHeader(types.go:38)。When mounting Tencent Weiyun storage, a nil pointer panic occurs during
Init. The panic originates from the upstream SDK v0.1.3Resp.HasError()dereferencingr.Datawithout a nil check.改动 / Change
weiyun-sdk-go从 v0.1.3 升级到 v0.1.4(上游已修复 nil 解引用:r.Data != nil && ...)。LoginType()的返回类型从int8改成了 string 枚举,相应地把 QQ cookie 保活的判断改为weiyunsdkgo.AccountTypeQQ。验证 / Verification
go build ./...与go vet ./drivers/weiyun/通过。Fixes #9551