BUG: Share password loses leading/trailing spaces so the password you set doesn't work

Aperta Adatta ai principianti
#1,779 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@swastiksharma45 ci sta già lavorando.

Dal 25/11/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia da ShareAlbumDialog.tsx e segui come viene inviato il password di condivisione quando si crea un link; confronta questo comportamento con quello della route di sblocco, che verifica il password così come è stato inserito. L’issue indica #1690 come precedente. Il lavoro è completato quando un password con spazi iniziali o finali funziona esattamente come inserito durante lo sblocco dell’album.

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

Descrizione

bug
Is there an existing issue for this?
  • I have searched the existing issues
What happened?

When you share an album with a password, the share dialog quietly removes spaces from the start and end of the password before saving it. The unlock page doesn't remove them, so the exact password you typed is rejected.

Steps to reproduce
  1. On the Albums page, open an album's ⋯ menu and choose Share.
  2. Turn on Require a password and enter test (with a space at the end).
  3. Create the link and open it in a browser.
  4. Enter test (the same password, with the space).

###Screencast

https://github.com/user-attachments/assets/04b90379-1357-4579-adaf-d752a5b84361

Expected

The album opens.

Actual

"That password is not right." Entering test without the space opens it, which isn't the password that was set.

Cause

ShareAlbumDialog.tsx sends password.trim() when creating the share. The unlock route checks the password exactly as typed.

Fix

Stop trimming the share password, the same as #1690 did for the Edit Album dialog.

Record
  • I agree to follow this project's Code of Conduct
Lingua principale
Python
Stelle
322
Fork
793
Merge medio
6g 9h
PR unite (30g)
20

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 AOSSIE-Org/PictoPy

Tutte le issue di AOSSIE-Org/PictoPy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.