Page MenuHomePhabricator

Import may link to the wrong location
Closed, ResolvedPublic

Description

Author: mike.lifeguard+bugs

Description:
When importing Wikipedia:Attribution to English Wikibooks with the namespace selector to "(all)" the import goes to the mainspace with no pseudo-namespace even (it is just "Attribution", not even "Wikipedia:Attribution"). This would be bug 15387.

However the link upon "successful" import links to [[wikipedia:Attribution]], which is an interwiki link to [[Attribution]] (on English Wikipedia) - not to what was actually imported to Wikibooks. The link should point to wherever the content actually went.


Version: unspecified
Severity: minor

Details

Reference
bz15918

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:21 PM
bzimport set Reference to bz15918.
bzimport added a subscriber: Unknown Object (MLST).

It goes back to the problem of being unable to have a namespace and interwiki prefix of the same name :)

If you type [[Wikipedia:Attribution]] into Wikibooks, it doesn't know whether you want to go to the IW url (which it assumes is the case, and follows it) or a local title of the same name.

For kicks, it might be entertaining to try and make a namespace the same as an IW prefix to see how they barf while coexisting...

mike.lifeguard+bugs wrote:

(In reply to comment #1)
[...]

For kicks, it might be entertaining to try and make a namespace the same as an
IW prefix to see how they barf while coexisting...

I did that when first setting up my localhost wiki. It wasn't pretty. I don't know whether it's worth looking at "fixing" that kind of stuff, since that's an ill-advised thing to do anyways. Might be considered a misconfiguration rather than a software bug.

(In reply to comment #2)

(In reply to comment #1)
[...]

For kicks, it might be entertaining to try and make a namespace the same as an
IW prefix to see how they barf while coexisting...

I did that when first setting up my localhost wiki. It wasn't pretty. I don't
know whether it's worth looking at "fixing" that kind of stuff, since that's an
ill-advised thing to do anyways. Might be considered a misconfiguration rather
than a software bug.

I'd be inclined to call it a misc configuration too. If you have two identical namespaces, the software could not be expected to know which one you're referring to. Case in point:

Wikipedia:Attribution. Now, is the Wikipedia: a local namespace or an interwiki prefix? The software can't know :) Perhaps making it default local (if exists) then go to the IW url, but I'm not even sure that's worth fixing either.

  • This bug has been marked as a duplicate of bug 11344 ***