Bug WarningPointsChange::applyUserBan does not reliably log errors

There is a bug in this version
X

Xon

Guest
If you have a warning action which applies a ban with a limited expiry, and then another warning action which applies a ban with no expiry, and the first user ban fails to apply, this results in the following being logged:
Code:

LogicException: Attempted to set 'end_date' while a save was pending without forceSet

The original failure reason is lost as \XF::logException in applyUserBan is operating in the current transaction while the 2nd exception is caught by the error...

Read more

Continue reading...