mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 21:01:48 +02:00
Remove xmlparse(document '') test
This one test was behaving differently between the ubuntu fix for CVE-2015-7499 and the base "expected" file. It's not worth having yet another version of the expected file for this test, so drop it. Perhaps at some point when all distros have settled down to the same behavior on this test, it can be restored. Problem found by me on libxml2 (2.9.1+dfsg1-3ubuntu4.6). Solution suggested by Tom Lane. Backpatch to 9.5, where the test was added.
This commit is contained in:
parent
7b96bf445a
commit
e2f1765ce0
@ -263,17 +263,6 @@ SELECT xmlparse(content '<nosuchprefix:tag/>');
|
|||||||
<nosuchprefix:tag/>
|
<nosuchprefix:tag/>
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT xmlparse(document '');
|
|
||||||
ERROR: invalid XML document
|
|
||||||
DETAIL: line 1: switching encoding : no input
|
|
||||||
|
|
||||||
^
|
|
||||||
line 1: Document is empty
|
|
||||||
|
|
||||||
^
|
|
||||||
line 1: Start tag expected, '<' not found
|
|
||||||
|
|
||||||
^
|
|
||||||
SELECT xmlparse(document ' ');
|
SELECT xmlparse(document ' ');
|
||||||
ERROR: invalid XML document
|
ERROR: invalid XML document
|
||||||
DETAIL: line 1: Start tag expected, '<' not found
|
DETAIL: line 1: Start tag expected, '<' not found
|
||||||
|
@ -204,10 +204,6 @@ SELECT xmlparse(content '<nosuchprefix:tag/>');
|
|||||||
ERROR: unsupported XML feature
|
ERROR: unsupported XML feature
|
||||||
DETAIL: This functionality requires the server to be built with libxml support.
|
DETAIL: This functionality requires the server to be built with libxml support.
|
||||||
HINT: You need to rebuild PostgreSQL using --with-libxml.
|
HINT: You need to rebuild PostgreSQL using --with-libxml.
|
||||||
SELECT xmlparse(document '');
|
|
||||||
ERROR: unsupported XML feature
|
|
||||||
DETAIL: This functionality requires the server to be built with libxml support.
|
|
||||||
HINT: You need to rebuild PostgreSQL using --with-libxml.
|
|
||||||
SELECT xmlparse(document ' ');
|
SELECT xmlparse(document ' ');
|
||||||
ERROR: unsupported XML feature
|
ERROR: unsupported XML feature
|
||||||
DETAIL: This functionality requires the server to be built with libxml support.
|
DETAIL: This functionality requires the server to be built with libxml support.
|
||||||
|
@ -251,10 +251,6 @@ SELECT xmlparse(content '<nosuchprefix:tag/>');
|
|||||||
<nosuchprefix:tag/>
|
<nosuchprefix:tag/>
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT xmlparse(document '');
|
|
||||||
ERROR: invalid XML document
|
|
||||||
DETAIL: line 1: switching encoding : no input
|
|
||||||
line 1: Document is empty
|
|
||||||
SELECT xmlparse(document ' ');
|
SELECT xmlparse(document ' ');
|
||||||
ERROR: invalid XML document
|
ERROR: invalid XML document
|
||||||
DETAIL: line 1: Start tag expected, '<' not found
|
DETAIL: line 1: Start tag expected, '<' not found
|
||||||
|
@ -71,7 +71,6 @@ SELECT xmlparse(content '<relativens xmlns=''relative''/>');
|
|||||||
SELECT xmlparse(content '<twoerrors>&idontexist;</unbalanced>');
|
SELECT xmlparse(content '<twoerrors>&idontexist;</unbalanced>');
|
||||||
SELECT xmlparse(content '<nosuchprefix:tag/>');
|
SELECT xmlparse(content '<nosuchprefix:tag/>');
|
||||||
|
|
||||||
SELECT xmlparse(document '');
|
|
||||||
SELECT xmlparse(document ' ');
|
SELECT xmlparse(document ' ');
|
||||||
SELECT xmlparse(document 'abc');
|
SELECT xmlparse(document 'abc');
|
||||||
SELECT xmlparse(document '<abc>x</abc>');
|
SELECT xmlparse(document '<abc>x</abc>');
|
||||||
|
Loading…
Reference in New Issue
Block a user