Skip to content

Auto-merge forward rel-10.7 → dev - #26300

Merged
voloagent merged 3 commits into
devfrom
auto-merge-forward/rel-10.7-to-dev-90
Oct 16, 2026
Merged

voloagent merged 3 commits into
devfrom
auto-merge-forward/rel-10.7-to-dev-90

Conversation

@voloagent

Copy link
Copy Markdown
Contributor

Automated forward merge of rel-10.7 into dev.

maliming and others added 3 commits October 16, 2026 12:46
- Skip SignalR hub requests in `AbpUnitOfWorkMiddleware`
- Don't begin a completed or disposed reservation in `TryBeginReserved`
Resolve #26259

`UseUnitOfWork()` completes the request unit of work after the rest of the pipeline. If the action returned a body, the response has already started by then. So when the commit or a unit of work event handler fails, the client still gets `200 OK` with the success body, and the data is not saved.

The startup templates will use `UseAbpExceptionHandling()` instead. Then the MVC action and page filters complete the unit of work before the result is written, and a failure returns an error. The unit of work document now explains this, the middleware options and their limits.

Also fixed:

- A SignalR hub connection kept one unit of work for its whole lifetime, so writes in hub calls could be lost when it closed. The middleware now skips hub requests. A hub method that queries an `IQueryable` directly needs its own unit of work.
- `TryBeginReserved` no longer reuses a reservation that was already completed or disposed, like one a background task sees after its request ends. Such work now starts a new unit of work.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 05:43
@voloagent
voloagent merged commit 0f5b64a into dev Oct 16, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@voloagent
voloagent deleted the auto-merge-forward/rel-10.7-to-dev-90 branch October 16, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants