user create --password-stdin keeps a byte order mark as part of the password
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
ConsoleCommandInput.ReadLineAsync から始めます。これは Console.In を読み取り、レポートではマークが残る場所として挙げられています。また、src/FluentCMS.Host 配下の user create と user reset-password --password-stdin の経路にあるその呼び出し元も確認します。BOM を先頭に付けた行をコマンドにパイプして再現し、次にリダイレクトされた入力から読み取った最初の行の先頭にある U+FEFF を除去し、残りを UTF-8 としてデコードします。完了とは、BOM 付きのパイプでサインインでき、既存のホストコマンドのテストが引き続き通ることであり、BOM のケースをカバーするテストを追加します。
索引モデルが issue の本文から書いたものです。
説明
What happens
On Windows, a password piped from PowerShell to fluentcms user create --password-stdin (or user reset-password --password-stdin) is stored with a byte order mark in front of it, so the user cannot sign in with the password that was piped:
"YourPassword123!" | dotnet run --no-build --project src/FluentCMS.Host -- fluentcms user create --email [email protected] --role "Super Admin" --password-stdin
The command reports success, and the sign-in page then answers "Sign-in failed" for that address and password. The same command fed from a pipe without a byte order mark (cmd, bash) signs in.
Why
PowerShell can write a UTF-8 byte order mark before what it pipes to a native command. ConsoleCommandInput.ReadLineAsync reads Console.In, which does not drop it, so the first line of standard input is the mark followed by the password.
Expected
A byte order mark at the start of redirected standard input is not part of the first line, and what follows it is read as UTF-8.
- 主要言語
- C#
- スター
- 567
- フォーク
- 107
- 平均マージ
- 2時間 35分
- マージ済み PR(30日)
- 425
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fluentcms/FluentCMS のほかの issue
-
area:operations type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
area:events area:jobs area:settings area:storage type:chore
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
メンテナーはふだん 1 日以内に返信
-
area:admin type:chore
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
メンテナーはふだん 1 日以内に返信
-
area:authorization area:identity type:chore
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
メンテナーはふだん 1 日以内に返信
-
area:content type:chore
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
メンテナーはふだん 1 日以内に返信
fluentcms/FluentCMS の issue をすべて見る
似ている issue
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
valkey-io/valkey-glide#7849 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bitfoundation/bitplatform#15455 ·
メンテナーはふだん 1 日以内に返信
-
area-Asset area-GameStudio area-Samples bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信