Project

General

Profile

Actions

Bug #150

closed

metacat accepts invalid documents

Added by Matt Jones over 23 years ago. Updated about 22 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Jivka Bojilova
Category:
metacat
Target version:
Start date:
09/22/2000
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
150

Description

Currently, the metacat servlet accepts documents that are not valid according to
their type. We need to change this behavior so that these documents are
rejected fromthe server. The only way to save a document that is invalid is to
remove the DOCTYPE assertion that the document is of a certain type. Thus, we
can save only "typeless" documents (with no Public ID) and "typed" documents
that are valid according to the DTD referenced by their Public ID.

This change will make metadata more predictable and therefore applications that
depend on metadata contents more reliable. It will require changes to the
various clients (web, java) to deal with the newly rejected documents.

Actions #1

Updated by Jivka Bojilova over 23 years ago

DONE
1. Turned on the validation in order only valid xml docs comformed to the
specified dtd (if any) to be submitted in metacat
2. With validation "on" white spaces are reported from ignorableWhitespace()
callback, not from characters() (as with validation "off")
Thus included insert of whitespaces from ignorableWhitespace()
3. If document have been rejected from submission, client could submit it again
by removing the DOCTYPE declaration. Thus only "typeless" documents (with no
Public ID) or "typed" documents that are valid according to the DTD referenced
by their Public ID can be saved.

Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 150

Actions

Also available in: Atom PDF