Project

General

Profile

Actions

Bug #5273

closed

docs with inline-data allow invalid xml into metacat

Added by Chad Berkley over 13 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Immediate
Category:
metacat
Target version:
Start date:
01/13/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5273

Description

If you insert a document with inline-data, the data is stripped out of the document before it is validated. However, when you do a GET on the document, it is read off of the disk. So if you insert a doc with inline-data that has invalid characters in it (like unescaped ampersands), metacat will not recognize that it is invalid, but when you try to get the document, you will get a parser error if you try to parse it.

We should be validating the document first before stripping inline-data out of it.


Files

inline.xml (2.19 KB) inline.xml ben leinfelder, 10/27/2011 06:58 PM
Actions

Also available in: Atom PDF