Last modified: 2013-12-13 20:15:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58691, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56691 - Article title starting with slash ("/")triggers: TypeError: Cannot read property 'ns' of undefined
Article title starting with slash ("/")triggers: TypeError: Cannot read prope...
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: C. Scott Ananian
:
: 57086 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-06 21:07 UTC by Kelson [Emmanuel Engelhart]
Modified: 2013-12-13 20:15 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kelson [Emmanuel Engelhart] 2013-11-06 21:07:18 UTC
For example:
http://parsoid.wmflabs.org/zh//dev/null gives an error:

TypeError: Cannot read property 'ns' of undefined at
Function.Title.fromPrefixedText
(/data/project/parsoid/js/lib/mediawiki.Title.js:59:40) at
MWParserEnvironment.reset
(/data/project/parsoid/js/lib/mediawiki.parser.environment.js:216:20) at
Function.MWParserEnvironment.getParserEnv
(/data/project/parsoid/js/lib/mediawiki.parser.environment.js:280:7) at
parserEnvMw (/data/project/parsoid/js/api/ParserService.js:432:22) at
callbacks
(/data/project/parsoid/js/node_modules/express/lib/router/index.js:164:37)
at interParams (/data/project/parsoid/js/api/ParserService.js:428:2) at
callbacks
(/data/project/parsoid/js/node_modules/express/lib/router/index.js:164:37)
at param
(/data/project/parsoid/js/node_modules/express/lib/router/index.js:138:11)
at pass
(/data/project/parsoid/js/node_modules/express/lib/router/index.js:145:5) at
Router._dispatch
(/data/project/parsoid/js/node_modules/express/lib/router/index.js:173:5)

This seems to impact all wikis.
Comment 1 ssastry 2013-11-15 18:20:24 UTC
*** Bug 57086 has been marked as a duplicate of this bug. ***
Comment 2 ssastry 2013-11-15 18:21:27 UTC
From bug 57086:#c0:

----
> http://localhost:8000/enwiki//dev/null

The crash here seems to be because env.reset( pageName ) is trying to use the
page namespace before env.setPageSrcInfo( src ) sets the meta data.
----
Comment 3 Gerrit Notification Bot 2013-12-02 23:13:02 UTC
Change 98718 had a related patch set uploaded by GWicke:
Bug 56691: Handle page names starting with a slash

https://gerrit.wikimedia.org/r/98718
Comment 4 Gerrit Notification Bot 2013-12-02 23:26:02 UTC
Change 98718 merged by jenkins-bot:
Bug 56691: Handle page names starting with a slash

https://gerrit.wikimedia.org/r/98718
Comment 5 Gabriel Wicke 2013-12-04 01:07:04 UTC
Scheduled for deployment tomorrow.
Comment 6 Gerrit Notification Bot 2013-12-13 19:55:16 UTC
Change 101321 had a related patch set uploaded by GWicke:
Bug 56691: Handle page names starting with a slash

https://gerrit.wikimedia.org/r/101321
Comment 7 Gerrit Notification Bot 2013-12-13 19:57:19 UTC
Change 101321 merged by GWicke:
Bug 56691: Handle page names starting with a slash

https://gerrit.wikimedia.org/r/101321

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links