Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show pending popover menu when password is enabled by default #38164

Conversation

danxuliu
Copy link
Member

When Enforce password protection is enabled in the sharing settings a popover menu is shown to set a password before the share is created. On the other hand, when Always ask for a password was enabled in the sharing settings and a new link share was created the share was immediately created with a default password; the user was not able to specify a password (nor create the share without password).

The component template already provided the needed elements to also ask for the password without enforcing it, but the popover menu was not shown due to enableLinkPasswordByDefault being missing in if conditions.

How to test

Result with this pull request

A popover menu is shown to set or remove the password of the share; a default password is pre-filled

Result without this pull request

The share is immediately created with a default password, and even if the menu of the share is opened the password can not be shown (●●●●●●●●●●●●●●● is replaced by ***************)

@danxuliu danxuliu added this to the Nextcloud 27 milestone May 10, 2023
@danxuliu danxuliu requested review from skjnldsv, Pytal, a team and Fenn-CS and removed request for a team May 10, 2023 04:00
@skjnldsv skjnldsv mentioned this pull request May 10, 2023
@danxuliu danxuliu force-pushed the show-pending-popover-menu-when-password-is-enabled-by-default branch from 8a2e561 to 5a50a71 Compare May 10, 2023 23:54
@danxuliu
Copy link
Member Author

Rebased and rebuilt to solve conflicts.

@blizzz blizzz mentioned this pull request May 17, 2023
danxuliu and others added 3 commits May 22, 2023 12:49
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When "Enforce password protection" is enabled in the sharing settings a
popover menu is shown to set a password before the share is created. On
the other hand, when "Always ask for a password" was enabled in the
sharing settings and a new link share was created the share was
immediately created with a default password; the user was not able to
specify a password (nor create the share without password).

The component template already provided the needed elements to also ask
for the password without enforcing it, but the popover menu was not
shown due to "enableLinkPasswordByDefault" being missing in "if"
conditions.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the show-pending-popover-menu-when-password-is-enabled-by-default branch from 5a50a71 to 9f8fa48 Compare May 22, 2023 10:53
@nickvergessen
Copy link
Member

/backport to stable27

@nickvergessen
Copy link
Member

/backport to stable26

@nickvergessen nickvergessen merged commit f74143b into master May 22, 2023
38 checks passed
@nickvergessen nickvergessen deleted the show-pending-popover-menu-when-password-is-enabled-by-default branch May 22, 2023 12:17
@backportbot-nextcloud
Copy link

The backport to stable26 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable26
git pull origin/stable26

# Create the new backport branch
git checkout -b fix/foo-stable26

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable26

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@nickvergessen
Copy link
Member

/backport d80f8fc,d4631921b4f4ab2832bc6698def47aa16d60c621 to stable26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants