Skip to content

fix: document not visible after account creation - #5919

Merged
vitormattos merged 5 commits into
mainfrom
fix/document-not-visible-after-account-creation
Dec 2, 2025
Merged

vitormattos merged 5 commits into
mainfrom
fix/document-not-visible-after-account-creation

Conversation

@vitormattos

Copy link
Copy Markdown
Member

No description provided.

When a non-existing user is invited to sign a document via email and
creates an account through the sign request link, the document was not
appearing in their file list after login.

This happened because:
- The sign request was created with email as the identifier
- After account creation, the system searches for documents using the
  user's UID (account identifier)
- The identifier was never updated from email to account

This fix:
- Updates the identify method from 'email' to 'account' when a new
  user is created via createToSign()
- Sets the identifier value to the new user's UID
- Allows the document to appear correctly in the user's file list

Fixes issue reported where users couldn't see documents after account
creation despite receiving notifications.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add integration test to verify that when a non-existing user creates an
account through a sign request link, the document appears in their file
list.

The test verifies:
- User can successfully create account via sign request link
- Document appears in the file list after login
- The identify method is correctly updated to 'account'
- The identifier value matches the new user's UID

This test would have caught the bug where documents were not visible
after account creation.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos added this to the Next Major (33) milestone Dec 2, 2025
@vitormattos vitormattos self-assigned this Dec 2, 2025
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in LibreSign Roadmap Dec 2, 2025
@vitormattos

Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos

Copy link
Copy Markdown
Member Author

/backport to stable31

@backportbot-libresign backportbot-libresign Bot added the backport-request Request to backport a change to supported stable branches label Dec 2, 2025
Update AccountServiceTest to include the new IdentifyMethodMapper
dependency that was added to AccountService constructor.

This fixes the unit test failures caused by the type mismatch error:
'Argument #18 ($identifyMethodMapper) must be of type
OCA\Libresign\Db\IdentifyMethodMapper'

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit cbf66bf into main Dec 2, 2025
66 of 72 checks passed
@vitormattos
vitormattos deleted the fix/document-not-visible-after-account-creation branch December 2, 2025 14:31
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in LibreSign Roadmap Dec 2, 2025
@backportbot-libresign backportbot-libresign Bot removed the backport-request Request to backport a change to supported stable branches label Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant