Passwords cannot contain leading or trailing spaces
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
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
- Set a server password with a leading or trailing space.
- Connect with the password method and type the password.
- 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di beppe2880/opencode-mobile
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
beppe2880/opencode-mobile#60 ·
I maintainer di solito rispondono entro 1 giorno
-
Add a Kotlin formatter and lint checkForse già presa @beppe2880 l’ha presa oggi. Apertafeature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
beppe2880/opencode-mobile#58 ·
I maintainer di solito rispondono entro 1 giorno
-
Hardware keyboard shortcutsApertaconfirmed feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
beppe2880/opencode-mobile#33 ·
I maintainer di solito rispondono entro 1 giorno
-
Try the app without a serverApertaconfirmed feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
beppe2880/opencode-mobile#32 ·
I maintainer di solito rispondono entro 1 giorno
-
Read-only file viewerApertaconfirmed feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
beppe2880/opencode-mobile#31 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di beppe2880/opencode-mobile
Issue simili
-
enhancement impact:U1 P3 reach:R2 size:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
ankidroid/Anki-Android#22677 ·
I maintainer di solito rispondono entro 1 giorno
-
Type Pick Request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
reactwg/react-native-releases#1456 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yschimke/homeassistant-remotecompose#1038 ·
I maintainer di solito rispondono entro 1 giorno
-
area:data-quality importer size:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
enorm-labs/event-junkie#3707 ·
I maintainer di solito rispondono entro 1 giorno