Project

General

Profile

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

# Date Author Comment
3995 06/12/2008 02:41 PM berkley

added support to upload an xml document using multipart encoding. the enables better support for web interfaces that wish to use multipart to upload xml documents. the action is 'insertmultipart'

3993 06/12/2008 12:43 PM berkley

made it so that the error and success messages from a multipart upload can be transformed using xslt. also added upload functionality to the sms skin

3904 05/22/2008 04:22 PM Jing Tao

Check into cvs head. Add a debug statement for printing out eml document

3859 05/13/2008 03:09 PM Jing Tao

Add to cvs headd. Add code to correct invalidated eml 201 doucments.

3772 03/20/2008 05:37 PM ben leinfelder

Enable file naming when returning a zip file of the requested documents.
File names for each docid are provided as additional parameters named by the actual docid value that they are providing a name for. An example query string might look like:

action=read&docid=doc.1.1&docid=doc.2.1&qformat=zip&doc.1.1=fileName1.txt&doc.2.1=fileName2.jpg...

3757 03/04/2008 05:37 PM Jing Tao

Using reponse.getOutputStream to replace reponse.getWriter in query and read method. So metacat can send correct special character back.

3740 02/27/2008 08:41 AM ben leinfelder

ignore commented out DOCTYPE declarations (don't force validation on them)

3674 01/10/2008 11:11 AM barteau

Modification for changes to the field "MetacatUtil.skinconfigs".

3568 11/05/2007 10:44 AM Jing Tao

Fixed bug that should throw an exception in upload method.

3543 10/30/2007 05:55 PM Jing Tao

Change the debug level for Metacat initialization message.

3514 10/12/2007 03:48 PM barteau

Added param to indicate if public has read access or not, in the method "readFromMetacat". It only does this if reading a metadata document, for a skin-format,
and the user is not public. This is useful to the skin's metadata display/editing form, for indicating public accessiblity (or inaccessibility)....

3501 10/04/2007 03:28 PM barteau

Find out if the document is a Member of an EML package, and if that's not the case, than skip the test to see if access is set through EML metadata.

3420 09/11/2007 03:36 PM walbridge

Refactored upload code to allow arbitrary POST parameter ordering, and open the door to multiple files in one HTTP request. Two new methods to MetaCatUtil to facilitate the file processing: writeTempFile and copyFile.

3356 08/13/2007 05:07 PM walbridge

Backing out change, certain cases cause the file to upload as 0 bytes, which pass all tests but leave us with no data. Will re-commit after 1.8 release and more complete testing.

3354 08/13/2007 03:22 PM walbridge

Updated com.oreilly.servlet (cos.jar) from 19Jun2001 to current 05Nov2002 version. Fixed uploading in MetaCatServlet.java to allow parameters after file object, was disabled for a workaround in the previous library.

3332 07/27/2007 11:23 AM Jing Tao

Add a delay time for initial indexing

3304 06/21/2007 04:13 PM Jing Tao

Add debug in query method.

3276 05/11/2007 12:06 PM Jing Tao

Add statement to output search time to a delimitered file

3270 05/10/2007 05:57 PM Jing Tao

Add new method to record the total search time to a file.

3259 05/08/2007 11:26 AM Jing Tao

Change the debug level for timing

3251 05/04/2007 06:32 PM Jing Tao

Modify the time debug message

3244 04/18/2007 02:26 AM Matt Jones

Added a new class called Sitemap that is used to generate a series of XML documents representing the URLs of metacat documents following the sitemap protocol. The Sitemap class extends TimerTask so that it can be scheduled to run once a day or so. New configuration options were added to metacat.properties to control where the sitemaps are written and hw often they are updated. By default we do it once a day, as more often is overkill for search engines....

3241 04/17/2007 03:36 PM Matt Jones

Added new feature to allow metacat documents to be retrieved from a URL that does not use the query url syntax, instead embedding the docid and qformat in the url path, as in this example:
http://localhost:8180/knb/metacat/test.1.1/knb
This format allows clients to read documents without entering a query URL, which will be used in a subsequent step to allow search engines to better index metacat content.

3230 04/12/2007 06:34 PM Jing Tao

Somehow the change went to the head rather than branch. So i rollback the change in head.

3229 04/12/2007 06:13 PM Jing Tao

This commit is for branch. In this commit the correct ip and user name will be stored in access_log table in replication event. However, it only for Forcereplication. And the test isn't completed yet. This commit is only for future use.

3219 04/02/2007 03:23 PM berkley

got paging working. metacat also now caches resultsets for users' sessions. the paging is a bit slow, due to some xpath statements. i need to get this optimized now.

3211 03/22/2007 09:59 AM berkley

adding changes to make paged query results possible

3202 03/07/2007 05:06 PM Jing Tao

Add exception handle code according the change in SpacialHarvest class.

3161 01/29/2007 07:16 PM Chris Jones

As a fix to http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2748, I'm applying
the patch sent to me from Mike Frenock when he reported this bug.

This patch changes MetaCatServlet.handleUploadAction() by first setting
a boolean flag on whether the file to be uploaded exists already. If it...

3143 01/18/2007 10:36 AM berkley

added a method to query metacat to see if a particular docid is registered or not

3140 01/09/2007 11:38 AM berkley

added getalldocids function to get all docids that match a certain scope.

3099 11/23/2006 12:32 AM Matt Jones

Updated MetaCatServlet so that it supports a web-based interface for configuring its own properties the first time it is run (determined by the property "configured" being set to false). Which properties are exposed in the web interface is determined by the list of properties in the 'metacat.properties.metadata' file. This file is managed by the new OptionsMetadata class in the utilities module, and provides information that allows metacat to build a human-readable configuration page for the properties. Still need to finish filling out the information in metacat.properties.metadata for the rest of the properties that we want to be editable. This autoconfiguration process is the first step towards building a turnkey installer for metacat....

3098 11/20/2006 06:11 PM perry

Ensure that spatial operations are only triggered when runSpatialOption is set to true.

3083 11/12/2006 01:55 AM Matt Jones

Modified the configuration classes to allow configuration through the web interface of all of the properties set in the metacat.properties file. The layout of this form still needs work, in particular because java.util.Properties does not maintain any order for the properties, nor does it allow for metadata about each property to be set and saved in the file. We can probably overcome this by creating a shadow file that lists all of the options and their metadata (such as grouping, controlled values, etc).

3082 11/11/2006 03:48 AM Matt Jones

Renamed method.

3081 11/11/2006 03:45 AM Matt Jones

Began work on a web interface for configuring metacat at runtime. This system
checks the 'configured' property when metacat starts up. If configured=false, then
it loads an HTML form containing the properties that need to be set. The user configures the properties and they are written into the metacat.properties file. Then metacat needs to be restarted. ...

3078 11/10/2006 10:51 AM Matt Jones

Eliminated the MetacatUtil.printMessage() method in favor of using the Log4J debugging methods.

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

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

3076 11/09/2006 11:22 PM Matt Jones

Changed the filename that is used when data files are downloaded and when XML files are downloaded in XML format. Now, data files use the format "docid-docname". See bug #2566.

3073 11/09/2006 03:49 PM perry

Only run spatial cache regeneration once. Plus some fixes to spatial_query action api.

3070 10/26/2006 05:13 PM perry

Changed float object handling in spatial components in order to compile on jdk 1.4.2

3055 10/04/2006 02:44 PM perry

fix to docid overrides to handle an empty result set

3047 09/18/2006 11:21 AM perry

Added docid override mechanism to DBQuery. Bypasses the queryspec.printSQL method and creates an optimized docid query in cases (like the spatial query) where you know the docids a priori

3045 09/13/2006 04:46 PM perry

Updated spatial query to also look at point spatial cache as some documents may only be represented as a single point.

3044 09/13/2006 04:10 PM perry

Rewrote spatial query handler to use geotools directly against the spatial cache.

3034 08/31/2006 04:37 PM perry

initial import of changes to metacat source and config files to support spatial option

3028 07/31/2006 02:50 PM perry

Fixed parameter order for call to createSpatialQuery and fixed bounding box intersection logic.

3002 06/07/2006 04:11 PM sgarg

Fix for a bug in MetacatServlet. Metacat assumed that it is supposed to get the schema information from the second line of the document. This is based
on the assumption that xml decleration will always be present. This is good practice but not required. Hence the fix -> Metacat should ignore the...

2970 03/24/2006 10:16 AM sgarg

Changes in the spatial query. The spatial query can be generated on the client side in form of an squery rather than specifically creating one on the server side.
Commented out the code which creates spatial query based on the coordinates sent to Metacat. Instead of that, a temporary method was added which creates the squery...

2948 03/03/2006 11:47 AM sgarg

iModified code -- the booleans werent really getting tested :(

2946 03/03/2006 11:36 AM sgarg

iModified the switch to turn/off the spatial searching.:wq

2938 03/01/2006 01:20 PM harris

Some style changes and small changes to the spatial querying system.

2922 02/24/2006 06:15 PM Matt Jones

Patched to fix regression bug that prevented insertion of documents
without a DOCTYPE or namespace declaration due to an
ArrayOutOfBoundsException. Now these documents can be inserted, which
is useful for inserting FGDC documents that frequently do not have a...

2919 02/24/2006 04:55 PM harris

Modified the way the results page is displayed.

2918 02/24/2006 02:11 PM sgarg

Fix in getNamespace function. Bug reported by Margaret in testing for cases where no namespace is specified.

2915 02/23/2006 11:16 AM harris

Integration of new shapefile writers (r. reeves code) with MSO.

2913 02/22/2006 10:22 AM harris

Continued integration of the spataial stuff with the metacat servlet.

2912 02/20/2006 07:41 PM harris

Integration of the metacat servlet with the spatial option -- rubberbanding is implemented too.

2901 01/20/2006 09:58 AM sgarg

Added a flag for indexing threads so that they exit once Metacat has unloaded.

2897 01/20/2006 08:34 AM sgarg

Added checks for null pointers and changed the name of the config file

2896 01/20/2006 08:21 AM sgarg

Using java.util.Property instead of Options. Options is a singleton class. Hence it cant be used for reading skin property files without changing it into a non-singleton class

2893 01/19/2006 02:35 PM sgarg

Making changes for passing the params to the xsl for skins.

2845 12/14/2005 10:19 AM sgarg

code to handle null pointer exception

2836 12/12/2005 11:32 AM sgarg

Added query for indexing attribute - needed for indexing packageId

2776 11/22/2005 05:44 PM Jing Tao

Fixed a log bug.

2759 11/17/2005 01:27 PM sgarg

Using xml_path_index instead of xml_index to find documents which havnt been indexed.

2758 11/17/2005 12:37 PM sgarg

Replaced hardcoded namespaces with variable defined in metacat.properties

2753 11/17/2005 11:38 AM Matt Jones

Changed logMetacat to be a local variable in MetaCatServlet to avoid any potential threading issues.

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.

2749 11/16/2005 12:38 PM Jing Tao

Fixed bug that data file upload failed, record couldn't be deleted.

2729 11/10/2005 01:34 PM sgarg

1. Added code to start the indexing thread.
2. Fixed a bug in the query on xml_nodes and xml_index
3. Added more debug statements
4. Fixed a bug in code which determines namespace

2712 11/01/2005 02:19 PM sgarg

Modification in algo:

1. Find if the root element has prefix (e.g. <eml:eml>). If found, go to step
2, otheriwse go to step 3.

2. Look for xmlns:prefix element to find the ns
(e.g.:xmlns:eml="eml://ecoinformatics.org/eml-2.0.0")
2.a If not found go to step 4...

2711 11/01/2005 02:09 PM sgarg

Bugfix for 2091. Removed the function needValidation(). Added function getPrefix which returns the prefix. And use the following steps to find out the namespace

1. Find if the root element has prefix (e.g. <eml:eml>). If found, go to step
2, otheriwse go to step 3....

2701 10/31/2005 12:56 PM sgarg

Bugfix to the code which sets parentnodeid in xml_path_index. (Use setInt instead of setFloat)

2690 10/24/2005 05:11 PM sgarg

Added warning to be displayed in the log when document is not inserted.

2682 10/20/2005 11:38 AM sgarg

Added a new action - getloggedinuserinfo - which returns information about the user in the following format.

<user>
<username>uid=sgarg,o=NCEAS,dc=ecoinformatics,dc=org</username>
<name>Saurabh Garg</name>
<isAdministrator/>
<isMOderator/>
</user>

2668 10/10/2005 12:27 PM sgarg

Changes in log levels of some commands mentioned in the previos commit.

2663 10/10/2005 11:06 AM sgarg

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

2648 10/04/2005 05:22 PM Jing Tao

Add code to guess the docid's revision in read action.

2594 09/15/2005 03:24 PM sgarg

added code to define LOG_CONFIG_NAME

2582 09/09/2005 10:42 AM Jing Tao

Change sessionHash to static variable and add a static get method.

2576 09/08/2005 01:41 PM sgarg

Modified MetaCatUtil to read metacat access control lists from metacat.properties. Also coded various methods which can be used to find out if a user is an admin, moderator or on allowed/denied submitter list.

Modified MetaCatServlet to check if a user is allowed to insert/update before insert and update is done.

2570 09/08/2005 10:04 AM Matt Jones

Formatting cleanup, fixed a missing 'private' declaration. Preparing for LSID integration work.

2558 09/06/2005 11:29 AM sgarg

Added new methods to MetaCatUtil: isAdministrator and isModerator.

These methods are used to check if a given username is part of the admin and moderator list specified in metacat.properties

Modified DocumentImpl and MetaCatServlet to use these functions.

2556 09/06/2005 08:42 AM sgarg

Added the patch provided by Johnoel. Check out the following link to bugzilla for more info: http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2081

2521 07/25/2005 11:49 AM sgarg

Adding a new method to MetaCatServlet for getting the value of paths to be indexed from metacat.properties file and indexing those paths in xml_path_index

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.

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

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

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

2292 09/16/2004 11:15 AM sgarg

changed function parameters in accordance with changes in PermissionController

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.

2268 09/09/2004 03:51 PM sgarg

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

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.

2245 08/19/2004 06:09 PM sgarg

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

2225 07/22/2004 03:32 PM sgarg

Removed some debugging code added in last commit

2224 07/22/2004 03:29 PM sgarg

Added code to read EML2.0.1 into source code.

2169 05/14/2004 02:38 PM sgarg

Made initial changes for accepting EML version 2.1.0 in Metacat