Page MenuHomePhabricator

ManualLogEntry::getComment() should always return string
Closed, ResolvedPublicBUG REPORT

Description

Tests are failing in ManualLogEntry::insert() when getComment() returns null and trim() complains

Event Timeline

Change 809314 had a related patch set uploaded (by MarkAHershberger; author: MarkAHershberger):

[mediawiki/core@master] ManualLogEntry::getComment() should always return string

https://gerrit.wikimedia.org/r/809314

Change 809314 merged by jenkins-bot:

[mediawiki/core@master] ManualLogEntry::getComment() should always return string

https://gerrit.wikimedia.org/r/809314

Change 814141 had a related patch set uploaded (by Reedy; author: MarkAHershberger):

[mediawiki/core@REL1_38] ManualLogEntry::getComment() should always return string

https://gerrit.wikimedia.org/r/814141

Change 814142 had a related patch set uploaded (by Reedy; author: MarkAHershberger):

[mediawiki/core@REL1_37] ManualLogEntry::getComment() should always return string

https://gerrit.wikimedia.org/r/814142

Change 814143 had a related patch set uploaded (by Reedy; author: MarkAHershberger):

[mediawiki/core@REL1_35] ManualLogEntry::getComment() should always return string

https://gerrit.wikimedia.org/r/814143

Change 814142 merged by jenkins-bot:

[mediawiki/core@REL1_37] ManualLogEntry::getComment() should always return string

https://gerrit.wikimedia.org/r/814142

As far as I can tell, the backports will break the Translate extension in the respective release branches per T313608: Marking translations as reviewed fails.

Change 814141 abandoned by Reedy:

[mediawiki/core@REL1_38] ManualLogEntry::getComment() should always return string

Reason:

T318040

https://gerrit.wikimedia.org/r/814141

Change 814143 abandoned by Reedy:

[mediawiki/core@REL1_35] ManualLogEntry::getComment() should always return string

Reason:

T318040

https://gerrit.wikimedia.org/r/814143

Change 845093 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@REL1_38] In ManualLogEntry, cast the comment to string

https://gerrit.wikimedia.org/r/845093

Bawolff assigned this task to Jdforrester-WMF.
Bawolff subscribed.

This was fixed in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/831168 (which got included in master, 1.39 and 1.38, but not 1.37 and earlier)

Change 851015 had a related patch set uploaded (by Reedy; author: Tim Starling):

[mediawiki/core@REL1_35] In ManualLogEntry, cast the comment to string

https://gerrit.wikimedia.org/r/851015

Change 845093 merged by jenkins-bot:

[mediawiki/core@REL1_38] In ManualLogEntry, cast the comment to string

https://gerrit.wikimedia.org/r/845093

Change 851015 merged by jenkins-bot:

[mediawiki/core@REL1_35] In ManualLogEntry, cast the comment to string

https://gerrit.wikimedia.org/r/851015