Page MenuHomePhabricator

AWB handling of blacklisted URLs gives Exception instead of declining the edit/warning the user
Closed, ResolvedPublic

Description

description:

workaround:

Exception:OperationFailedException
Message:`Operation 'edit' ended with result 'Failure'.
Xml: '<?xml version="1.0"?><api><edit code="spamprotectiontext" info="Hit AbuseFilter: " warning="&lt;table id=&quot;mw-spamprotectiontext&quot; class=&quot;plainlinks fmbox fmbox-warning&quot; role=&quot;presentation&quot;&gt;&lt;tr&gt;&lt;td class=&quot;mbox-text&quot;&gt;Your edit was not saved because it contains a new external link to a &lt;a href=&quot;/wiki/Wikipedia:Spam_blacklist&quot; title=&quot;Wikipedia:Spam blacklist&quot;&gt;site registered on Wikipedia&#039;s blacklist&lt;/a&gt;. &#10;&lt;ul&gt;&lt;li&gt; &lt;b&gt;To save your changes now&lt;/b&gt;, you must go back and &lt;i&gt;remove the blocked link&lt;/i&gt; (shown below), and then save.&#10;&lt;ul&gt;&lt;li&gt;Note that if you used a redirection link or &lt;a href=&quot;/wiki/URL_shortening&quot; title=&quot;URL shortening&quot;&gt;URL shortener&lt;/a&gt; (like e.g. &#039;goo.gl&#039;, &#039;t.co&#039;, &#039;youtu.be&#039;, &#039;bit.ly&#039;), you may still be able to save your changes by using the direct, non-shortened link - you generally obtain the non-shortened link by following the link, and copying the contents of the address bar of your web-browser after the page has loaded. &lt;/li&gt;&#10;&lt;li&gt; Links containing &#039;google.com/url?&#039; are resulting from a copy/paste from the result page of a Google search - please follow the link on the result page, and copy/paste the contents of the address bar of your web-browser after the page has loaded.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&#10;&lt;li&gt; &lt;b&gt;If you feel the link is needed&lt;/b&gt;, you can: &#10;&lt;ul&gt;&lt;li&gt; &lt;i&gt;Request that the entire website be allowed&lt;/i&gt;, that is, removed from the &lt;a href=&quot;/wiki/MediaWiki_talk:Spam-blacklist#Proposed_removals&quot; title=&quot;MediaWiki talk:Spam-blacklist&quot;&gt;local&lt;/a&gt; or &lt;a href=&quot;https://meta.wikimedia.org/wiki/Talk:Spam_blacklist#Proposed_removals&quot; class=&quot;extiw&quot; title=&quot;meta:Talk:Spam blacklist&quot;&gt;global&lt;/a&gt; spam blacklists (check both lists to see which one is affecting you).&lt;/li&gt;&#10;&lt;li&gt; &lt;i&gt;Request that just the specific page be allowed&lt;/i&gt;, without unblocking the whole website, by asking on the &lt;a href=&quot;/wiki/MediaWiki_talk:Spam-whitelist&quot; title=&quot;MediaWiki talk:Spam-whitelist&quot;&gt;spam whitelist talk page&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&#10;Blacklisting indicates past problems with the link, so any requests should &lt;b&gt;clearly&lt;/b&gt; demonstrate how inclusion would benefit Wikipedia.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;" result="Failure" /></api>'`
Call stack:<pre> vid WikiFunctions.API.ApiEdit.CheckForErrors(String xml, String action)
vid WikiFunctions.API.ApiEdit.Save(String pageText, String summary, Boolean minor, WatchOptions watch)</pre>

thread: InvokerThread (Save)
OS: Microsoft Windows NT 6.2.9200.0
version: AutoWikiBrowser (5.8.6.0), WikiFunctions (5.8.6.0), revision 12004 (2016-04-18 21:56:07)
net: 2.0.50727.8689
duplicate:
site: https://en.wikipedia.org

Event Timeline

Rjwilmsi claimed this task.
Rjwilmsi subscribed.

rev 12053