fix(obs): 修复选择华为obs作为对象存储并配置proxyDomain参数时校验出错的bug - #2790
Open
CodeMarker0 wants to merge 1 commit into
Open
Conversation
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.
fix: 修复选择华为obs作为对象存储并配置proxyDomain参数时校验出错的bug
Description
当前 OBS 配置代理域名时,上传和复制文件返回的是代理 URL,导致物理路径无法稳定识别为 OBS provider,进而影响资源注册、后续读取及多存储后端路由。该提交统一将 OBS 内部路径规范化为 obs://{bucket}/{objectKey},代理域名仅用于生成访问 URL,修复 OBS 文件上传路径错误。
同时,提交兼容历史代理 URL 和裸对象路径,补充了上传、路径解析、文件复制、跨后端拷贝校验及资源目录注册测试,能够降低存量数据迁移风险并避免类似路径混淆问题。因此该修复具备明确的线上问题价值和完整的回归保障,建议合入主分支。
Type of Change
Related Issue
Fixes #
Testing
Checklist
git diff --check origin/main...HEADpassesgolangci-lint run --new-from-rev=origin/main ./...)docs/, Swagger annotations, etc.)Screenshots / Recordings