Skip to content

fix(core): prompt for password once when installing recommended apps#60165

Open
pringelmann wants to merge 1 commit intomasterfrom
fix/recommended-apps-password-confirmation
Open

fix(core): prompt for password once when installing recommended apps#60165
pringelmann wants to merge 1 commit intomasterfrom
fix/recommended-apps-password-confirmation

Conversation

@pringelmann
Copy link
Copy Markdown
Contributor

@pringelmann pringelmann commented May 5, 2026

Summary

Fixes the regression introduced in #59764 where the install assistant's "Install recommended apps" button always failed with unauthorized responses.

AppSettingsController::enableApps now requires strict password confirmation, but the RecommendedApps.vue installer was calling it via plain axios.post(...) without the confirmPassword option (and the recommendedapps.js entry point hadn't registered the password-confirmation interceptors). The per-app loop is also collapsed into a single bulk call so the user is prompted once instead of N times.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Screenshots before/after for front-end changes
  • Documentation (manuals or wiki) has been updated or is not required
  • Backports requested where applicable (ex: critical bugfixes)
  • Labels added where applicable (ex: bug/enhancement, 3. to review, feature component)
  • Milestone added for target branch/version (ex: 32.x for stable32)

Wire the password-confirmation interceptors into the recommendedapps
entry point and switch the installer to a single bulk enable call so
the strict password confirmation on enableApps is satisfied.

Fixes #60068
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann self-assigned this May 5, 2026
@pringelmann pringelmann added 3. to review Waiting for reviews 2. developing Work in progress bug feature: apps management regression and removed 3. to review Waiting for reviews labels May 5, 2026
@pringelmann pringelmann marked this pull request as ready for review May 5, 2026 11:35
@pringelmann pringelmann requested a review from a team as a code owner May 5, 2026 11:35
@pringelmann pringelmann requested review from artonge, come-nc, nfebe, susnux and szaimen and removed request for a team May 5, 2026 11:35
@come-nc
Copy link
Copy Markdown
Contributor

come-nc commented May 5, 2026

/backport to stable33

@szaimen szaimen removed their request for review May 5, 2026 11:50
@come-nc
Copy link
Copy Markdown
Contributor

come-nc commented May 5, 2026

It will need backport to all versions the fix was backported to, sadly, but we can wait for the 33 backport first to watch for conflicts.

@joshtrichards
Copy link
Copy Markdown
Member

Maybe an opportunity to expand the test coverage a bit:

function sharedSetup() {

Perhaps an "Install failure / success flow" coverage path (using one of the smaller bundles)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot install recommended apps

3 participants