Page MenuHomePhabricator

Additional space in interwiki link causes duplicates
Open, LowPublic

Description

Page contained [[foo:Category:_Bar]]
interwiki.py incorrectly found duplicates Category:_Bar and Category:Bar

======Post-processing [[gl:Categoría:Alutiiq]]======
ERROR: Found more than one link for wiktionary:en
==============================
Links to wiktionary:en
  (1) Found link to [[en:Category: Alutiiq language]] in:
        [[gl:Categoría:Alutiiq]]
  (2) Found link to [[en:Category:Alutiiq language]] in:
        [[fr:Catégorie:alutiiq]]
        [[hr:Kategorija:Alutički jezik]]
        [[lt:Kategorija:Aliutiku kalba]]
Which variant should be used? (<number> [1-3], [n]one, [g]ive up, [q]uit): 2
==============================
Found link to [[lt:Kategorija:Aliutiku kalba]] in:
    [[en:Category: Alutiiq language]]
    [[en:Category:Alutiiq language]]
    [[fr:Catégorie:alutiiq]]
    [[hr:Kategorija:Alutički jezik]]
What should be done? ([A]ccept, [r]eject, [g]ive up, accept a[l]l): l
Updating links on page [[fr:Catégorie:alutiiq]].
Changes to be made: Bot: Adding [[gl:Categoría:Alutiiq]]
@@ -12,0 +13 @@
+ [[gl:Categoría:Alutiiq]]

@@ -14 +15 @@
- [[lt:Kategorija:Aliutiku kalba]]
+ [[lt:Kategorija:Aliutiku kalba]]

NOTE: Updating live wiki...
Updating links on page [[gl:Categoría:Alutiiq]].
Changes to be made: Bot: Adding fr, hr, lt; modifying en
@@ -1 +1,6 @@
+
+
- [[en:Category:_Alutiiq language]]
+ [[en:Category:Alutiiq language]]
+ [[fr:Catégorie:alutiiq]]
+ [[hr:Kategorija:Alutički jezik]]
+ [[lt:Kategorija:Aliutiku kalba]]

NOTE: Updating live wiki...
WARNING: wiktionary: [[lt:Kategorija:Aliutiku kalba]] does not link to [[gl:Cate
goría:Alutiiq]]
WARNING: wiktionary: [[en:Category:Alutiiq language]] does not link to [[gl:Cate
goría:Alutiiq]]
WARNING: wiktionary: [[hr:Kategorija:Alutički jezik]] does not link to [[gl:Cate
goría:Alutiiq]]

Event Timeline

JAnD created this task.Aug 5 2015, 9:41 AM
JAnD raised the priority of this task from to Low.
JAnD updated the task description. (Show Details)
JAnD added a subscriber: JAnD.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptAug 5 2015, 9:41 AM
XZise added a subscriber: XZise.Aug 5 2015, 11:45 AM

Could you explain more what the problem is? Both links point to the same page.

JAnD added a comment.Aug 5 2015, 12:08 PM

Could you explain more what the problem is? Both links point to the same page.

Both links point to same page, but bot thinks tehre are two different pages

Even though [[en:Category:Bar]] is the same as [[en:Category:_Bar]], the bot is asking the operator to choose one of them (i.e. found duplicate links for en). It should just automatically go with the non-spaced version and not ask anything. If -auto was used, it would probably fail to complete the linking process.

JAnD added a comment.Aug 19 2015, 12:28 PM

Another case
https://eu.wiktionary.org/w/index.php?title=Kategoria:Partikulak_kroazieraz&curid=59008&diff=265926&oldid=265650

======Post-processing [[eu:Kategoria:Partikulak kroazieraz]]======
ERROR: Found more than one link for wiktionary:hr
==============================
Links to wiktionary:hr
  (1) Found link to [[hr:Kategorija: Hrvatske čestice]] in:
        [[eu:Kategoria:Partikulak kroazieraz]]
  (2) Found link to [[hr:Kategorija:Hrvatske čestice]] in:
        [[az:Kateqoriya:Edat (Xorvat dili)]]
Which variant should be used? (<number> [1-2], [n]one, [g]ive up, [q]uit): 2
==============================
Found link to [[az:Kateqoriya:Edat (Xorvat dili)]] in:
    [[hr:Kategorija: Hrvatske čestice]]
    [[hr:Kategorija:Hrvatske čestice]]
What should be done? ([A]ccept, [r]eject, [g]ive up, accept a[l]l):
Updating links on page [[eu:Kategoria:Partikulak kroazieraz]].
Changes to be made: Bot: Adding [[az:Kateqoriya:Edat (Xorvat dili)]]; modifying
[[hr:Kategorija:Hrvatske čestice]]
@@ -5 +5,2 @@
+ [[az:Kateqoriya:Edat (Xorvat dili)]]
- [[hr:Category: Hrvatske čestice]]
+ [[hr:Kategorija:Hrvatske čestice]]

NOTE: Updating live wiki...
Updating links on page [[hr:Kategorija:Hrvatske čestice]].
Changes to be made: Bot: Adding [[eu:Kategoria:Partikulak kroazieraz]]
@@ -4 +4,2 @@
- [[az:Kateqoriya:Edat (Xorvat dili)]]
+ [[az:Kateqoriya:Edat (Xorvat dili)]]
+ [[eu:Kategoria:Partikulak kroazieraz]]

NOTE: Updating live wiki...
WARNING: wiktionary: [[az:Kateqoriya:Edat (Xorvat dili)]] does not link to [[eu:Kategoria:Partikulak kroazieraz]]