Skip to content

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

Merged
artonge merged 3 commits intomasterfrom
fix/recommended-apps-password-confirmation
May 6, 2026
Merged

fix(core): prompt for password once when installing recommended apps#60165
artonge merged 3 commits 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)

@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)?

@pringelmann pringelmann force-pushed the fix/recommended-apps-password-confirmation branch from 37b46df to 8226b01 Compare May 6, 2026 04:29
@pringelmann pringelmann requested a review from skjnldsv May 6, 2026 10:10
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>
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann force-pushed the fix/recommended-apps-password-confirmation branch from 376129d to 3a4bb2b Compare May 6, 2026 11:27
@artonge artonge merged commit 2fcc7b1 into master May 6, 2026
162 of 170 checks passed
@artonge artonge deleted the fix/recommended-apps-password-confirmation branch May 6, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot install recommended apps

5 participants