BUG: A locked album can be shared over the network without its password
メンテナーはふだん 4 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 322
- フォーク
- 793
- 平均マージ
- 6日 9時間
- マージ済み PR(30日)
- 20
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/PictoPy のほかの issue
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)対応中かも @jayssSmm が 1 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/PictoPy#1780 · コメント 5 件 ·
メンテナーはふだん 4 日以内に返信
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't work対応中かも @swastiksharma45 が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
AOSSIE-Org/PictoPy#1779 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
BUG: PROD: Face search shows "No Matches Found" for every empty result, even when AI tagging is off対応中かも @dhruvbit が 3 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AOSSIE-Org/PictoPy#1770 · コメント 3 件 ·
メンテナーはふだん 4 日以内に返信
-
BUG: Add images to album: success message shows requested count, not number actually added対応中かも @riyanshbhosale が 5 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/PictoPy#1740 · コメント 4 件 ·
メンテナーはふだん 4 日以内に返信
-
BUG: /sync-folder does not validate the supplied folder_id再び着手できるかも @sathvikn113 が 10 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug possible-duplicate
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/PictoPy#1731 · コメント 5 件 ·
メンテナーはふだん 4 日以内に返信
AOSSIE-Org/PictoPy の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
cofade/open-garden-planner#1044 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
codecrafters-io/build-your-own-x#2126 ·
メンテナーはふだん 5 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
julianleno/cortai#10 ·
-
difficulty:easy func:python os:windows prio:high type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/Natron#2029 ·
メンテナーはふだん 1 日以内に返信