Project

General

Profile

Statistics
| Revision:

# Date Author Comment
5998 03/01/2011 09:13 AM Chris Jones

To support GUIDs in MetacatHandler.handleDeleteAction(), I've added in a new method:
deleteFromMetacat() - deletes a document based on the docid
This factors the deletion code out of handleDeleteAction(). handleDeleteAction() now does a docid lookup based on GUID, and if it is not found, reverts to the deletion based on docid instead.

5977 02/17/2011 02:57 AM Chris Jones

These are fairly significant changes to MetacatHandler.handleInsertOrUpdateAction() that add in support for creation or update of GUIDs and SystemMetadata. Upon insertion or update of DataPackages from non-DataONE aware clients (such as Morpho), the identifier table is updated by creating a GUID, and the systemmetadata table is updated with fields after the EML document is parsed for distribution information and entity typing. System Metadata documents are also generated and inserted into Metacat. The list of data entities is iterated over and System Metadata is generated for each data file as well.

5976 02/17/2011 02:39 AM Chris Jones

In MetacatHandler I've removed updateSystemMetadata() in favor of additions to insertOrUpdateSystemMetadata(). Modified createSystemMetadata() to reflect the changes as well.

5975 02/16/2011 06:23 PM Chris Jones

Modified MetacatHandler.createSystemMetadata() to take a localId, not a guid as an argument since there are times when the guid has yet to have been created, and it is created in this method if so.
Also, put the read() call to get the InputStream of the data/metadata document into it's own try/catch statement.

5968 02/16/2011 01:56 PM Chris Jones

Somehow missed adding in javadoc for read(). Here it is.

5967 02/16/2011 01:52 PM Chris Jones

For now, getSystemMetadata() will be private like the other *SystemMetadata() methods.

5966 02/16/2011 01:47 PM Chris Jones

Modified MetacatHandler, updated the getSystemMetadata() method to now use read() and deserializeSystemMetadata() to produce the SystemMetadata object. Exceptions are pushed up the stack, and so accordingly, modified createSystemMetadata() to reflect the changes.

5962 02/16/2011 09:25 AM Chris Jones

Modified MetacatHandler, added createSystemMetadata() - generates SystemMetadata objects for newly inserted data or documents. This is intended to be used from handleInsertOrUpdateAction(), and only for documents being inserted from clients that don't support the DataONE interface. The method parses EML documents to discover data entities, and updates the system metadata for those entries, with support for describes and describedBy metadata. Currently doesn't handle FGDC, etc. documents....

5961 02/16/2011 09:14 AM Chris Jones

Modified MetacatHandler, added three methods:
getSystemMetadata() - returns a SystemMetadata object from the systemmetadata table using the given GUID. Stub only.
updateSystemMetadata() - updates the systemmetadata table using the given SystemMetadata object....

5960 02/16/2011 09:10 AM Chris Jones

Modified MetacatHandler and added two methods:
serializeSystemMetadata() - Serialize a SystemMetadata object to XML string
deserializeSystemMetadata() - Deserialize a SystemMetadata object from an XML string

5959 02/16/2011 09:07 AM Chris Jones

Modified MetacatHandler, added read() - Read a document from metacat and return an InputStream. The XML or data document should be on disk, but if not, read from the metacat database. This method should be optimized, along with others, to not write stream data to disk for performance reasons.

5958 02/16/2011 09:06 AM Chris Jones

To support generation of SystemMetadata and GUIDs, added a number of methods to MetacatHandler that are also in CrudService(). CrudService should eventually be refactored to use the handler methods. Added:
readFromFilesystem() - Read a file from Metacat's configured file system data directory, and return a FileInputStream. This code has been factored out of handleInsertOrUpdateAction()....

5957 02/15/2011 02:08 PM berkley

fixed bug where the wrong checksum alg got written to the db

5956 02/14/2011 02:03 PM Matt Jones

Updated DROP script that was missing tables and sequences.

5955 02/14/2011 11:45 AM berkley

added file extension for txt or csv files

5953 02/13/2011 11:20 AM Chris Jones

To support the generatemissingsystemmetadata REST call, modified CrudService.createSystemMetadata() to use DataoneEMLParser and further determine object formats from EML metadata. Formats currently supported are text/plain, text/csv, image/[jpg|jp2|bmp|tiff|png], and only for EML documents with 'ecogrid://' defined entity urls....

5950 02/11/2011 01:48 PM berkley

adding more debuggin and fixing bug with systemmetadata

5945 02/10/2011 06:06 PM Jing Tao

Add code to download the included schema.

5944 02/10/2011 04:17 PM berkley

fixed replication bug where systemmetadata was not getting procssed correctly

5943 02/10/2011 10:56 AM berkley

think I fixed the connection problem. one connection in IdentifierManager was being leaked. added more debug info in case it happens again

5941 02/10/2011 10:27 AM Jing Tao

Add a static method to get base url base on a schema url.

5938 02/09/2011 05:00 PM Jing Tao

A sax handler class can get included schema path.

5933 02/08/2011 02:08 PM berkley

added some debug info to DBConnectionPool

5930 02/08/2011 12:05 PM berkley

fixed typo that prevented replication

5929 02/08/2011 11:46 AM berkley

fixed node response bug

5927 02/07/2011 03:41 PM berkley

fixed update problem

5926 02/07/2011 02:49 PM berkley

put the pid in the info section of the url

5923 02/07/2011 10:50 AM berkley

fixed content type problem where csv files were set as text/xml

5922 02/04/2011 06:34 PM berkley

fixed problem with count in listObjects()

5921 02/04/2011 06:14 PM Matt Jones

Cleaned up warnings, removed dead code.

5920 02/04/2011 05:53 PM Matt Jones

Updated to most recent DataONE libraries. Updated CrudService to set the correct origin MN and auth MN in system metadata. Refactored exception passing. More work to come in generating SystemMetadata.

5918 02/04/2011 01:05 PM berkley

removed debug statements

5917 02/04/2011 12:39 PM berkley

fixed bugs in listObjects

5916 02/04/2011 11:30 AM Matt Jones

Add in correct node references in system metadata.

5915 02/04/2011 10:29 AM Matt Jones

Cleanup harvester exceptions and generics.

5914 02/04/2011 06:17 AM ben leinfelder

remove httpclient 3.1 and custom-built httpclient.jar
rework MetacatClient (and other classes) to use httpclient 4
updated build to not create httpclient.jar
encoding tests now pass.

5913 02/04/2011 05:57 AM ben leinfelder

blank configuration value should be treated the same as null

5906 02/03/2011 03:39 PM berkley

few bug fixes for listObjects

5895 02/03/2011 03:25 PM berkley

added code to do database query for listObjects

5893 02/03/2011 01:19 PM Matt Jones

Cleaned up unused imports.

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)

5887 02/02/2011 03:52 PM berkley

adding fields for additional system metadata info

5886 02/02/2011 11:43 AM ben leinfelder

use the read() method instead of manually calling with parameters

5881 02/01/2011 12:13 PM berkley

some new code for debugging mmp

5874 01/31/2011 03:48 PM berkley

updated the populator

5870 01/31/2011 01:30 PM berkley

added code to run an squery for listObjects instead of an anyfield query

5867 01/31/2011 11:55 AM ben leinfelder

always re-write web.xml in case geoserver has been redeployed
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4307

5860 01/28/2011 03:52 PM Matt Jones

Modified MetacatPopulator to deal with change in D1Client static methods.

5857 01/28/2011 01:59 PM berkley

added more code for new mmp requests

5854 01/27/2011 03:51 PM berkley

bug fixes

5851 01/27/2011 03:08 PM berkley

refactor checksum and some other stuff

5850 01/27/2011 02:44 PM ben leinfelder

include a default location for the Geoserver data directory (under the metcat deployment)

5849 01/27/2011 12:17 PM berkley

added some debug lines

5847 01/26/2011 04:11 PM ben leinfelder

rework geoserver configuration:
-geoserver context is set to 'geoserver' by default, but can be reconfigured
-data directory is set in the geoserver web.xml file (we have a template, set the value accordingly, then overwrite the deployed version in the geoserver webapp)...

5846 01/26/2011 04:06 PM ben leinfelder

add boolean return to indicate whether or not a property was modified

5844 01/25/2011 03:50 PM berkley

trying to get the new MMP handler working with ResourceHandler

5843 01/25/2011 03:18 PM berkley

updating commons-fileupload to 1.2.2

5838 01/24/2011 03:32 PM berkley

replicate works on metacat now. just waiting for roberts changes to the mmp clients

5835 01/21/2011 04:40 PM ben leinfelder

use local shape files if the Geoserver env variable is not set. They might also be the same

5829 01/21/2011 03:08 PM ben leinfelder

geoserver upgrade:
-remove embedded geoserver
-include geotools api and update spatial harvesting
-include simple template for using maps in skin (openlayers now, not mapbuilder)

5826 01/21/2011 02:27 PM berkley

new mmp code

5808 01/14/2011 11:16 AM berkley

refactored MMP handling

5805 01/13/2011 03:15 PM berkley

implementing replicate

5802 01/13/2011 11:58 AM berkley

removing code I just added

5801 01/13/2011 11:54 AM berkley

adding default url to test against

5798 01/13/2011 11:33 AM berkley

fixes for creating SM for legacy docs

5796 01/12/2011 11:57 AM berkley

fixing generateSystemMetadata

5794 01/11/2011 04:52 PM berkley

updated replicate to only use GET requests. added notes for tomorrows standup

5792 01/10/2011 11:40 AM ben leinfelder

use the detected document encoding when getting the outputstream writer from the response
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2495

5791 01/10/2011 10:51 AM berkley

fixed bug with http/https port

5780 01/06/2011 12:26 PM berkley

adding additional debugging info

5779 01/06/2011 12:25 PM berkley

undoing last commit

5778 01/06/2011 12:24 PM berkley

added additional debugging info

5777 01/06/2011 11:19 AM berkley

adding war version replacement token

5776 01/06/2011 10:51 AM berkley

fix for member variables but in the request wrapper

5775 01/06/2011 09:52 AM berkley

adding war version to node response

5770 01/04/2011 04:04 PM berkley

implemented health api

5767 01/04/2011 01:48 PM ben leinfelder

use debug level for request encoding message

5764 01/04/2011 11:26 AM berkley

new class

5763 01/04/2011 11:26 AM berkley

implemented ping

5761 01/04/2011 09:44 AM berkley

added url decoding to the filter

5760 12/27/2010 02:47 PM ben leinfelder

use detected document encoding or Metacat's default encoding (UTF-8)

5756 12/27/2010 11:20 AM ben leinfelder

use UTF-8 encoding when getting bytes from the DB and converting them into a string.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2495

5755 12/23/2010 09:10 AM ben leinfelder

only call response.getWriter() when we are about to send text/xml to the client, otherwise we end of calling both getWriter() and getOutputStream() - resulting in an illegal state.

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

5751 12/20/2010 03:02 PM berkley

fixed a bug with trailing slashes

5750 12/20/2010 02:19 PM berkley

fix for paths with semi-colons or other 'reserved' characters in them for D1 rest services

5746 12/17/2010 11:25 AM berkley

added semi-colon id test

5742 12/15/2010 11:05 AM berkley

fixed bug where comparisons didn't work because of my change this morning

5741 12/15/2010 10:29 AM berkley

made this method more robust

5735 12/14/2010 02:47 PM berkley

fixed bug in new code

5734 12/14/2010 02:38 PM berkley

fixed bug where permission would get set to -1 for no good reason

5731 12/14/2010 12:59 PM ben leinfelder

typo - "dataset/pubDate"

5730 12/14/2010 12:36 PM ben leinfelder

add pubDate to return fields

5714 12/09/2010 03:54 PM ben leinfelder

use EML 2.1.1 and UTF-8

5709 12/08/2010 04:59 PM ben leinfelder

add support for EML 2.1.1

5708 12/08/2010 04:52 PM ben leinfelder

fix the setaccess() method so that it accepts strings not numbers (i.e. "read" not "4")

5695 12/07/2010 02:26 PM berkley

added response type

5693 12/07/2010 02:03 PM ben leinfelder

allow public access to log information when docid is given. IP and principal are not returned unless an administrator makes the request.

5692 12/06/2010 02:29 PM berkley

added the root registry node response