Bug: Login fails silently for non-Latin-1 credentials (e.g. Korean)
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the login flow and the code that builds the Axios Basic Auth request; the issue identifies btoa(username + ':' + encodedPassword) as the failure point. Reproduce with a username containing non-Latin-1 characters and check how the login page handles the resulting error. Done means the request no longer fails silently and login either succeeds or shows a clear error.
索引モデルが issue の本文から書いたものです。
説明
Summary
Login fails silently for users whose username contains characters outside Latin-1 (for example, Chinese or Arabic). The request is never sent, and the login page throws a TypeError instead of showing an error.
Steps to reproduce
- Create a Pulp user whose username contains non-Latin-1 characters, for example
비밀번호. - Open
/ui/login/. - Enter the username and password, then click Log in.
- Open the browser console.
Expected behaviour
Login succeeds, or the page shows a clear error message.
Actual behaviour
No groups/ request is sent. The console shows TypeError: Cannot read properties of undefined (reading 'status'). The user stays on the login page with no message.
Axios seems to build the the Basic Auth header with btoa(username + ':' + encodedPassword). Non latin characters are above U+00FF, so btoa throws InvalidCharacterError before the request is sent.
Environment
- pulp server version: pulpcore 3.112.0
- axios version: 1.18.0
Additional context
- Node check:
btoa('비밀번호:pass')andbtoa('admin:비밀번호')both throwInvalidCharacterError.
- 主要言語
- TypeScript
- スター
- 30
- フォーク
- 22
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pulp/pulp-ui のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
pulp/pulp-ui#305 · リアクション 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
pulp/pulp-ui#279 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
farion1231/cc-switch#8829 ·
メンテナーはふだん 1 日以内に返信
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverオープンdoc-audit enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100