⚠️ This issue respects the following points: ⚠️
Bug description
Requests with app-password to admin endpoints that are annotated #[PasswordConfirmationRequired] fails with Password confirmation is required error.
👉 The change was introduced in PR #61322
Examples:
- ❌ Failing request:
curl -XDELETE 'https://nextcloud.local/ocs/v2.php/cloud/users/alice/groups?groupid=grp1' \
-H 'OCS-APIRequest: true' \
-u demo:'mngot-jQsq9-3rqFX-i4PEL-32jiy' -vk
403
...
<status>failure</status>
<statuscode>403</statuscode>
<message>Password confirmation is required</message>
Source dode:
#[PasswordConfirmationRequired]
#[NoAdminRequired]
public function removeFromGroup(string $userId, string $groupid): DataResponse {
...
- ✔️ WebDAV endpoints work:
curl -XPUT 'https://nextcloud.local/remote.php/dav/files/demo/lorem.txt' \
-d 'lorem epsum' \
-u demo:'mngot-jQsq9-3rqFX-i4PEL-32jiy' -vk
Open Questions:
- Is it the intended behavior?
- If yes, why do on patch releases as it breaks the working behavior?
- What are the limitations of app-password?
Steps to reproduce
- Create an app password
- Make groups sub-admin and add some users
- Try to remove user from the group using the app password
Expected behavior
Expect to work as it used to in previous versions: 34.0.0, 33.0.5 and 32.0.11
Nextcloud Server version
34.0.1
33.0.6
32.0.12
Bug description
Requests with app-password to admin endpoints that are annotated
#[PasswordConfirmationRequired]fails withPassword confirmation is requirederror.👉 The change was introduced in PR #61322
Examples:
Source dode:
Open Questions:
Steps to reproduce
Expected behavior
Expect to work as it used to in previous versions:
34.0.0,33.0.5and32.0.11Nextcloud Server version
34.0.133.0.632.0.12