Closed Bug 1029629 Opened 10 years ago Closed 10 years ago

wiki.getPage() returning an empty object, inexplicably, for a valid page path

Categories

(developer.mozilla.org Graveyard :: KumaScript, defect)

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 906085

People

(Reporter: sheppy, Unassigned)

Details

Doing wiki.getPage on /zh-CN/docs/Web_Standards returns an empty object (not null, but an empty object).

See https://developer.mozilla.org/en-US/docs/User:Sheppy/TemplateTests for an example of this in action.

What's happening here? This shouldn't happen. It's breaking macros.
Are all wiki.getPage usages causing a problem, or just this specific URL?
(In reply to David Walsh :davidwalsh from comment #1)
> Are all wiki.getPage usages causing a problem, or just this specific URL?

Just specific URLs; I've seen two so far, both in the Chinese locale. I do not know if it happens with others.
Severity: normal → major
As follow up, the problem in this case was an invalid URL -- the page had been moved and contained chinese characters.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.