Fix mutating SQL assertion in Tool Store download#607
Fix mutating SQL assertion in Tool Store download#607brendanx67 wants to merge 16 commits intorelease25.11-SNAPSHOTfrom
Conversation
* Wrapped recordToolDownload in ignoreSqlUpdates() for dev-mode compatibility Co-Authored-By: Claude <noreply@anthropic.com>
|
ERROR: A pull request from |
vagisha
left a comment
There was a problem hiding this comment.
Can you please target release25.11-SNAPSHOT for this PR?
|
This looks like a feature branch based on develop that's being merged to 25.11. It's bringing in a bunch of other changes that can't be backported due to their dependencies on changes in other repos on the develop branch. You'll need to either rebase this branch on release25.11-SNAPSHOT or create a new 25.11 branch and cherry pick your commit. |
vagisha
left a comment
There was a problem hiding this comment.
It looks like your branch may have been created from develop. I think you have to rebase it onto release25.11-SNAPSHOT so the PR only includes your changes. Or create a new branch from release25.11-SNAPSHOT and cherry-pick just your commits onto it.
|
Closing in favor of a new PR properly based on release25.11-SNAPSHOT. |
Summary
recordToolDownload()inSpringActionController.ignoreSqlUpdates()inDownloadToolActionIllegalStateException: MUTATING SQL executed as part of handling action: GETin dev modeContext
This has always been technically incorrect (mutating SQL on GET), but only throws in dev mode with assertions enabled. LabKey platform's
StatementWrapperchecksisDevMode() && isMutatingSql()and throws. Production skyline.ms is unaffected since it runs in production mode. TheignoreSqlUpdates()pattern is the same one LabKey uses for audit logging on read-only actions.Test plan
Co-Authored-By: Claude noreply@anthropic.com