Page MenuHomePhabricator

Interwiki links shouldn't be checked for length in Title::newFromText
Open, LowPublic

Description

  1. Interwikis like [[google: ]] does not apply the same limit.
  2. Namespace info is unknown in the remote wiki: [[zh:Wikipedia:... (255 dots) ...]] can be legal on zhwiki but cannot pass length check on enwiki as an interwiki link.

A page that demonstrates the problem: https://zh.wikipedia.org/wiki/User:Liangent/bug27275

Details

Reference
bz27275

Event Timeline

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

Could you please point to real cases or examples where this is a problem?

(In reply to comment #1)

Could you please point to real cases or examples where this is a problem?

To make links on [[zh:User:Liangent/bug27275]] work.

Why is this a bug belonging to the Wikimedia product?

Sorry, I'm trying to find the right home for it (and learning while doing it).

It seems the related code is at includes / Title.php 2732-2743

https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blame;f=includes/Title.php;hb=bdb325cb4ef1761417024980dbf7b6a70a3d996f#l2707

Amire80 changed the task status from Open to Stalled.Mar 4 2018, 9:14 AM
Amire80 changed the task status from Stalled to Open.
Amire80 edited projects, added MediaWiki-Interwiki; removed MediaWiki-General.
Amire80 updated the task description. (Show Details)
Amire80 updated the task description. (Show Details)
Amire80 removed subscribers: Kosikfl, wikibugs-l-list.