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

Open Beginner friendly
#1,779 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@swastiksharma45 is already working on this.

Since Nov 25, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript
Domain
frontend

Research direction

Start in ShareAlbumDialog.tsx and trace how the share password is sent when creating a link; compare that behavior with the unlock route, which checks the password as entered. The issue points to #1690 as a precedent. Done when a password with leading or trailing spaces works exactly as entered when unlocking the album.

Written by the indexing model from the issue text.

Description

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
Dominant language
Python
Stars
322
Forks
793
Avg merge
6d 9h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/PictoPy

All issues in AOSSIE-Org/PictoPy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.