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

Passwords cannot contain leading or trailing spaces

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

I maintainer di solito rispondono entro 1 giorno

@gnacho ci sta già lavorando.

Dal 20/10/2026.

  • #53 di @gnacho — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
android, kotlin
Ambito
mobile

Direzione di ricerca

Read ConnectViewModel at the SecretChanged handling mentioned in the issue. Check how the shared secret field treats pairing codes and passwords, then trace the password login request. Done means passwords reach the server exactly as typed while pairing codes remain trimmed; linked pull request #53 is already open.

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

Descrizione

What happened?

The secret field trims every keystroke, and that field is used for both pairing codes and passwords. A server password that starts or ends with a space can never be entered: the app sends the trimmed value and the server keeps answering 401 with no useful hint. Pasting a password that happens to have trailing whitespace fails the same way.

Pairing codes are fine trimmed; passwords should be sent exactly as typed.

Steps to reproduce
  1. Set a server password with a leading or trailing space.
  2. Connect with the password method and type the password.
  3. The login fails even though the password is correct.
App version

0.6.0, also main @ 8ae46f7

OpenCode server version

Any

Device and Android version

Any; found by code inspection in ConnectViewModel (SecretChanged)

Lingua principale
Kotlin
Stelle
1
Fork
0
Merge medio
5h 39m
PR unite (30g)
23

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 beppe2880/opencode-mobile

Tutte le issue di beppe2880/opencode-mobile

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.