Project

General

Profile

Bug #4645

handleGetRevisionAndDocTypeAction should search both xml_documents and xml_revisions table

Added by Jing Tao almost 10 years ago. Updated almost 10 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.

History

#1 Updated by Jing Tao almost 10 years ago

now, it can search both xml_documents and xml_revisions.

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 4645

Also available in: Atom PDF