Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bug: Login fails silently for non-Latin-1 credentials (e.g. Korean)

Aperta
#374 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

  1. Create a Pulp user whose username contains non-Latin-1 characters, for example 비밀번호.
  2. Open /ui/login/.
  3. Enter the username and password, then click Log in.
  4. 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') and btoa('admin:비밀번호') both throw InvalidCharacterError.
Lingua principale
TypeScript
Stelle
30
Fork
22
Merge medio
2g 19h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pulp/pulp-ui

Tutte le issue di pulp/pulp-ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.