mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-11 07:26:03 +00:00
da8e918fb3
Additionally - remove RestbaseInterface::checkBackend. When HTTP requests are banned from unit tests this method makes no sence. MathoidCli tests were not reenabled cause it's a bit hard to mock shell acceess. Hopefully as part of Shellbox transition we can have MockShell trait in core and reenable those tests Bug: T265628 Depends-On: I350ed59af603a0504704af3265787a4be8f2dc2a Change-Id: I294d0ed905193850dc38cb3071eb9b31c8863121
374 lines
6.3 KiB
JSON
374 lines
6.3 KiB
JSON
{
|
|
"status": 400,
|
|
"type": "bad_request",
|
|
"title": "Bad Request",
|
|
"detail": {
|
|
"error": {
|
|
"message": "Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
|
|
"expected": [
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
" ",
|
|
"\t",
|
|
"\n",
|
|
"\r"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "_",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "^",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
[
|
|
"a",
|
|
"z"
|
|
],
|
|
[
|
|
"A",
|
|
"Z"
|
|
]
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
[
|
|
"0",
|
|
"9"
|
|
]
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
",",
|
|
":",
|
|
";",
|
|
"?",
|
|
"!",
|
|
"'"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "-",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"-",
|
|
"+",
|
|
"*",
|
|
"="
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
">",
|
|
"<",
|
|
"~"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"%",
|
|
"$"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"(",
|
|
")",
|
|
"."
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"/",
|
|
"|"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "[",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "{",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\begin",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\begin{",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "]",
|
|
"ignoreCase": false
|
|
}
|
|
],
|
|
"found": null,
|
|
"location": {
|
|
"start": {
|
|
"offset": 8,
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"offset": 8,
|
|
"line": 1,
|
|
"column": 9
|
|
}
|
|
},
|
|
"name": "SyntaxError"
|
|
},
|
|
"success": false,
|
|
"warnings": [],
|
|
"status": "S",
|
|
"details": "SyntaxError: Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
|
|
"offset": 8,
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"method": "POST",
|
|
"uri": "/texvcinfo",
|
|
"success": false,
|
|
"log": {
|
|
"error": {
|
|
"message": "Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
|
|
"expected": [
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
" ",
|
|
"\t",
|
|
"\n",
|
|
"\r"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "_",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "^",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
[
|
|
"a",
|
|
"z"
|
|
],
|
|
[
|
|
"A",
|
|
"Z"
|
|
]
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
[
|
|
"0",
|
|
"9"
|
|
]
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
",",
|
|
":",
|
|
";",
|
|
"?",
|
|
"!",
|
|
"'"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "-",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"-",
|
|
"+",
|
|
"*",
|
|
"="
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
">",
|
|
"<",
|
|
"~"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"%",
|
|
"$"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"(",
|
|
")",
|
|
"."
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "class",
|
|
"parts": [
|
|
"/",
|
|
"|"
|
|
],
|
|
"inverted": false,
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "[",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "{",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\begin",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "\\begin{",
|
|
"ignoreCase": false
|
|
},
|
|
{
|
|
"type": "literal",
|
|
"text": "]",
|
|
"ignoreCase": false
|
|
}
|
|
],
|
|
"found": null,
|
|
"location": {
|
|
"start": {
|
|
"offset": 8,
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"offset": 8,
|
|
"line": 1,
|
|
"column": 9
|
|
}
|
|
},
|
|
"name": "SyntaxError"
|
|
},
|
|
"success": false,
|
|
"warnings": [],
|
|
"status": "S",
|
|
"details": "SyntaxError: Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
|
|
"offset": 8,
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"error": "SyntaxError: Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found."
|
|
}
|