BucketManager batch 直接使用了 conf.RS_HOST
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 590
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
七牛内部测试环境使用时
发现 BucketManager batch 直接使用了写死了域名 conf.RS_HOST,而没有使用传入的 config.zone 里的配置,类似的地方应该还有,期望都使用传入配置
https://github.com/qiniu/nodejs-sdk/blob/master/qiniu/storage/rs.js#L420
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at rs.js line 420 and trace how BucketManager batch selects its endpoint, comparing the hard-coded conf.RS_HOST with the supplied config.zone values. Inspect nearby analogous storage-manager paths for the same pattern; done means all affected requests honor the passed zone configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100