https://bugzilla.wikimedia.org/show_bug.cgi?id=38906

       Web browser: ---
             Bug #: 38906
           Summary: Parsoid does not handle urlencoded interwiki prefixes
                    correctly
           Product: VisualEditor
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser/Parsoid
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


http://localhost:8000/localhost:VisualEditor:Foo works and parses
VisualEditor:Foo on localhost

http://localhost:8000/localhost:VisualEditor%3AFoo works too

http://localhost:8000/localhost%3AVisualEditor%3A Foo does not work, it doesn't
recognize the interwiki prefix, falls back to the default interwiki (mw:), and
tries to parse [[mw:Localhost:VisualEditor:Foo]].

Debugging shows that in the "Regular article parsing" callback on line 397,
req.params is set to [ undefined, 'localhost:VisualEditor:Lists' ], whereas if
the colons aren't urlencoded it's [ 'localhost', 'VisualEditor:Lists' ]. It
looks like app.get()'s regex mode isn't processing urlencoded characters
correctly even though it does unescape the matches before putting them in
req.params.

This is obviously a blocker for making VisualEditor always use an interwiki
prefix.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to