Page MenuHomePhabricator

[IABot] If a page includes the same URL twice, it throws an SQL error
Closed, ResolvedPublic

Description

If a page includes the same URL twice, it throws an error when the page is processed by IABot:

Duplicate entry '76183-2' for key 'PRIMARY'

This seems to be happening during the externallinks_enwiki insert for the 2nd instance of the URL. The key is a combination of the page ID and the auto-incremented url_id from externallinks_global.