fix: incompatible AMPF with latest Nextcloud patches#1097
Conversation
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds a Nextcloud event listener to work around recent server changes by updating the session’s password-confirmation timestamp when the OpenProject system user logs in via an app password/token flow.
Changes:
- Introduces
UserLoggedInEventListenerto setlast-password-confirmfor OpenProject token logins - Registers the listener in the app boot sequence
- Documents the fix in
CHANGELOG.md
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| lib/Listener/UserLoggedInEventListener.php | New listener that updates session state on UserLoggedInEvent for token login |
| lib/AppInfo/Application.php | Wires the new listener into the event dispatcher during boot |
| CHANGELOG.md | Adds an entry describing the compatibility fix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
85bfee6 to
465f104
Compare
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
465f104 to
2580825
Compare
come-nc
left a comment
There was a problem hiding this comment.
Looks good apart from registration being done in boot.
|
Tests confirmed the fix |
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
PHP Code CoverageCoverage after merging fix/incompatible-ampf into release/2.11 will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Description
Listen for
UserLoggedInEventevent and setlast-password-confirmsession state if the requesting user isOpenProjectand using app passwordRelated Issue or Workpackage
PasswordConfirmationRequiredOCS / admin endpoints server#61646Screenshots (if appropriate):
Types of changes
Checklist:
CHANGELOG.mdfile