Project

General

Profile

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

# Date Author Comment
7495 02/22/2013 11:07 AM ben leinfelder

group user_owner clause as "AND (... OR .... OR ....)" to handle multiple pathquery <owner> elements. http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5880

7417 11/07/2012 02:53 PM ben leinfelder

Implement MNQuery for "pathquery" engine. Optionally include guid in the pathquery results (https://redmine.dataone.org/issues/3083)

7407 10/18/2012 03:14 PM ben leinfelder

simplify the xml_access query, and instead use guid to check for permission. Now the docid/rev join (to get most recent version for search results) happens "higher up" in the query.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5696

7397 09/28/2012 09:06 AM ben leinfelder

remove the max(rev) clause in favor of a more straight-forward join to xml_documents (that will have the max rev). http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5696

7368 09/03/2012 01:50 PM ben leinfelder

when performing query, make sure we are using the access rules of the latest revision of a given docid, otherwise we may include documents that used to be public but have been made private in subsequent revisions.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5696

6744 12/07/2011 12:18 PM ben leinfelder

refactor Metacat access handling to be on a per-revision basis so that it more closely aligns with the DataONE approach
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560

6734 12/02/2011 05:32 PM ben leinfelder

handle queries with predicates correctly.
when docids are used in the return field look up, we need to make sure they are included in the values in the correct order for their corresponding parameter place holders (?)

6602 11/04/2011 12:32 PM ben leinfelder

uses prepared statement parameter binding for queries
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527

6146 06/15/2011 10:44 PM ben leinfelder

escape quotes when processing returnfield with predicates. example:
<returnfield>dataset/dataTable/physical/distribution/online/url[@function='download']</returnfield>

5311 04/14/2010 11:31 AM daigle

Merge 1.9.2 changes back into the trunk

5204 01/28/2010 12:35 PM daigle

make sure querygroup is not null before trying to print it.

5015 08/04/2009 02:32 PM daigle

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

4854 03/23/2009 02:56 PM daigle

Beef up exception handling from file utilities. Move UtilException to MetacatUtilException to eliminate conflict with similar exception in utility package.

4812 02/18/2009 04:30 PM daigle

Format indexPaths in metacat.properties. Remove from build.properties and build.xml. Move indexPath list getter from MetacatUtil to SystemUtil.

4698 12/26/2008 01:07 PM daigle

Renamed MetaCatUtil to MetacatUtil

4335 08/29/2008 10:20 AM daigle

Move the DBAdaptor accessor into a DatabaseService class

4080 07/06/2008 09:25 PM daigle

Merge 1.9 changes into Head

3771 03/20/2008 05:32 PM Jing Tao

Fixed bug that lsid couldn't be shown up in result page of kepler skin. The bug is that in extended query, lsid attribute was treated as a element, but it is attribute.
I also optimized the query by deleting xml_documents table from query. The table is not needed.

3769 03/19/2008 05:57 PM Jing Tao

Fixed bug that kepler skin wouldn't return actor name in query. The reason is there was no separate vector to store returnfield with "]". So those fields with or without "]" are handled
together (which shouldn't). When seperate those return fields, the bug was fixed.

3766 03/17/2008 06:51 PM Jing Tao

Add a new string buffer to store normalized query xml itself.

3646 12/07/2007 04:42 PM ben leinfelder

fix mistake where there is an attempt to select nodetype column from table xml_path_index table (it's not there!)

3634 12/05/2007 12:38 PM ben leinfelder

add retrieval of field type for each node (TEXT, ATTRIBUTE, etc).
this is to support a fix for bug#2999

3360 08/16/2007 09:14 PM Jing Tao

Change String.contains which only java 1.5 have to String.indexOf

3358 08/13/2007 07:13 PM Jing Tao

Change a handleReturnField to public which will be used in ecogrid.

3355 08/13/2007 04:40 PM Jing Tao

Fixed bug that searching for parameters.

3313 07/24/2007 04:58 PM Jing Tao

Revised the access query part.

3312 07/24/2007 11:35 AM Jing Tao

Remove the subtree constrain in access query

3310 07/13/2007 05:32 PM Jing Tao

Remove an method

3308 07/12/2007 04:56 PM Jing Tao

Merge the getting return fields for both elements and attributes.

3248 04/19/2007 03:45 PM Jing Tao

Remove the access query for return field since we remove the partial tree access control in eml.

3246 04/18/2007 03:55 PM berkley

got a better version of paging working. still needs to be cleaned up and debugged more.

3235 04/16/2007 10:27 AM sledge

Limited use of predicates in XPath return fields

3223 04/05/2007 05:28 PM Jing Tao

Get rid of user_owner=public part in access query.

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

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

2793 11/30/2005 11:02 AM sgarg

fix for the access control check - earlier only permission 4 and 7 were checked for read. Now the query checks for permissions 5 and 6 also

2677 10/17/2005 11:15 AM sgarg

Fixed a bug in QueryGroup which prevented QueryGroup from appending itself to the sql query when no queryTerm is present.

2663 10/10/2005 11:06 AM sgarg

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

2561 09/07/2005 01:07 PM sgarg

Removing support for 'site' from pathquery

2523 07/25/2005 11:54 AM sgarg

Check if all the paths in returnfield are indexed. If yes, then you xml_path_index for getting values of returnfields instead of using xml_nodes + xml_index

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

2472 04/07/2005 04:06 PM Chris Jones

I've added in a test in QuerySpecification.printExtendedSQL that checks
to see if attributes, and sometimes only attributes, are in the original
returnfield request. If so, the printAttributeQuery is called.

2467 04/07/2005 10:53 AM Chris Jones

Changed the handleReturnField() method so that it handles path expressions with
only attributes in the path.

2466 04/06/2005 07:04 PM sgarg

Added a check if printAttributeQuery() for returnPath to see that it is not null so that that this doesnt happen

xml_index.path like 'null' AND xml_nodes.nodename like 'id'

2465 04/06/2005 06:46 PM sgarg

Fixed a bug in previous commit

2464 04/06/2005 06:25 PM sgarg

Modified code for computing the returnfield string - earlier only elements were used to construct the string. e.g. /dataset/title
Now attributes are also added to the returnfield. e.g. title/@id

2458 04/06/2005 02:13 AM Chris Jones

When searching for attributes in the XPATH expression, an 'index out of bounds'
exception was thrown when only an attribute was included in the path string.

This fix changes the pathexpr.indexOf comparison to 0 rather than 1, since
the index starts at 0....

2434 03/29/2005 07:57 PM sgarg

Modified code such that nodedata column in xml_index is not created and used. So now we are using the same logic for using xml_index which was used for metacat release 1.4

2419 03/17/2005 04:42 PM sgarg

Added a function which gives back a string which is generated by sorting the returnfields requested for given query specifications

2396 03/03/2005 01:50 PM sgarg

Fixed a bug in the format of query result.

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.

2373 01/13/2005 07:04 PM sgarg

Some more modifications so that % search doesnt run a select on xml_nodes.

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

2093 04/01/2004 03:40 PM Jing Tao

Fixed a bug the text filed in path xml query maybe splited.

2078 03/30/2004 04:05 PM Matt Jones

Fixed a bug in the new recursive SQL statements that prevented them from operating on oracle. Now they should work on both oracle and postgres.

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.

2073 03/29/2004 03:50 PM Matt Jones

Some refactoring of the printExtendedSQL()
methods to eliminate redundancy in the code and
to provide more readable documentation.

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.

2068 03/26/2004 05:40 PM Matt Jones

Created test class QuerySpecificationTest and started process of removing the xml_index from the QuerySpecification code. Reformatted some classes for readability.

2067 03/26/2004 03:25 PM Matt Jones

Removed the "getdataguide" action as it was always experimental and is no longer used in metacat or morpho.

2066 03/26/2004 02:47 PM Matt Jones

removed the 3 versions of printPackageSQL which are no longer used by metacat. This eliminates some dependency on 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.

1837 10/18/2003 04:36 PM Jing Tao

Modified a debug Message.

1833 10/03/2003 06:08 PM Jing Tao

Revise code so it can be called directly.

1832 10/02/2003 05:17 PM Jing Tao

Revied the class.

1454 03/05/2003 10:18 AM Jing Tao

Revise the query for access control return field.

1453 03/04/2003 06:13 PM Jing Tao

Revise the sql for access control for return fields.

1452 03/04/2003 04:10 PM Jing Tao

Add code to handle access control for return fields.

1451 03/04/2003 12:06 PM Jing Tao

Fixed a bug that the column in sql is ambiguous.

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

Add nodes access control for print extended query.

1447 03/04/2003 09:53 AM Jing Tao

In search query, add subtreeid is null this condition to make sure is for top level documents.

1446 03/03/2003 06:07 PM Jing Tao

Add a access control query for return fields.

1386 02/04/2003 03:50 PM Jing Tao

Change package query.

1362 01/09/2003 04:29 PM Jing Tao

In extened query, parentnodeid was added.

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

Support returnfields has attributes.

1350 01/03/2003 05:54 PM Jing Tao

add some methods and attributes to determine percentage search.

1348 01/03/2003 02:13 PM Jing Tao

Add new feature to support attribute in query.

1332 11/21/2002 11:40 AM Jing Tao

Add a piece of query to get rid of invalid number in nodedata.

1305 10/14/2002 09:11 AM Jing Tao

Made a shortcut for % search. It will look like: LIKE '%' rather than: LIKE '%%%'.

1304 10/11/2002 02:12 PM Jing Tao

In accessQuery, permission=READ or permission=ALL was added for both allow rule and deny rule.

1301 10/09/2002 05:27 PM Jing Tao

Add three private method: createOwnerQuery, createAllowRuleQuery and createDenyRuleQuery. And three public methods: setUserName, setGroup and getAccessQuery.

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.

795 07/17/2001 09:20 AM bojilova

support for the new terms included in pathquery.dtd

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...

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"...

711 02/26/2001 04:45 PM Matt Jones

Modifications to allow printing of SQL with and without INDEX option.

710 02/26/2001 04:42 PM berkley

added print info and timing info

709 02/26/2001 11:12 AM bojilova

print the nested statements sql query

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.

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.

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.

626 12/20/2000 10:20 AM berkley

fixed sql error

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...

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.

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.

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

405 08/23/2000 03:55 PM berkley

changed the field names to be case-sensitive in the returnfields

402 08/23/2000 10:29 AM berkley

added support for the returnfield parameter
-QuerySpecification now sets a flag (containsExtendedSQL) when there are returnfield items in the pathquery document.
the accessor method containsExtendedSQL() can be called by other classes to check for extended return parameters...