Last modified: 2014-08-05 03:56:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57298, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55298 - inline interwiki links shouldn't be treated as such
inline interwiki links shouldn't be treated as such
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Pywikipedia bugs
:
: 55041 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 05:00 UTC by Kunal Mehta (Legoktm)
Modified: 2014-08-05 03:56 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 05:00:07 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/984/
Reported by: mcknol
Created on: 2009-07-17 00:02:21
Subject: self-interwikis shouldn't be removed
Original description:
Interwiki.py removes every internal link which refers to the own language site. For example, in en.wiki a link like \[\[en:article\]\] would be removed by the bot. This seems logical \(the main syntax for non-interwiki interlanguage links would be \[\[:en:article\]\]\), but the wiki-software doesn't interpret self-links as interwiki-links, so the pywikipedia-bot should neither do that. 

Here is an example: http://en.wikipedia.org/w/index.php?title=Help:Parser\_function&diff=290795738&oldid=288396807


Pywikipedia \[http\] trunk/pywikipedia \(r7065, 2009/07/14, 19:34:51\)
Python 2.6 \(r26:66721, Oct  2 2008, 11:35:03\) \[MSC v.1500 32 bit \(Intel\)\]
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 05:00:09 UTC
Why you decided that it was interwiki.py ? I as see on edit-description it'is not interwiki.py
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 05:00:11 UTC
The edit description was "robot Removing: en:User:Cacycle/wikEd".
This comes from interwiki.py and it removed the link due to crossed namespace as interwiki selflink. But Mediawiki interpreted it correct and the behavior must be changed.
Comment 3 xqt 2013-10-24 12:52:05 UTC
It is not interwiki.py stuff but the method(s) links are interpreted as interlangage links.
Comment 4 Amir Ladsgroup 2013-10-25 17:14:03 UTC
if you use [[:en:Foo]] instead of [[en:Foo]] It'll be solved
Comment 5 Merlijn van Deen (test) 2013-10-25 17:16:56 UTC
Amir, that was already noted: "But Mediawiki interpreted it correct and the behavior must be changed.". Pywikibot should mirror MW's behavior, so we should detect [[en:etc]] is a valid link on enwiki.
Comment 6 Ricordisamoa 2014-07-24 18:32:13 UTC
*** Bug 55041 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links