Page MenuHomePhabricator

ip normalization makes pages inaccessable
Open, LowestPublic

Description

An ip page with leading zero in an octet cannot be access

Found on [1], but normalized on [2]. Try to visit on de.wp: [3]

It is possible to remove this normalization?

Or should it stay? I can move them with the page id (over api), but would be nice to have a maintenance script to clean up all wikis on wmf and third party wikis with update.php when it stay.

[1] https://de.wikipedia.org/w/api.php?action=query&list=allpages&apfrom=128.220.231.02&apnamespace=2&aplimit=1
Content:

{
    "batchcomplete": "",
    "continue": {
        "apcontinue": "128.220.231.4",
        "continue": "-||"
    },
    "query": {
        "allpages": [
            {
                "pageid": 6402918,
                "ns": 2,
                "title": "Benutzer:128.220.231.02"
            }
        ]
    }
}

[2] https://de.wikipedia.org/w/api.php?action=query&titles=Benutzer:128.220.231.02&prop=info
Content:

{
    "batchcomplete": "",
    "query": {
        "normalized": [
            {
                "from": "Benutzer:128.220.231.02",
                "to": "Benutzer:128.220.231.2"
            }
        ],
        "pages": {
            "-1": {
                "ns": 2,
                "title": "Benutzer:128.220.231.2",
                "missing": "",
                "contentmodel": "wikitext",
                "pagelanguage": "de",
                "pagelanguagehtmlcode": "de",
                "pagelanguagedir": "ltr"
            }
        }
    }
}

[3] https://de.wikipedia.org/wiki/Benutzer:128.220.231.02

Event Timeline

API edit action does not allow to create such a page

/w/api.php?action=edit&format=json&title=User%3A128.220.231.02&text=This%20is%20a%20test%20for%20%5B%5Bphab%3AT180996%5D%5D&summary=This%20is%20a%20test%20for%20%5B%5Bphab%3AT180996%5D%5D&minor=1&createonly=1&token=<>

{
    "edit": {
        "new": "",
        "result": "Success",
        "pageid": 97816,
        "title": "User:128.220.231.2",
        "contentmodel": "wikitext",
        "oldrevid": 0,
        "newrevid": 339789,
        "newtimestamp": "2017-12-03T11:05:56Z"
    }
}

So I would assume no new cases can created, but it is possible over gui to create a page with subpage and the wrong ip - https://test.wikipedia.org/wiki/User:128.220.231.02/T180996

I have moved with suppressredirect the remaining pages on dewiki by using the api move action with fromid, and than deleted the pages.

Local log: https://de.wikipedia.org/w/index.php?title=Spezial:Logbuch/move/Umherirrender&offset=20171204000000&type=move&user=Umherirrender&limit=15