https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
Web browser: --- Bug ID: 55143 Summary: urls ending on a ) incorrectly parsed Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: Unprioritized Component: weblinkchecker.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1616/ Reported by: harmenhuizinga Created on: 2013-04-14 09:25:39 Subject: urls ending on a ) incorrectly parsed Assigned to: amird Original description: $ python version.pyPywikipedia [http] trunk/pywikipedia (r11368, 2013/04/13, 08:16:45, ok) Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] config-settings: use_api = True use_api_login = True unicode test: ok
Weblinks with an ) at the end of the url are handled incorrect by weblinkchecker. That means that the ) is stripped from the url. See example:
$ python weblinkchecker.py -lang:nl -page:Gebruiker:Smile4ever/test Getting 1 page from wikipedia:nl... Waiting for remaining 1 threads to finish, please wait... *[[Gebruiker:Smile4ever/test]] links to http://nl.wikipedia.org/wiki/Koe%5C_%5C(rund - 404 Not Found. Saving history...
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- I made r11378 to fix it, please test it again I removed parenthesis per http://www.ietf.org/rfc/rfc2396.txt which has considered ")" as a unreserved character (means using ")" at end of the URL causes no harm and It's possible) but maybe I'm wrong which means we should do another way (percent-encoding urls before sending it this URL compiler)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **assigned_to**: nobody --> amird
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Now it works for me. Thanks.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open --> closed-fixed
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- reopened due to patch # 3455789, committed code r9797
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
--- Comment #6 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: closed-fixed --> open-fixed
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1616
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |UNCONFIRMED CC| |info@gno.de Ever confirmed|1 |0
https://bugzilla.wikimedia.org/show_bug.cgi?id=55143
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |ricordisamoa@live.it Resolution|--- |DUPLICATE
--- Comment #7 from Ricordisamoa ricordisamoa@live.it ---
*** This bug has been marked as a duplicate of bug 54568 ***
pywikipedia-bugs@lists.wikimedia.org