Project

General

Profile

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

# Date Author Comment
2752 11/16/2005 05:27 PM Matt Jones

Metacat has had problems with threading issues when accessed from ecogrid. These problems may stem from the use of shared global variables within the servlet that are not protected against threading problems. We used a lot of these, which I am eliminating in this commit. Besides final variables used as constants (which are not a problem), now there are only three unprotected variables (sessionHash, logMetacat, and conn) which are harder to eliminate. I will be discussiong this with Sid tomorrow to see how to eliminate them.

2681 10/20/2005 11:34 AM sgarg

Removed code entered in previous commit as it is no longer needed

2663 10/10/2005 11:06 AM sgarg

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

2658 10/06/2005 11:37 AM sgarg

if moderator is logged into metacat and no option for enable-editing is specified then enable editing by default

2641 10/04/2005 10:58 AM Jing Tao

Change the code to make sure DocumentImpl class's constructor should have rev attached.

2486 04/13/2005 11:38 AM sgarg

Fixed a bug - when returnfield_id is not found in xml_returnfield, records are not added to xml_queryresults

2474 04/07/2005 05:04 PM sgarg

1. removed the call to QuerySpecification.printAttributeSQL() from QuerySpecification.printExtendedSQL()
2. in QuerySpecification.printExtendedSQL() if ( returnFieldList.size() == 0 ) then it returns null
3. DBQuery.addReturnfield() doesnt execute the element query if printExtendedSQL returns null

2473 04/07/2005 04:08 PM Chris Jones

A minor change from containAtrributeReturnField to
containsAttributeReturnField

2462 04/06/2005 02:21 PM sgarg

Replaced 1.4.0 with release

2446 04/04/2005 04:15 PM sgarg

Removed occurence of enum which is a keyword in Java 1.5

Changed the queries so that PreparedStatement.setString() and .setInt() are used instead of write the string directly into the sql statements

2430 03/29/2005 08:06 AM sgarg

Added new database upgrade script for postgres.
Modified the database upgrade script for oracle
Added comment to DBquery.java
Fixed a bug in xmltables.sql

2428 03/23/2005 01:30 PM Chris Jones

Added the trailing '/' that was ommitted when XPATH queries included attributes.
This is a partial bug fix for:

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

2425 03/18/2005 11:19 AM sgarg

Added code to check if the document is indexed yet! So entry into xml_queryresult is only made if the doc is in xml_index.

2424 03/18/2005 08:51 AM sgarg

Added code such that an offset can be specified in metacat.properties for entering records into xml_queryresult table. The value of xml_returnfield.usage_count should be more than the value specified in metacat.properties for records to be entered into xml_queryresult. so if you want results for any combination of returnfields should be stored in xml_queryresult only after that combination has been requested 50 times, set this value to 50

2421 03/17/2005 05:26 PM sgarg

Changes for entering new records into xml_queryresult:

1. Added a function which checks if there is a record exsists in xml_returnfield table for a given combination of return fields. If a record is found, the id for the record is returned. otherwise a new record is created in the xml_returnfield table and the id of the new record is returned....

2406 03/10/2005 11:47 AM sgarg

Modified the offset which is used for creating the resultset. This helps in fixing the 'more than 1000 enteries in IN query' bug on Oracle.

2376 01/18/2005 12:11 PM sgarg

Modifying code so that nodedata is stored in xml_index table next to the paths.
This helps in making the search faster.

2366 01/13/2005 04:39 PM sgarg

Modified code so that when a % search is done, a xml_nodes search is not done. This search is not required and hence saves time in doing a % search

2360 01/06/2005 12:47 PM sgarg

Fixed a bug in containsKey() function.

2168 05/14/2004 10:53 AM Jing Tao

Revised the api and ecogrid can use it easily.

2106 04/05/2004 04:25 PM Matt Jones

Fixed the returndoctype bug in DBQuery as described in bug 1451. Now,
results are returned even if returndoctype is null, which is the
appropriate behavior.

2091 04/01/2004 03:38 PM Jing Tao

Clean up some code.

2087 03/31/2004 05:47 PM Jing Tao

Add a new transferm method for string reader.

2075 03/30/2004 10:09 AM Matt Jones

Reformatted DBQuery.java for readability and consistency.

2074 03/30/2004 10:02 AM Matt Jones

Changed printAttributeQuery() to no longer depend on the xml_index table. Now, if useXMLIndex is false, the method will use a recursive query on xml_nodes to match paths instead of using xml_index.

2072 03/29/2004 01:59 PM Matt Jones

Moved decision about whether to use xml_index for
query to the metacat.properties as "usexmlindex". Default
is now false. Still have some refactoring to do to remove a
few more uses of the xml_index table.

2069 03/29/2004 11:24 AM Matt Jones

Created new printExtendedSQL function that can get the extended
return fields using only xml_nodes and not xml_index. One
step closer to eliminating the dependence ofn xml_index.

2045 03/15/2004 02:08 PM Jing Tao

Fixed the bug for sessionid storing, revision couldn't be zero and Ldap DN is case sensitive.

2043 03/09/2004 06:18 PM sgarg

Replaced Hash table with Vector of Vector datastructure in getting <param> from Query. This was done so that the results are represented in same order as they appeared in the document.

1956 12/10/2003 01:15 AM Matt Jones

Enabled stylesheet parameters to be passed through metacat even when the
'query' function is called. Previously, query would interpret all
parameters except a few hardcoded ones to be pathexpressions that should be
built into a squery. Now, metacat.properties contains a new configuration...

1834 10/08/2003 05:39 PM Jing Tao

Add a new method to find document from queryspecification.

1630 04/30/2003 06:03 PM Jing Tao

Field data will be normalized.

1450 03/04/2003 12:05 PM Jing Tao

Fixed a bug which cause infinite loop.

1448 03/04/2003 10:20 AM Jing Tao

Add access control for return fields.

1445 03/03/2003 06:06 PM Jing Tao

Add access control for return fields in the subtree.

1427 02/26/2003 05:30 PM Jing Tao

Change the code to handle permission checking.

1361 01/09/2003 04:28 PM Jing Tao

If a text node was split into two parts, now it will be combined.

1356 01/08/2003 03:05 PM Jing Tao

Merge the code to handle export single document.

1353 01/07/2003 05:03 PM Jing Tao

Support return field has attributes.

1349 01/03/2003 05:53 PM Jing Tao

Change the code for percentage search.

1347 01/03/2003 02:12 PM Jing Tao

Fixed a bug that after finding a non-dataset document, then go back to find dataset document for it in xml_relation table.

1303 10/11/2002 10:33 AM Jing Tao

Create a shortcut for the query to get user's onwer doc lists. Create a private method named getOwnerQuery. If the coming query equals the owner query, the access permission checking would NOT append to the comming query. Because the owner has all permission.

1300 10/09/2002 05:25 PM Jing Tao

Add the checking permission query into orignal query.

1297 09/09/2002 03:32 PM Jing Tao

Delete the code for permission checking in execute extened query. It was redundant. Add some debug message for displaying search time.

1292 07/14/2002 12:33 PM Jing Tao

Merge cvs branch replication to cvs head.

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

Merge DBConnection branch to head.

1096 05/20/2002 05:23 PM Jing Tao

Add debugMessage level in this class

963 03/06/2002 04:17 PM berkley

fixed my tagging error

962 03/06/2002 03:58 PM berkley

some small changes I had to make to get the QAENGINE demo to work right. this should be committing in a branch

957 03/05/2002 01:09 PM Jing Tao

Add a throwing exception in haspermission method.

953 03/05/2002 09:19 AM Jing Tao

Access document was added to exported data package too.

948 02/26/2002 01:53 PM Jing Tao

When user request a data package, the old version documents would be exported. Only export the request one.

During the export function. Every document will be check if the user has the permission to read or not.

945 02/26/2002 08:23 AM Jing Tao

A new method named hasPermissionToExportPackage was added. So when MetaCat handle export action, it will check if user has permission to read the data package. If it has, MetaCat will export a zip output stream to it. Otherwise, MetaCat will be through a exception.

940 02/22/2002 02:50 PM Jing Tao

A public method named getZippedPackage() and other relative private methods were add to this class. The public method can give a zip output stream if a docid and other parameters were passed to it.

894 01/15/2002 08:46 AM berkley

fixed bug with ampersands in the returned relations in the resultset.

834 09/17/2001 10:01 AM Matt Jones

Fixed bug in metacat where an Exception was thrown when a search returned
an empty resultset. Now we avoid the function call that threw the exeption.

820 08/08/2001 05:07 PM bojilova

fixed an error of NullPointerException

818 08/02/2001 10:29 AM berkley

fixed error with out of cursors error because pstmts were not getting closed in DBQuery

802 07/20/2001 09:03 PM bojilova

added support for multiple group membership

800 07/20/2001 11:23 AM Matt Jones

Added fix to DocumentImpl that showed problems when the DocumentImpl(conn)
constructor was called. Now there is a new constructor:
DocumentImpl(Connection, String, boolean)
where the boolean value is used to determine if the nodeset should be
read a t the time the cosntructor is called. if false, then...

790 07/06/2001 11:58 AM bojilova

added constructor in DocumentImpl for use in DBQuery.findDocuments();
this new constructor is used with getDocumentInfo() to get the doc info only;
because the other constructor builds the whole xml doc which is not needed here and time consuming;
this happens on backtracking only.

768 06/01/2001 04:12 PM bojilova

MS SQL Server stores trailing spaces in varchar fields which shouldn't be
thus added docid.trim() in the Java code

766 06/01/2001 01:26 PM bojilova

the ODBC multi-threading problem:
in DBQuery we open ResultSet in the db connection and we are trying to
open another Resultset by AccessControlList which does not work
thus open separate connection for use by AccessControlList.

745 05/22/2001 03:24 PM Matt Jones

Fixed bug in metacat where return doctypes were not being properly
back traced. Changed DBQuery.findDocuments() so that it no longer
takes a returndoc array, but instead retrieves the returndoc array
fromthe QUERYSpecification. The QuerySpecification was augmented...

744 05/21/2001 02:30 PM Matt Jones

Added ability to process multiple "returndoc" elements in
a pathquery document. Now, any query hit will be back traced to an
associated package if that package is listed in one of the
"returndoctype" elements.

743 05/21/2001 01:51 PM Matt Jones

Modifications that change the package handling behavior of metacat. Package
membership is now determined by an identifier being used as either the subject
or object in a triple. One can not request arbitrary returndocs -- only
those types that have package information embedded can be "returndoctype"...

739 05/08/2001 02:40 PM bojilova

as John were testing Metacat on postgres,
he discovered that Connection needs more precise check
whether it is open because of db timing outs.
So used to be:
if ( conn null ) { get new connection from db; }
Now changed to:
if ( conn null || conn.isClosed() ) { get new connection from db; }...

710 02/26/2001 04:42 PM berkley

added print info and timing info

706 02/23/2001 02:14 PM bojilova

included flag in DBQuery to run pathqueries with or without the index,
but for the command line only.

705 02/23/2001 10:31 AM berkley

added timing info to main

692 02/01/2001 10:56 AM bojilova

there were more mentions of DOCTITLE attr - cleared them

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.

674 01/18/2001 01:46 PM berkley

removed print statements

673 01/18/2001 12:46 PM bojilova

fixed typo

671 01/18/2001 12:27 PM berkley

fixed introduced problem with preparedStatements

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.

667 01/18/2001 11:25 AM berkley

closed all preparedStatement variables

626 12/20/2000 10:20 AM berkley

fixed sql error

624 12/20/2000 09:28 AM berkley

removed package doctype filtering from the resultset.

612 12/13/2000 02:18 PM bojilova

fixed typo

610 12/13/2000 12:53 PM berkley

commented out print statement

607 12/13/2000 11:29 AM bojilova

problems with passing the connection between objects

606 12/13/2000 11:12 AM berkley

overwrite Jivka's overwrite

605 12/13/2000 10:56 AM bojilova

problem with passing the connection between objects

604 12/13/2000 10:23 AM bojilova

problem with passing the connection between objects

603 12/13/2000 09:45 AM berkley

removed print statement

602 12/13/2000 09:41 AM berkley

fixed bug where some relations were not returned because the sql did not take into account an sql that had a directory structure in it.

570 11/28/2000 05:15 PM bojilova

AccessControlList
- methods for parsing and loading acl file
- checkup method for permission for given principal on given resource
DBQuery
- checkup for READ permission using AccessControlList.hasPermission()
DocumentImpl
- using AccessControlList object to parse and load an acl file into xml_access table...

566 11/27/2000 01:55 PM Matt Jones

Modified stylesheets and server code to use a single "read" action instead
of the earlier "getdocument" and "getrelateddocument" actions. In the
process, developed and started to utilize a new suite of URL "protocol
handlers" that are in the package "edu.ucsb.nceas.protocols" and handle...

541 11/15/2000 10:18 AM bojilova

fixed bug/typo

535 11/13/2000 05:04 PM Matt Jones

Modified pathquery.dtd and QuerySpecification to allow some new constraints
on queries submitted to Metacat. Now, queries can contain an optional
set of <owner> tags that identify the users for which documents should be
returned, and a list of <site> tags constraining the site identifiers...

524 11/09/2000 02:04 PM berkley

changed naming scheme

489 10/03/2000 03:48 PM berkley

added functionality to return the doctype of a relation in a relationdoctype tag. This information is now returned automatically in the resultset under the path resultset/relation/relationdoctype.

475 09/27/2000 02:37 PM berkley

removed system.out.printlns

473 09/27/2000 01:11 PM berkley

added support for urls of the form "metacat://server.xyz.com?docid=XXX:yy"

465 09/26/2000 03:06 PM berkley

Added backtrack functionality. Backtracking works by passing a returndoc parameter. There can be more than one. If a document that is hit by a query is not of type returndoc then it searches the database for a related file of type returndoc. If one is found it is displayed, if no relation is found, the original is displayed....

453 09/15/2000 12:52 PM berkley

Added functionality for package specifications. metacatservlet now contains a new action called getrelateddocument that handles retrieving related documents using the metacatURL specification (metacatURL.java). DBQuery contains new code in runQuery that embeds relation tags in the returned hashtable describing the documents related to each docid. querySpecification contains a new method which prints the sql that does the relation query.

441 09/12/2000 10:37 AM bojilova

added check from "read" permission on "query" and "squery" actions
for connected user or for "public" connection

436 09/05/2000 01:50 PM berkley

Added a method called getNodeContent which retrieves the content of a node in a document. If there are more than one nodes with the same name returned, it returns an array with all of the data.

423 08/31/2000 02:20 PM berkley

changed xslf for new returnfield scheme. the returnfields are now returned as <param name="<returnfield>"> tags.
hThe sql for the returnfield query was redone to fix a previous problem with slow queries