Page MenuHomePhabricator

P4. Spike - Figure out causes of mention notification not being sent (missing pings)
Closed, ResolvedPublic2 Estimated Story Points

Description

A variety of "Notification wasn't sent" reports in the last few weeks. E.g. https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)/Archive_133#Missed_pings

Bob K31416 says:

Someone recently used {{u}} with my user name and I didn't get any notification. diff

I can't see any potential or known problems in that diff, so filing as a new bug. (I even tried changing my signature to use the same code as Cwobeel, and it still worked in a test).


See also: T68078: Indicate mentions in edit preview and in "Your edit was saved" message

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

A valid signature consists of a mandatory link to the user page and an optional link to the talk page. All other signatures do not generate a notification.

When the signature contains unbalanced HTML tags no notification is generated.

A valid signature consists of a mandatory link to the user page and an optional link to the talk page. All other signatures do not generate a notification.

Those are the normal required conditions to trigger a notification, except of link to the talk page (which is not necessary).

When the signature contains unbalanced HTML tags no notification is generated.

What means "unbalanced HTML" exactly? It seems many user using "balanced HTML".
Anyway this bug seems to have a bit sporadically characteristics, because there are also fully normal edits and signatures.
Anyway there is task T75366: New comments are not generating mention notifications when signature is non-standard (which you linked, with priority High).

<span> without matching </span> is an unbalanced HTML tag.

<span> without matching </span> is an unbalanced HTML tag.

This is not very plausible, because the signature preferences have an HTML tidy syntax check (You get: Invalid raw signature. Check HTML tags.). Except the user use a very old own signature syntax. Anyway I can't see a direct relation to this report here.

A valid signature consists of a mandatory link to the user page and an optional link to the talk page. All other signatures do not generate a notification.

This is not true (e.g. https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion%3ASchnark&diff=138274729&oldid=137934707 worked), but even if it were true: https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&diff=138029126&oldid=138028556 failed though that signature is a standard signature.

When the signature contains unbalanced HTML tags no notification is generated.

This is not true, as I proved in https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion%3ASchnark&diff=138274875&oldid=138274729

DannyH renamed this task from [2] Spike - Figure out causes of mention notification not being sent (missing pings) to [2] P4. Spike - Figure out causes of mention notification not being sent (missing pings).Jan 30 2015, 6:37 PM
DannyH renamed this task from [2] P4. Spike - Figure out causes of mention notification not being sent (missing pings) to P4. Spike - Figure out causes of mention notification not being sent (missing pings).Feb 3 2015, 6:52 PM

https://gerrit.wikimedia.org/r/#/c/187850/ refactors how signatures are extracted. Let's see if that helps.

gerritbot subscribed.

Change 187850 had a related patch set uploaded (by Matthias Mullie):
Improve signature detection

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

Patch-For-Review

Change 187850 merged by jenkins-bot:
Improve signature detection

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

Figured it out; we're planning to cherry-pick the fixes on Monday.

Change 189548 had a related patch set uploaded (by EBernhardson):
Improve signature detection

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

Patch-For-Review

Change 189548 merged by jenkins-bot:
Improve signature detection

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

Change 189549 had a related patch set uploaded (by EBernhardson):
Improve signature detection

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

Patch-For-Review

Change 189549 merged by jenkins-bot:
Improve signature detection

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

Fresh report of this edit not sending a notification: https://en.wikipedia.org/w/index.php?diff=646792804
(report)

Maybe it's getting confused by:

[[User talk:PatHadley#top|talk]]</code>

In T78424#1034841, @Mattflaschen wrote:

Maybe it's getting confused by:

[[User talk:PatHadley#top|talk]]</code>

Another report of this edit not triggering a ping, and he also has a #top in his signature: [[User talk:Kudpung#top|talk]]

The default (uncustomised) signature has #top in the talk page link.

The default (uncustomised) signature has #top in the talk page link.

Wha?? oh, since 2007 at enwiki https://en.wikipedia.org/w/index.php?title=MediaWiki%3ASignature&diff=176507985&oldid=176229132
and since April 2013 at mediawikiwiki and meta. Since 2008 at commons.
I checked another 10 large projects/languages, and all others used the default.

Change 191011 had a related patch set uploaded (by Matthias Mullie):
Pass title along to signature parser

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

Patch-For-Review

The #top thingy was indeed the culprit.

We re-generate a signature for whoever we think we've found. However, that Mediawiki:signature is different on regular pages (which Echo code assumed) than it is on own user talk pages (where it adds #top) - causing us not to pick up the signature.

Above patch should fix that.

Sidenote: Please update any changes to the signature detection code, at https://www.mediawiki.org/wiki/Manual:Echo#Mentions. Thanks :)

Change 191011 merged by jenkins-bot:
Pass title along to signature parser

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

Change 191113 had a related patch set uploaded (by EBernhardson):
Pass title along to signature parser

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

Patch-For-Review

Change 191117 had a related patch set uploaded (by EBernhardson):
Pass title along to signature parser

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

Patch-For-Review

Change 191117 merged by jenkins-bot:
Pass title along to signature parser

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

Change 191113 merged by jenkins-bot:
Pass title along to signature parser

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

Patches have been cherry-picked forward, will go out to all wikis in four to five hours.

@Quiddity: notes about signature detection have been updated as well

SebastianHelm subscribed.

Sadly, it seems this is still happening. It just happened twice at [[w:en:User_talk:Eteethan#Why_remove_tag.2C_instead_of_using_a_template.3F]].

Please link the diffs you're referring to.

If you mean https://en.wikipedia.org/w/index.php?title=User_talk:Eteethan&diff=699715723&oldid=699715390 , it's because it was unsigned.

And https://en.wikipedia.org/w/index.php?title=User_talk:Eteethan&diff=699717972&oldid=699717906 didn't work because it didn't add a signature (I believe they have to be in the same edit).

This spike was about figuring out causes, which is done. See T66778: Echo: Remove the signature-requirement for Mention notifications for discussion on possible solutions.

Thank you very much for your diligent look into this and the great explanation. That explains my observations.

Oh, yeah. That was completely my fault.