Page MenuHomePhabricator

AWB breaks image thumbnails containing a wiki link
Closed, DeclinedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable 'Apply general fixes'.
  • Add a random 'Find and replace' (I used FIND \{\{ *(d|D)ate( de naissance| de décès)*- *\|([^\}]*)\| *(en|à|aux*|dans|par) [^\|\}]* REPLACE {{$1ate$2|$3, but it doesn't seem to matter).
  • Edit a page with an image with a wiki link inside its caption (e.g. this version of a page, the image code is : [[Fichier:Starlette.jpg|vignette|droite|Une starlette à [[Cannes]] en 1979.]]).

What happens?:
AWB changes the opening brackets to closing ones, breaking the image thumbnail (e.g. this edit )

What should have happened instead?:
AWB should have done nothing.

Other information (browser name/version, screenshots, etc.):
I used it on a tabletop PC with Windows 10 and Firefox 142.0.1 (64 bits), but I don't think it matters.
Note that the other image thumbnails on this page have not been modified, such as [[Fichier:Baie de cannes.jpg|vignette|droite|La [[baie de Cannes]].]] whose syntax is similar.
It seems that it is the only time this bug occured in about 8,000+ edits.

Event Timeline

As you identified in your next edit, there was a stray bracket in the "Festival de Cannes : la petite histoire de la montée des marches et son célèbre tapis rouge" citation further down the page. AWB can't always get bracket fixes right. Following your correction to the page AWB now doesn't propose any bracket-related fix to the page so I propose to resovle this as a source data issue.