BUG: A locked album can be shared over the network without its password
I maintainer di solito rispondono entro 4 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, typescript
Direzione di ricerca
Read frontend/src/pages/Album/Album.tsx around handleShareAlbum and handleAlbumClick, then trace the backend password check verify_album_password and backend/app/share/media.py's share_media_album_name. Confirm how the existing check can authorize sharing a locked album. Done when sharing requires a valid album password or a share password for locked albums, and the unprotected network link no longer exposes its photos.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
What happened?
On the Albums page, a locked album can be shared from its menu without entering the album's password.
Steps to reproduce
- Create an album and lock it with a password.
- On the Albums page, open the album's ⋯ menu and choose Share.
- The share dialog opens straight away. No album password is asked for.
- Create a link with Require a password turned off.
- Open the link from another device on the network.
Expected
Sharing a locked album should need its password, the same as opening it does (clicking a locked album opens the password dialog first).
Actual
Anyone with the link can see every photo in the album. The lock protects the album inside the app, but the share option exposes it to the network without the password.
Where
frontend/src/pages/Album/Album.tsx:handleShareAlbumopens the share dialog directly, whilehandleAlbumClickasks for the password first for a locked album.backend/app/share/media.py:share_media_album_namenotes thatis_lockedis deliberately ignored, because sharing has its own authorization. That authorization is optional, though, so a locked album can be shared with none.
Possible fixes
- For a locked album, ask for the album password before the share dialog opens. Verify it with the backend's existing album password check (
verify_album_password) so the check is not frontend-only. - Or require a share password whenever the album is locked.
Option 1 matches how opening a locked album already works. I would be happy to work on whichever the maintainers prefer.
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
- Nessun Dockerfile né file Docker Compose
- Nessun 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 AOSSIE-Org/PictoPy
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Forse già presa @jayssSmm l’ha presa 1 giorno fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1780 · 5 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workForse già presa @swastiksharma45 l’ha presa 2 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/PictoPy#1779 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: PROD: Face search shows "No Matches Found" for every empty result, even when AI tagging is offForse già presa @dhruvbit l’ha presa 3 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AOSSIE-Org/PictoPy#1770 · 3 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: Add images to album: success message shows requested count, not number actually addedForse già presa @riyanshbhosale l’ha presa 5 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/PictoPy#1740 · 4 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: /sync-folder does not validate the supplied folder_idForse di nuovo libera @sathvikn113 l’ha presa 10 giorni fa e non c’è nessuna pull request aperta. Apertabug possible-duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/PictoPy#1731 · 5 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di AOSSIE-Org/PictoPy
Issue simili
-
S2-12 Atualizar README.mdAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
cofade/open-garden-planner#1044 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
python-commandline-toolsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
codecrafters-io/build-your-own-x#2126 ·
I maintainer di solito rispondono entro 5 giorni
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
julianleno/cortai#10 ·
-
difficulty:easy func:python os:windows prio:high type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NatronGitHub/Natron#2029 ·
I maintainer di solito rispondono entro 1 giorno