Project

General

Profile

Actions

Bug #4645

closed

handleGetRevisionAndDocTypeAction should search both xml_documents and xml_revisions table

Added by Jing Tao over 14 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
01/04/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4645

Description

handleGetRevisionAndDocTypeAction API will return both revision and doctype for a given docid. Currently, it only searchs the xml_documents. It may gives clients a wrong message in this case:

There is no record in xml_documents, but it did have records in xml_revision table.

Here is the solution:

1. Search xml_documents table first. If metacat finds a result, returns it back to client.
2. If couldn't find result in xml_documents, then search xml_revisions table.

Actions

Also available in: Atom PDF