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

オープン 初心者向け
#1,779 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

@swastiksharma45 がすでに取り組んでいます。

2026年11月25日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

ShareAlbumDialog.tsxから始め、リンクの作成時に共有パスワードがどのように送信されるかを追ってください。その動作を、入力されたままのパスワードを確認するロック解除ルートと比較してください。Issueでは先例として#1690が挙げられています。アルバムのロック解除時に、先頭または末尾にスペースがあるパスワードが入力どおりに機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
322
フォーク
793
平均マージ
6日 9時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/PictoPy のほかの issue

AOSSIE-Org/PictoPy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。