https://bugzilla.wikimedia.org/show_bug.cgi?id=55861
Web browser: ---
Bug ID: 55861
Summary: If a not valid JSON string is passed to action=flow in
the params parameter, it throws an internal error
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: Flow
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
#0 /srv/mediawiki/includes/WebRequest.php(1493): FauxRequest->__construct(NULL,
true)
#1 /srv/mediawiki/extensions/Flow/includes/api/ApiFlow.php(27):
DerivativeRequest->__construct(Object(WebRequest), NULL, true)
#2 /srv/mediawiki/includes/api/ApiMain.php(834): ApiFlow->execute()
#3 /srv/mediawiki/includes/api/ApiMain.php(380): ApiMain->executeAction()
#4 /srv/mediawiki/includes/api/ApiMain.php(351):
ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/api.php(73): ApiMain->execute()
#6 {main}
From ApiFlow.php:26-27
$requestParams = json_decode( $params['params'], true );
$request = new DerivativeRequest( $this->getContext()->getRequest(),
$requestParams, true );
This is because json_decode returns NULL and DerivativeRequest doesn't want
that.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l