Project

General

Profile

Actions

Feature #7099

open

Create a new admin page for Metacat admins to register schemas

Added by Jing Tao about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
08/30/2016
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Currently we add new schemas base on Metacat release sand occasionally add it by sql commands.
We will disable Metacat to download external schemas and reject a xml object if the schema of the object can't be found locally.(https://projects.ecoinformatics.org/ecoinfo/issues/7096). So we believe the request of adding new schemas will increase. We need provide a admin page to register schemas.

Actions #1

Updated by Jing Tao about 8 years ago

The schema locations is /tomcat-home/webapps/metacat/schema (in order to be accessible by the http), so the new installation of Metacat may delete the schemas added by this page. It will create the scenario - the xml_catalog has the record but the schema file itself has been gone.

The solution I am thinking is the registry process will create two copies of the schema, one is in /tocmat-home/webpass/metacat/schema; the other is in /var/metacat/schema. If the copy of /tocmat-home/webpass/metacat/schema is gone, Metacat can copy it back from /var/metacat/schema.

Actions #2

Updated by Matt Jones about 8 years ago

I think this is a good idea, but I think we should go the other way -- have the copy in wepapps/metacat/schema be the 'shipped' version, and copy those on Metacat start to /var/metacat/schemas, and use that as the official 'local' copy.

Actions #3

Updated by Jing Tao about 8 years ago

This is good idea - we can avoid to create two copies of registered schemas in the registry process and the scenario that registered schemas are deleted. However, the /var/metacat/schemas is not accessible by Apache by default, so we have to set the schema location by the file protocol. Also it is hard for users to look at the schema itself.

Actions #4

Updated by Jing Tao about 8 years ago

  • Target version changed from 2.8.0 to 2.9.0
Actions

Also available in: Atom PDF