-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
refactor(psalm): Fix most issues with the workflowengine #55140
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
Conversation
| if (!$subject instanceof Node) { | ||
| throw new \UnexpectedValueException( | ||
| 'Expected Node subject for File entity, got {class}', | ||
| ['app' => Application::APP_ID, 'class' => get_class($subject)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should be a log message instead of an exception :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think being an exception here is correct as giving anything else than a Node is a fatal logic error, there was just a mixup on the correct way to creates the error message.
nickvergessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just not sure about the server containers, rest looks good
I ran integration tests on access control, and it seems to break the behaviour when creating a flow? |
3a2a717 to
fbf99bf
Compare
Fixed. The |
This found a real bug where we were catching an Doctrine exception instead of a OCP\DB\Exception. This will be backported separately. Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
fbf99bf to
6154bfa
Compare
blizzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good (apart of the commit message… with the right mood everything is a chore. But this is a refactor), have not tested yet. Approving in good trust, but might drive some tests this/next week unless it is merged.
|
Access control CI is passing now, so good to go when Cypress is unrelated |

Summary
This found a real bug where we were catching an Doctrine exception instead of a OCP\DB\Exception. This will be backported separately.
TODO
Checklist