When doing multiple automatic edits I occasionally get unknown error 231 in between the database lock errors.
Version: unspecified
Severity: normal
When doing multiple automatic edits I occasionally get unknown error 231 in between the database lock errors.
Version: unspecified
Severity: normal
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T31068 MediaWiki bugs to be fixed for 1.18wmf1 deployment (tracking) | |||
Resolved | Reedy | T31246 API errors occasionally with unknown error 231 |
This is caused by the following sequence of events:
I guess the best way to fix this would be to refactor internalAttemptSave() to return a Status object instead of one of 30+ error codes.
(In reply to comment #1)
I guess the best way to fix this would be to refactor internalAttemptSave() to
return a Status object instead of one of 30+ error codes.
Please! For back-compat, you can set the error code in $status->value on failure.
(In reply to comment #2)
(In reply to comment #1)
I guess the best way to fix this would be to refactor internalAttemptSave() to
return a Status object instead of one of 30+ error codes.Please! For back-compat, you can set the error code in $status->value on
failure.
Thanks for that tip. I took it a little bit further and just made all flow decisions based on $status->value, because EditPage is such a mess.
Fixed in r95562.