[BUG] sim-setup reports a working REDIS_URL as unreachable when its password is percent-encoded or ends in "="

オープン 初心者向け
#10,710 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
redis, typescript
領域
backend, cli

調査の方向性

packages/sim-setup/src/probes.ts の redisPing から始め、REDIS_URL から認証情報を読み取り、inline AUTH コマンドを送信する方法を確認してください。パーセントエンコードされた認証情報、末尾が = のパスワード、スペースを含むパスワードでプローブを確認してください。アプリが接続できる場合に、setup doctor がこれらのパスワードで Redis に到達可能と報告すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug
The setup tool's Redis probe sends the URL's username and password still percent-encoded, as new URL() keeps them. The app connects with the same URL because ioredis decodes them.

To Reproduce

  1. Run a Redis with a password such as c2VjcmV0a2V5= or p@ss (written p%40ss in the URL).
  2. Set REDIS_URL=redis://:c2VjcmV0a2V5=@localhost:6379.
  3. Run the setup doctor: it reports redis unreachable: -WRONGPASS invalid username-password pair.

Expected behavior
The probe authenticates with the decoded credentials and reports Redis as reachable.

Additional context
redisPing in packages/sim-setup/src/probes.ts. It also sends AUTH as an inline command, so a decoded password containing a space would be split.

主要言語
TypeScript
スター
29.8k
フォーク
3.9k
平均マージ
1時間 43分
マージ済み PR(30日)
937

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simstudioai/sim のほかの issue

simstudioai/sim の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。