Project

General

Profile

  • svn:eol-style: native
  • svn:executable: *
  • svn:keywords: Author Date Id Revision

# Date Author Comment
9960 09/09/2016 09:58 PM Jing Tao

Down the debug level from debug to trace.

9918 09/06/2016 03:43 PM Jing Tao

Disable the feature of downloading external schemas.

9583 03/23/2016 03:57 PM Jing Tao

If a format id in the system metadata is registered in the xml_catalog table, we will use the schema location for the format id to validate the xml instance;
otherwise, we will use our previous way.

7403 10/16/2012 01:50 PM ben leinfelder

remove morpho.jar -- moved needed classes into shared utilities project. (currently building form utilities trunk -- be sure to 'ant fullclean' to get the latest utilities.jar built)

7137 04/17/2012 03:15 PM ben leinfelder

no not record EML access rules that use the "denyFirst" permOrder.
https://redmine.dataone.org/issues/2614

7128 04/09/2012 03:18 PM ben leinfelder

add a parameter for optionally writing EML-embedded access control rules to the Metacat DB.
https://redmine.dataone.org/issues/2584
https://redmine.dataone.org/issues/2583

6606 11/04/2011 02:45 PM ben leinfelder

uses prepared statement instead of plain old statement.
deprecated the DBConnection.createStatement() method to discourage direct parameter value use in favor of parameter binding.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527

6595 11/02/2011 08:40 PM ben leinfelder

http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527

5888 02/02/2011 05:36 PM ben leinfelder

pass the root exception message up the call chain so that it can effectively be reported as a helpful error message. also, the JUnit test expects the specific error message (SchemaRegistryTest)

5752 12/21/2010 02:26 PM ben leinfelder

use detected XML encoding when reading/writing files
use UTF-8 as default when performing queries in the DB (assume DB is using UTF-8)
remove as many PrintWriters (uses system default character encoding only) as possible and construct OutputStreamWriters where explicit encoding can be given....

5454 07/26/2010 08:04 PM berkley

debug statements in dbsaxhandler

5208 02/03/2010 01:29 PM daigle

Move the chunking of large test element data to centralized location in DBSAXNode.writeChildNodeToDB(). Beff up logging

5030 08/24/2009 02:34 PM daigle

Change location of PropertyService to properties directory

5015 08/04/2009 02:32 PM daigle

Create database and shared directories for database management code and shared code respectively.

4698 12/26/2008 01:07 PM daigle

Renamed MetaCatUtil to MetacatUtil

4470 10/21/2008 03:22 PM daigle

Add some generics typing. Fixed comments.

4425 10/09/2008 09:43 AM daigle

Store schemaLocations as they are found in startElement. Save them in endDocument. In this way, schemas will only get saved locally if the document parses successfully.

4213 08/05/2008 05:50 PM daigle

qualify xml and eml properties with an xml. prefix

4080 07/06/2008 09:25 PM daigle

Merge 1.9 changes into Head

3731 02/22/2008 03:52 PM Jing Tao

Add debug info for special charater.

3221 04/03/2007 01:10 PM berkley

paging now works well. sped up the caching by using SAX instead of DOM parsing. it seems fast. need some other people to test for me though. the two params needed are 'pagesize' and 'pagestart'. I haven't updated any of the web interfaces to use this, so if you want to try it, you'll have to type in the url the old fashioned way

3077 11/10/2006 10:25 AM Matt Jones

Removed the release ant token from all files in 'src'.

2730 11/10/2005 01:38 PM sgarg

removed the indexing code from DBSAXHandler

2715 11/02/2005 10:31 AM sgarg

Fix for bug in the previous commit

2714 11/02/2005 10:16 AM sgarg

Modified the debug levels of debug statements

2663 10/10/2005 11:06 AM sgarg

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

2627 10/02/2005 03:37 PM Jing Tao

fixe bug which currentDoc maybe null.

2620 10/01/2005 09:17 PM Jing Tao

Add code to get date info

2605 09/30/2005 12:46 PM Jing Tao

Add code to handle replication deleted docs.

2590 09/13/2005 03:08 PM Jing Tao

Add a new indicator - is revision document.

2580 09/08/2005 04:07 PM sgarg

Fix for bug 2060.

Moved the call to starting of indexing thread from endDocument to DocumentImpl after commit has been done. This way when ever a document is indexed it has already been entered in xml_nodes and xml_documents

2437 03/31/2005 06:00 PM sgarg

Fixed a bug from previous commit which removed whitespaces from documents.

2352 12/22/2004 11:46 AM sgarg

Fixed a bug in previous commit. Moved normalization function before the string size is counted so that size change due to normalization is taken into account.

2339 12/20/2004 03:12 PM sgarg

Made changes to fix bug# 1538. Changed the code of the normalize function in MetaCatUtil.java. Earlier code was not taking care of characters above 123.

In DBSAXHandler.java, added call to normalize function before text is written to db.

2307 09/20/2004 04:25 PM Matt Jones

Changed DBSAXHandler.run() to now use the new DocumentImpl.buildIndex() method
for populating the xml_index table. The new method uses a jdbc ResultSet
for populating the index rather than doing it with the DBSAXNode, so it is
faster and can be run at any time on any document. This will allow us to...

2289 09/16/2004 11:04 AM sgarg

Changed error text that is returned when an invalid eml is inserted.

2165 05/11/2004 06:00 PM Jing Tao

fixed the bug that couldn't assign access rule for the data file come with morpho.

2076 03/30/2004 01:35 PM Matt Jones

Excluded the update of the xml_index table in insert,update, and delete if the usexmlindex option is set to false.

1841 10/31/2003 06:02 PM Jing Tao

Add a checking for xml_nodes insert finished, then start build index table.

1802 08/14/2003 04:40 PM Jing Tao

Add code to handle public id and system id.

1761 07/28/2003 05:50 PM Jing Tao

When character size is greater than 4000, it will write to db.

1597 04/22/2003 09:25 AM Jing Tao

Change a debug statement.

1594 04/21/2003 10:03 AM Jing Tao

Add debugMessage.

1590 04/19/2003 07:06 PM Jing Tao

Add code to parse triple.

1574 04/17/2003 10:53 PM Jing Tao

Get rid of access and relationa runner from run() method.

1535 04/09/2003 04:36 PM Jing Tao

Add run access control even for access document.

1518 04/07/2003 10:58 AM Jing Tao

Change the debugMessage for characters.

1516 04/07/2003 10:33 AM Jing Tao

Add code to handle check inline data if a user update it but the user doesn't have permission to do it.

1510 04/03/2003 06:34 PM Jing Tao

Change processDTD to protected.

1465 03/10/2003 11:56 AM Jing Tao

Add code to debug warning and error message.

1462 03/07/2003 04:24 PM Jing Tao

Add a debug message for fatal error.

1440 03/03/2003 10:18 AM Jing Tao

Fixed a bug the for comment in xml documents. It cause a Unterminated quoted string problem in psql.

1415 02/20/2003 05:51 PM Jing Tao

Add a varible to keep track node id and every call for write to xml_nodes will return a node id.

1411 02/18/2003 11:58 AM Jing Tao

Add the code the handle text node was splitted

1404 02/13/2003 06:01 PM Jing Tao

Change a varible from private to protected.

1396 02/11/2003 03:08 PM Jing Tao

Add code to call SchemaLocationResolver.

1389 02/04/2003 06:08 PM Jing Tao

If insert a schema xml, the doctype will be root element name space.

1364 01/09/2003 06:12 PM Jing Tao

In the end of dtd, set processingDTD false.

1359 01/08/2003 05:29 PM Jing Tao

Merge the code for monarch.

1329 11/08/2002 01:53 PM Jing Tao

Get rid of running parser access documents into rules when it handle a access document. (we only need to parser it when handling a dataset file).

1217 06/13/2002 11:54 AM Jing Tao

Merge DBConnection branch to head.

1062 05/08/2002 04:03 PM Jing Tao

Assign debug level to parser. (it level is 50)

955 03/05/2002 11:33 AM Jing Tao

A constructor was added to this class. In this constructor, user can specify the revision number he want to update. And the number can be passed into a DocumentImpl object constructor in startElement method. But the number should be greater than current number in database.

899 01/18/2002 10:24 AM berkley

made a ton of changes related to keeping oracle SQL code out of the main classes. fixed a bug where the timing of the index thread was off so when it went to index a document, the document was not already in xml_documents thus breaking the FK relation between xml_documents and xml_index. I think that bug might be the reason for the blank resultset screens in morpho. made the postgres implementation much more robust.

887 12/20/2001 12:13 PM berkley

made it so we can now use multiple accessfilestypes and packagdfiletypes in the metacat.properties file. Also fixed a bug introduced when the 'http://' was removed from behind the server name in the loaddtd.sql script and the knb.xml file

831 09/14/2001 11:59 AM bojilova

small fix to enable resolving external entities included in the DTD;
external entities are now resolved successfully by DBEntityResolver using the specified system ids
and thus there no need of registering the relative system ids,
This is because EntityResolver uses its internal implementation to map the relative system ids to the...

826 09/12/2001 02:49 PM bojilova

changes to store namespace prefixes separately from the local names of nodes (elements and attributes)
in xml_nodes.nodeprefix column

821 08/15/2001 01:38 PM bojilova

added support for Namespaces.
Metacat now can store and retrieve XML documents with Namespaces.
Namespace is stored as separate record in xml_nodes table with type "NAMESPACE"
where nodename is the prefix and nodedata is the uri of the namespace.

819 08/08/2001 12:56 PM bojilova

- when the Access file goes first before the Package file (eml-dataset-2.0)
relations are not available in xml_relation, thus updated the code
to check and run ACL also after the Package file is saved.
- cut out the rev# from subject and object in xml_relation as needed by ACL...

802 07/20/2001 09:03 PM bojilova

added support for multiple group membership

797 07/17/2001 07:58 PM bojilova

Simplified ReplicationHandler:
It is run now in the same thread started from DBSAXHandler;
thus the same connection opened in that thread is used,
i.e. no need for new connection and no complains as "Connection is closed" in ReplicationHandler;
"Connection is closed" error happens when in the current thread there are try to use connection opened in another thread,...

697 02/07/2001 02:07 PM bojilova

- fixed missing replication of public_access
- new attribute catalog_id added in xml_documents and xml_revisions
as a FK to xml_catalog; catalog_id is replicated also

691 01/31/2001 10:50 AM bojilova

cleared DOCTITLE attribute in xml_documents and xml_revisions
cleared all mentions of doctitle

684 01/19/2001 04:12 PM bojilova

Solving the problem with relication of access file where access files were rejected from the replication servers.
In AccessControlList check for serverCode is included,
so only on the local server the connected user is checked for having "all" permissions on the resources specified in it...

680 01/19/2001 11:05 AM bojilova

included new servlet parameter "public" specifing public read access for the submitted document
the expected values are "yes" or "no"
public parameter is optional and if it is not specified, means "no"

675 01/18/2001 03:15 PM berkley

added precise location information (class.method) to each catch statement so that errors are more easily traced.

669 01/18/2001 11:52 AM Matt Jones

Added license terms to source code files, and cleaned up some javadoc
documentation in a few places.

660 01/12/2001 09:55 AM bojilova

- turned on the validation in order only valid xml docs comformed to the specified dtd (if any) to be submitted in metacat
- with validation "on" white spaces are reported from ignorableWhitespace() callback, not from characters() (as with validation "off")...

645 01/08/2001 05:11 PM bojilova

- appling acl through access files only
- clearing around update/delete of access files - to delete the related records from both xml_access and xml_relation tables
- included check for user permissions for setting acl on the resources in the access file
- moved RelationHandler.deleteRelations(docid) down in RelationHandler obj just before the write of the new relations

640 01/04/2001 06:13 PM bojilova

Use the new property "accessdoctype" to check if this is access file.
If it is, run AccessControlList for wirting into xml_access and xml_relation tables.
This is the thread that writes XML Index but afterwards.

638 01/04/2001 05:12 PM bojilova

included support for submition of access files
+ storing the acl info in xml_access table and relationship records in xml_relation table like
<aclfile, "isaclfilefor", recourceIdentifier> for every resource included in the access file

549 11/16/2000 03:26 PM berkley

removed dependence on a server code in the accession number of each document. the file's resident server is now located in xml_documents.server_location.

530 11/13/2000 02:26 PM Matt Jones

Fixed typo in DBSAXHandler debug message.

523 11/09/2000 01:55 PM berkley

changed naming scheme

513 11/06/2000 10:38 AM bojilova

bug fix about util.openDBConnection() for xmlIndex tread

486 10/03/2000 02:23 PM berkley

removed debug print statements.

483 10/03/2000 12:55 PM berkley

allowed both indexing threads to run without interfering with each other.

471 09/26/2000 04:02 PM bojilova

Separate thread used for writing into xml_index table.
This cut the time of the response on insert almost in half.
The tread is started afterwards
(on end of document parsing and inserting into xml_nodes) from
DBSAXHandler and uses new(separate) db connection....

460 09/20/2000 01:21 PM bojilova

on character(cbuf, start, len) included:
if currentNode.getTagName().equals("title")
currentDocument.setTitle(cbuf)
instead of using:
currentDocument.setTitleFromChildElement() in endDocument() call

457 09/15/2000 05:40 PM bojilova

changes related to decrease the time of INSERT of document.
With these changes I inserted 200KB file for 3 minutes, 50KB for 50sec.
This is mainly simplifing the DBSAXNode class and
using batching feature of Oracle JDBC driver.

425 08/31/2000 05:01 PM bojilova

storing user_owner and user_updated where needed
new function in DocumentImpl checking for "write" perm on UPDATE or DELETE
added delete from xml_index of the old version of docid on UPDATE

408 08/24/2000 06:28 PM Matt Jones

Continued code redesign for the DocumentImpl class. Now the "delete" and
"write" methods are static, so a DocumentImpl objject need not be created
in order to initiate a INSERT, UPDATE, or DELETE action (it is created
implicitly by the DBSAXHandler). When doing a "READ" action, one still...

396 08/22/2000 11:56 PM Matt Jones

Folded the functionality from DBSAXDocument into the DocumentImpl class.
Now DocumentImpl handles both the reads and the writes to the database.
Eventually, it will implment the full DOM Document interface. Eliminated
the DBSAXDocument.java file as it is no longer relevant....

349 08/14/2000 01:53 PM Matt Jones

Added "release" keyword to all metacat source files so that the release
number will be evident in software distributions.

313 08/03/2000 04:17 PM bojilova

Call to DBSAXNode constructor simplified

243 06/29/2000 04:27 PM Matt Jones

Fixed bug in DBEntityResolver so that it now properly delegates to
the system id found inthe database.
Changed DBValidate to use DBEntityResolver, rather than the OASIS
catalog, and to return validation results in XML format.

220 06/27/2000 08:14 PM Matt Jones

Fixed bug where TEXT nodes couldn't be longer than 4000 characters, which
is the maximum length of a VARCHAR2 field in Oracle. Now, if text
exceeds the field length, I break the text up into a series of TEXT
nodes each of the max field length, and the remainder in the last...

204 06/26/2000 09:31 PM Matt Jones

Fixed bugs associated with the new UPDATE and DELETE functions of
DBWriter. There were problematic interactions between some static
variables used in DBEntityResolver and the way in which the
Servlet objects are re-used across multiple client invocations....

203 06/26/2000 03:35 AM Matt Jones

Merged in substantial changes to DBWriter and associated classes and to
the MetaCatServlet in order to accomodate the new UPDATE and DELETE
functions. The command line tools and the parameters for the
servlet have changed substantially.

186 06/23/2000 12:09 PM Matt Jones

Fixed bug in DBWriter using the new SAX2 interface. Turned out it was a bug in xerces-1_1_1, which was fixed by Andy Clark after I reported it.