Repository navigation
docs(web/guides): advisory-lock transaction note and isSafeRedirectUrl override clause - #4323
Merged
Merged
Conversation
…l override clause In the 4.1 to 4.2 guide, say that withAdvisoryLock(transaction = true) inside an open transaction throws on MySQL and SQL Server and joins it on PostgreSQL (#4222), and that an app's own isSafeRedirectUrl helper still overrides the framework one. End two fragments with a period. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
Review @ d5a7c95: APPROVE (docs and changelog only)
Noted that draft #4322 is for the cut and shouldn't be merged. No findings. |
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third follow-up for PRs merged into 4.2. All changes are in
v4-2-0/upgrading/4x-1-to-4x-2.mdxand two fragments.withAdvisoryLock(transaction = true)inside an open transaction (feat(model): opt-in transaction-scoped advisory locks for withAdvisoryLock #4222). The guide's advisory-lock entry, the only page that documentswithAdvisoryLock, now says what happens:Wheels.AdvisoryLockNotSupported, because their session lock would release before the outer transaction commits. The guide says to take the lock outside the transaction.Verified on develop 6dbb62a:
locking.cfm$runWithAdvisoryLockTransactional()throws when$transactionIsOpen()and$transactionalAdvisoryLockIsSessionScoped()are both true. Only the MySQL and SQL Server adapters return true for the latter. PostgreSQL inheritsfalsefromBase.cfcand takes the join path. CockroachDB and others don't supporttransaction = trueat all, which the entry already says.isSafeRedirectUrlentry (from the review of docs(web/guides): isSafeRedirectUrl reserved-name line; retype the migration-lock fragment #4320). It now has the clause therenderNotFoundentry has: a controller's ownisSafeRedirectUrlhelper overrides the framework one. Integration never overwrites a name the controller already has (Controller.cfc:StructAppend(…, adds, false)).Final periods on the
4189-singularize-databases(fix: singularize databases to database instead of databasis #4191) andtx-advisory-locks(feat(model): opt-in transaction-scoped advisory locks for withAdvisoryLock #4222) fragments.Fragment types for the merges since #4320 are correct, and none needs a further guide line:
performancefixedchangedaddedtools/changelog-promote.sh --previewrenders.🤖 Generated with Claude Code