Last modified: 2013-10-23 18:17:08 UTC
I found a rather obscure bug in action=parse. While using the __NOEDITSECTION__ behavior switch on wikitext that contains a heading and a gallery, the section edit link is nevertheless returned. Take the following wikitext: " == Headline == <gallery> Image:Example.jpg|Caption1 </gallery>" Make the following request: text=__NOEDITSECTION__%0A%3D%3D+Headline+%3D%3D%0A%3Cgallery%3E%0AImage%3AExample.jpg%7CCaption1%0A%3C%2Fgallery%3E&format=json&action=parse The response includes the unwanted edit link: <span class="editsection">[<a href="/mediawiki/index.php?title=API&action=edit&section=1" title="Edit section: Headline">edit</a>]</span> What's interesting is that removing the "|Caption1" from the wikitext fixes the problem.
Seems to be fixed in 1.19. At least I can't reproduce it anymore neither with an existing nor a missing filename. My guess is, that r109547 fixed it, since that revision removed an instance of message parsing from within the parser, which often leads to bugs like this.
Fixed by r109547 probably. Let us know if you still see this.