Page MenuHomePhabricator

Page Curation can report error of "$1"
Closed, DuplicatePublic

Description

When playing with page creation on a local wiki several of my attempts to triage pages displayed a browser alert

An error occurred while marking the page as reviewed: $1

If you open the browser console's Net tab, the actual API error is

"error": {
    "code": "appendnotsupported",
    "info": "Can't append to pages using content model flow-board",
    "*": "See http://localhost/wiki/api.php for API usage"
}

Disregarding the circumstances of the error, the PageTriage JS should always provide a parameter and never display $1. The error handler function should use data.error.info if it is set, otherwise the internalerror message.

(The error circumstance here is T85030.)

Event Timeline

Spage raised the priority of this task from to Low.
Spage updated the task description. (Show Details)
Spage added a project: PageTriage.
Spage subscribed.
Spage set Security to None.
JJMC89 raised the priority of this task from Low to Needs Triage.Jun 6 2018, 12:50 AM
JJMC89 subscribed.

While stub-tagging a long series of one-line stubs about places in Chad that look like they were created by a script, I got the message An error occurred while marking the page as reviewed: $1 several times. Most problematic is that it marked the page as patrolled but did not add the tag.