RSS Feed/News Several XenForo creator and editor services leaves a transactions open after a save fails

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,790
Points
823

Reputation:

Several XenForo services open a database transaction and commit on success. If a save throws, the service propagates the exception and leaves its transaction open. If the caller already had a transaction, the service leaves its savepoint open. The caller’s next rollback() then rolls back the service’s savepoint while leaving the caller’s transaction active.

Reproduction:
Make the entity being saved read-only, invoke the service’s save routine, and catch the resulting exception. Without an...

Read more

Continue reading...
 
Status
Not open for further replies.
Top