Skip to content

Conversation

@ScharfViktor
Copy link
Contributor

related opencloud-eu/opencloud#2048

  • Check the need to entered password when changing a public link to a role with write permission

@ScharfViktor ScharfViktor requested review from JammingBen, Copilot and saw-jan and removed request for JammingBen and Copilot December 19, 2025 09:43
@ScharfViktor ScharfViktor force-pushed the enforce-password-writable-public-links branch from 54d09dc to bbae8c7 Compare December 19, 2025 10:31
Copilot AI review requested due to automatic review settings December 19, 2025 10:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enforces password requirements for writable public links by adding functionality to validate that passwords are set when changing link roles to write-enabled permissions.

  • Adds deletePassword method to remove passwords from existing public links
  • Adds requirePassword parameter to the changeRole function to trigger password generation when changing to writable roles
  • Adds e2e test scenario validating password enforcement when switching from view-only to writable public link roles

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tests/e2e/support/objects/app-files/link/index.ts Exports new deletePassword method for Link class
tests/e2e/support/objects/app-files/link/actions.ts Implements password deletion and adds password requirement logic to role changes
tests/e2e/cucumber/steps/ui/links.ts Adds step definitions for password-protected role changes and password deletion
tests/e2e/cucumber/features/shares/link.feature Adds test scenario verifying password enforcement for writable public links

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, formatter complains though.

@ScharfViktor ScharfViktor force-pushed the enforce-password-writable-public-links branch from bbae8c7 to e06b855 Compare December 19, 2025 12:59
@ScharfViktor ScharfViktor merged commit 6fe42f7 into main Dec 19, 2025
28 checks passed
@ScharfViktor ScharfViktor deleted the enforce-password-writable-public-links branch December 19, 2025 13:24
@openclouders openclouders mentioned this pull request Dec 19, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants