checking for a null objectformat
backtracking
add some error output
added a check for bad data into listObjects
commented out a println
updated DB scripts for D1 schemas
moved the dataone types to the metacat.properties file
changes to work with new dataone jars
fixed bug where the query cache was not getting reset by a REST insert/query combo.
new todos from code review with roger
added TODOs and cleaned up the code a bit
fixed mime multipart problems so that roger can try to use the d1client
fixed error where insert/update errors were not getting caught as exceptions
fixed bug with logger where localid didn't get appended when inserting a data file
reformatting logs for robert
fixed update bug I introduced yesterday while fixing replication
still working on getting guid problems fixed with replication
fixed yet another null sessionData bug
fixed more access control problems. also fixed extraneous white space that was getting put into the listobject output stream
fixed problems with access control on sysmeta
fix for set access bug
added functionality to set access permissions to system metadata the same as the document that it describes
hopefully fixed get bug where session was null
fixing another null auth token bug
changing d1 log format
added code to make sure the localId and guid get added to get and create d1 logs
removing println
fixed more NPE problems with sessionData. hopefully got them all this time
fix for null session bug
updated for date format that supports time zones correctly.
changed date comparison to compare to gmt only
fixed NPE with sessionData
fixed bug in access control where the sessionid was not correctly passed along so changes of privileges were not being made
fixing date formatting and timezone issues
fixed bug with log processing
fixed some bugs in time handling for listObjects and getLogRecords
bug fix to handle nulls
fixed bug in getLogRecords where the wrong id was getting set as the identifier
added new exception handling to serialize number format exceptions for rest calls
fixed listObject bugs, added params to the listObjects rest interface, consolidated the date format passed in params
fixed query for listObjects so that paging works as advertised.
fixed error with listObjects and get.
still looking for listObjects problem
more debug for another instance
adding some debug info
fixed bug with upper case comparison
changed getSessionData so that it will respond property to public tokens
tracked down streaming bug. now need to figure out a better way to fix it.
added getValue() to the guid so that it prints the guid and not an object id
added a DataOneLogger for event notifications on the CN. The logger is called DataOneLogger and can be managed in the log4j.properties file
finished getLogRecords. Fixed some date bugs in metacat.
adding getlogrecords to the rest interface.
changed getLogRecords to use new classes for log events
fixed bug in metacat that allowed attribute data to be appended to element data in returnfields
fixed bugs associated with crud access control changes.
implementing getLogRecords
added EventLog statements to all public methods in CrudService in preparation for addin the getLogRecords() method
added better debugging error messages for CN dev errors
made the test functional so that it checks that missing system metadata will be created.
mostly done with generating systemmetadata from legacy knb docs. need to write a better test and enable this through the ResourceHandler then it will be done.
working on getting systemmetadata creation working for legacy knb objects
working on a function to create dataone system metadata docs for legacy metacat objects that do not have SM.
moved authentication checking out of ResourceHandler and into CrudService
refactored the sessionService to use a correct singleton initialization scheme. Added true authentication to ResourceHandler.
new class to handle system metadata tasks in metacat
listObjects is now working for rest calls as well as crud calls
added some params to the loop that segments the listObjects resultset
finished the crud part of listObjects. need to implement it in the rest interface now.
implementing getObjects in CrudService.
listObjects is almost working. need to get the result set parsed when returned to CrudService.
setting up the framework for the listObjects api call
changed the detailCode for DataOne exceptions to a string
implemented update in ResourceHandler and fixed a bug in CrudService where data files were not handled correctly on update
removed system.outs
amost have update working. still need to get unit test squared away.
added exception testing to the crud test
getting getSystemMetadata to work
removed CrudService dependency on servlet params. CrudService is now a singleton. I'm getting an error from metacat saying it can't find teh systemmetadata schema, even though it is, in fact, registered with metacat. need to identify why this is happening.
adding a system to track system metadata documents for dataone
Added initial implementation of getSystemMetadata and its associated REST service. Current implementation is returning a hardcoded system metadata document -- need to look up the real document for each guid and return that.
Completed main parts of CrudService.create(). Now the method writes both data and metadata objects along with their system metadata, and handles the mapping between global identifiers and local identifiers. Access control and logging still need to be dealt with to properly authenticate and then log activities.
Modify CrudService to write SystemMetadata to disk with an autogenerated localId and an autogenerated GUID. Validation depends on the DataONE schemas being setup in xml_catalog properly, so still need to check upgrade scripts to be sure these new schemas are added. Still need to handle the metadata document insert, but should be same as system metadata insert.
Refactored metacat to use dataone-service-api-0.3.0 jar file, with the new JIBX generated types and serialization. Included JIBX runtime jar in metacat to handle serialization and deserialization of SystemMetadata objects. Removed the old API jar file.
Modifications to support the DataONE service API version 0.1.0. For DataONE, the get() andcreate() services are partially complete. Several more functions and checks need to be added tocreate() before it is viable. This DataONE support is not complete, and the current support breaks the MetacatRestClientTest for the time being (this client will eventually be removed).
Modifications to metacat rest service to use the new DataONE CrudService forget() operation. Minor issue with permissions errors propagating up thestack, but otherwise this is the first implementation of a full DataONEmethod.
Modified readFromMetacat() to pass most exceptions up the call stack, which allows creation of new entry points for calling reads. Still need tocontinue factoring out the HTTPServletResponse that is passed in in order tomake entrypoints that are not servlet based possible. Problem now is in...