[Bug]: obj signurl should reject times > the limit
オープン
初心者向け
まだ誰も着手していません。
bug
- 主要言語
- Python
- スター
- 442
- フォーク
- 159
- 平均マージ
- 7日 21時間
- マージ済み PR(30日)
- 8
説明
### CLI Version
linode-cli v5.67.0 Built from spec version 4.224.0
### Command
`linode-cli obj signurl +31536000` happily spits out a URL, but trying to access it will give Access Denied.
Reducing the expiration to 24h works.
Given that there's a limit, the command should reject expiration times above the limit and error out.
### Output
_No response_
### Expected Behavior
Error: Expiration above limit (86400s / 24h).
### Actual Behavior
### Steps to Reproduce
_No response_
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
`linode-cli obj signurl` コマンドのエントリーポイントから開始し、有効期限を `+31536000` にした場合の動作を再現します。有効期限がどのように検証されるかを追跡し、86400 秒を超える値を拒否するテストを追加して、有効な 24 時間の有効期限が引き続き機能することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 72/100