qiniu / qiniu/nodejs-sdk

BucketManager batch 直接使用了 conf.RS_HOST

Open
#371 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.