Project

General

Profile

Statistics
| Revision:

# Date Author Comment
2517 07/21/2005 04:54 PM sgarg

Changed the name of the function

2512 07/21/2005 04:08 PM sgarg

Added a new function which can used to control the carriage return at the end of the debug message and 'Metacat' in front of the message...

2503 04/22/2005 02:18 PM sgarg

Fixed a bug in printSQL function. The bug came into the picture for queries which involve multiple query groups and one of the query groups does a % search.

2491 04/14/2005 07:44 PM sgarg

Added code to delete all entries in xml_queryresult table when buildIndex for a docid is called.

2489 04/14/2005 01:51 PM sgarg

Adding the call to normalize function for now -- too many calls to normalize function are made and this needs to be looked into. Removing call to normalize function caused trouble in text like this "A&B"

2487 04/13/2005 06:22 PM sgarg

Fixed a bug in last commit. Doing a search like
pathquery version="1.2">
<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returnfield>originator/individualName/surName</returnfield><querygroup operator="INTERSECT"><queryterm casesensitive="false" searchmode="contains"><value>%</value></queryterm><queryterm casesensitive="false" searchmode="contains"><value>National Center for Ecological Analysis and Synthesis</value><pathexpr>organizationName</pathexpr></queryterm></querygroup></pathquery>...

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

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

2462 04/06/2005 02:21 PM sgarg

Replaced 1.4.0 with release

2459 04/06/2005 02:23 AM Chris Jones

When a path expression includes element content and attribute content, then
the SQL generated needs to search for attribute nodetypes with parent
nodenames equal to the path expression element content. However, when
only searching for attribute content (such as just @packageId), then...

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

2450 04/04/2005 04:50 PM sgarg

Removing call to normalize from getNodeRecordList()

2449 04/04/2005 04:45 PM sgarg

Changing the normalize function. Adding changes submitted by Johnoel. Removing code for converting " as " can be stored as it on Oracle. Removing code which strips out \n and \r

2447 04/04/2005 04:17 PM sgarg

Removed occurence of enum which is a keyword in Java 1.5

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

2437 03/31/2005 06:00 PM sgarg

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

2436 03/31/2005 05:29 PM sgarg

Removed irrelevant code from previous commit

2435 03/29/2005 08:18 PM sgarg

Removed code which entered value for nodedata in xml_index

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

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

2429 03/25/2005 09:59 AM sgarg

Added code so that metacat administrator can delete any document.

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

2426 03/22/2005 09:53 AM Duane Costa

Fixed bug in command-line mode which caused array index out of bounds exception.

Changed default maxHarvests value to 0. Added logic to ignore maxHarvests value when it is set to 0 or a negative number. This allows Harvester to run indefinitely without shutting down after reaching a maximum number of harvests. The previous default value of 30 would cause Harvester to terminate after 30 harvests.

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

2420 03/17/2005 04:48 PM sgarg

Added code for updating xml_queryresult for action=delete and action=update

For both actions, the entries in xml_queryresult are deleted.
This works for action=update because deletion of entry is simple and the entries will be created again when the docid is part of a search result next time.

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

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.

2399 03/04/2005 11:51 AM sgarg

Added a check for eml2.0.1 documents in ContentTypeProvider.java

2397 03/03/2005 03:02 PM Jing Tao

Using a variable to replace the hard code for namesapce in inserting record to xml_relation table.

2396 03/03/2005 01:50 PM sgarg

Fixed a bug in the format of query result.

2386 01/25/2005 03:14 PM Duane Costa

Formatting improvements.

2385 01/25/2005 03:01 PM Duane Costa

Formatting improvements.

2384 01/25/2005 01:57 PM Duane Costa

Implement a new HarvesterServlet for running Harvester as a servlet. This eliminates the need to run Harvester in a terminal window. By default, the HarvesterServlet is commented out in lib/web.xml.tomcat(3,4,5). The user documentation will be modified to instruct Harvester administrators to uncomment the HarvesterServlet entry.

2381 01/20/2005 01:42 PM Duane Costa

Re-implement logic to prune old log entries from the HARVEST_LOG and HARVEST_DETAIL_LOG tables. The old logic caused integrity constraint violations in the database because it tried to delete parent records from HARVEST_LOG prior to deleting child records from HARVEST_DETAIL_LOG....

2380 01/20/2005 01:37 PM Duane Costa

Formatting improvements.

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.

2375 01/14/2005 12:41 PM Duane Costa

Increase number of rows in harvest list from 300 to 1200.

2374 01/14/2005 08:08 AM sgarg

Fixed a bug from previous commit

2373 01/13/2005 07:04 PM sgarg

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

2372 01/13/2005 05:26 PM sgarg

Modified code to fix bug # 1850

2368 01/13/2005 04:54 PM Duane Costa

Change default document type in Harvest List Editor to eml-2.0.1.

2367 01/13/2005 04:49 PM Duane Costa

Remove DOS end-of-line carriage returns.
Other minor formatting improvements to the code.

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

2364 01/13/2005 04:27 PM sgarg

Added code to check for NaN valuse which converting string to double.

2360 01/06/2005 12:47 PM sgarg

Fixed a bug in containsKey() function.

2358 12/30/2004 03:31 PM sgarg

Modified 'insert xml_nodes...' so that numerical data is added into numericalnodedata also.

2357 12/30/2004 03:29 PM sgarg

Modified handling of greater-than and less-than so that comparison is done against nodedatanumerical column.

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.

2347 12/21/2004 03:00 PM sgarg

Added code to check id document is passed as part of the params. This is done toprevent NullPointerException which results in sending null to the user.

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.

2337 12/16/2004 04:34 PM Jing Tao

Add a new method to get newest version of a given document.

2336 12/16/2004 04:33 PM Jing Tao

Add a new method to get newest version for a given document.

2332 11/15/2004 10:39 AM Duane Costa

Modify value of redirect to match the servlet-mapping URL values in web.xml. The old value used the servlet class name. This worked in Tomcat 4 but seems to break in Tomcat 5 on Windows. The new value uses the servlet-mapping URL value. This should work in both Tomcat 4 and Tomcat 5.

2330 11/09/2004 03:34 PM Duane Costa

Minor enhancement to support multiple email addresses for harvester administrator and site contact. Each address is separated by a comma or semicolon.

2327 09/24/2004 01:13 PM harris

Thanks Jing, Fixed those code comments.

2326 09/24/2004 12:02 PM harris

Adde a function to the metacat client to set access on an xml document in a
metacat repository.

2315 09/21/2004 03:36 PM Matt Jones

Modified buildIndex() to now include an '@' sign in the path for ATTRIBUTE
nodes. Removed a bunch of debugging information. Fixed the BuildIndexTest
so that it would work on any machine (removed hardcoded paths).

2312 09/21/2004 03:13 AM Matt Jones

Added in servlet action 'buildindex' for building the XML_index table entries
for either a set of documents (if one or more docid params are provided) or
for the whole set of documents in the xml_documents table. The buildindex
action is restricted to only be accessible by users who are listed in the...

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

2305 09/20/2004 02:30 PM Duane Costa

Compose the Metacat URL from the httpserver and the servletpath properties, replacing hard-coded references to servlet.

2304 09/20/2004 02:28 PM Duane Costa

Send redirect to HarvesterRegistration, instead of using the full class name which works on Tomcat-only installations but not with Apache.

2303 09/20/2004 09:49 AM Duane Costa

Change the date format to one that is standard on both Oracle and Postgres.

2301 09/17/2004 08:48 AM Matt Jones

Whitespace changes that fix a few formatting problems after Jing's commit.

2298 09/16/2004 05:04 PM Jing Tao

Add new feature that delete can be broadcasted by force replication.

2297 09/16/2004 04:40 PM Matt Jones

The new buildIndex() function now can write allof the appropriate index paths to the database for any given document. Next need to create a function to rebuild on demand, and modify DBSAXHandler.run() to use the new buildIndex() function.

2293 09/16/2004 12:08 PM Matt Jones

Added changes to buildIndex() function. Now it is finding the right set of
paths, just have to save these in a hash and then add them to the DB xml_index
table.

2292 09/16/2004 11:15 AM sgarg

changed function parameters in accordance with changes in PermissionController

2291 09/16/2004 11:13 AM sgarg

Modified inline data permission handling, so that access rules for old version of inline data can be checked correctly.

2290 09/16/2004 11:09 AM sgarg

Added a function which returns inline data id with out the revision number.

2289 09/16/2004 11:04 AM sgarg

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

2286 09/15/2004 08:25 PM Jing Tao

Add a code to load eml201 parser to fix the bug that couldn't generate access rule for eml201 doc.

2278 09/15/2004 11:02 AM sgarg

Fixed error in handling of multiple additional metadata tags...

2273 09/14/2004 03:24 PM sgarg

removed errors being generated in handling of qformat when action=insert. If qformat is not specified, xml is assumed as default.

2269 09/10/2004 04:42 PM Matt Jones

Beginning new method for building the xml_index table. This uses the
JDBC resultset directly rather than DBSaxNode, and recurses through the
records of the table. The new function 'buildIndex()' would be called, but
currently is not linked in to any code, so it shouldn't get in the way....

2268 09/09/2004 03:51 PM sgarg

removed a bug which was pointed out by Bing and fixed by Jing.

2267 09/09/2004 03:48 PM sgarg

Removed some unused code

2264 09/02/2004 02:38 PM sgarg

Added new upload function which takes InputStream as input.

2262 09/01/2004 02:43 PM sgarg

fixed some bugs in document update

2261 08/31/2004 05:52 PM sgarg

Added method to metacat client for reading inline data - readInlineData()

2259 08/31/2004 03:45 PM sgarg

Fixed a bug in upload function. For online data updates, access was not checked.

2253 08/24/2004 03:35 PM sgarg

Fixed handling of various docid formats.

2252 08/24/2004 12:34 PM sgarg

Code added to handle errors resulting from following urls:
http://metacat.nceas.ucsb.edu/knb/metacat?action2 - no action specified
http://metacat.nceas.ucsb.edu/knb/metacat?action=insert - no docid specified
http://metacat.nceas.ucsb.edu/knb/metacat?action=login - no username specified...

2251 08/24/2004 11:14 AM sgarg

Added check for null condition so that proper error text is returned to user.

2250 08/23/2004 02:21 PM Matt Jones

Checked to be sure the instance has been initialized in the getDBCOnnection
static method call. Assuming it has been initialized could (and does)
lead to NullPointerExceptions when used outside of the metacat servlet
if the conneciton pool isn't initialized properly.

2249 08/20/2004 01:32 PM Matt Jones

Reformatted code for readability. It was crazy. Still has problems, but its
better. Will be working on some new methods on monday.

2248 08/20/2004 09:21 AM sgarg

Fixed a bug in access handling when no access is specified.

2246 08/19/2004 06:20 PM sgarg

Added eml-2.0.1 tags for eml processing.

Also fixed a bug. The error returned in case of no revision number specified was just null. Now it says that revision number is required.

2245 08/19/2004 06:09 PM sgarg

Merging in changes made in branch 'dataaccess' by Jing Tao.

2240 08/19/2004 11:34 AM sgarg

Added upload functionality to metacat client for upload online data

2238 08/10/2004 03:19 PM Duane Costa

Add warning if default harvest list file is not found on disk.

2237 08/04/2004 12:42 PM Duane Costa

Change relative path to harvestList.xsd schema to allow harvest list editor to run standalone.

2225 07/22/2004 03:32 PM sgarg

Removed some debugging code added in last commit