wiki.techinc.nl/tests
Aryeh Gregor ddd1d4b920 Log warning and show error on empty username
Historically it seems that if Linker::userLink or friends were passed an
empty username (probably due to an incorrect database entry), they would
produce bogus output, e.g., an <a> with no contents or a link to the
invalid page "User_talk:" or similar.

In b6e1e99bec we replaced an occurrence of Title::makeTitle() (no
safety checks!) with creating a TitleValue, which asserts in its
constructor that the title text is not empty. This made such pages fail
an assertion and stop displaying at all.

Now there's a proper check for the error. Such cases will log a
production error and return "(no username available)".

Bug: T222529
Change-Id: Id65bdf9666b0d16e5553b8f38c7cf8fce2e37a25
2019-05-06 14:44:23 -05:00
..
common Merge "Validate the output of the dump scripts." 2019-03-20 23:13:50 +00:00
integration/includes Deprecate the Http class 2019-05-06 12:07:26 +03:00
parser Make RepoGroup a service instead of singleton 2019-05-06 13:57:40 +03:00
phan Upgrade to newer phan 2019-03-23 18:06:35 -07:00
phpunit Log warning and show error on empty username 2019-05-06 14:44:23 -05:00
qunit Merge "Use POST to submit wikitext to mw.api.parse" 2019-04-30 12:38:45 +00:00
selenium Improve rollback tests setup by extracting repeating logic to HistoryPage object 2019-04-30 18:17:00 +02:00
.htaccess