Last modified: 2014-06-07 01:01:51 UTC
VE does not seem to accept the following link: https://graphite.wikimedia.org/render/?width=588&height=310&_salt=1401910888.742&from=00%3A00_20140513&until=23%3A59_20140604&target=frontend.navtiming.totalPageLoadTime.desktop.authenticated.median&target=frontend.navtiming.totalPageLoadTime.desktop.anonymous.median Instead, it reverts to the highlighted text as the link target.
Browser: Chromium 35.0.1916.114 Debian Linux
This shows up in the JS console: Failed to load resource: the server responded with a status of 400 (Bad Request) https://www.mediawiki.org/w/api.php?format=json&action=query&generator=pref…edian&gpsnamespace=0&prop=info%7Cpageprops&ppprop=disambiguation&redirect=
This is two separate bugs – we shouldn't be sending these to the API anyway, but we also should cope with the 400 error, which I've made into bug 66139.
I can replicate this on mediawiki.org but not en.wikipedia.org or my local dev wiki.
The HTTP 400 error we get comes with an error: {"code":"request_too_long","info":"Prefix search request was longer longer than the maximum allowed length. (267 > 255)"} This is sent by CirrusSearch. Which explains why some wikis don't have this issue.
External URLs can be valid titles, we just want to ignore invalid titles (i.e. things over 255 characters).
Change 138016 had a related patch set uploaded by Alex Monk: Don't sent invalid titles from the link inspector to the API https://gerrit.wikimedia.org/r/138016
Change 138016 merged by jenkins-bot: Don't send invalid titles from the link inspector to the API https://gerrit.wikimedia.org/r/138016