Project

General

Profile

  • svn:keywords: Author, Date, RCSfile
  • svn:mergeinfo: /branches/D1_0_6_2_BRANCH/src/edu/ucsb/nceas/metacat/dataone/MNodeService.java:6107-6121 /branches/METACAT_2_6_BRANCH/src/edu/ucsb/nceas/metacat/dataone/MNodeService.java:9560-9776 /tags/METACAT_2_6_0_ALPHA_2/src/edu/ucsb/nceas/metacat/dataone/MNodeService.java:9693-9699

# Date Author Comment
10321 05/22/2017 12:52 PM Jing Tao

Fixed a bug that the eml object wasn't changed checksum but its content was modified in the publish method.

10300 05/18/2017 11:51 AM Jing Tao

Add the code to remove the pid from the identifier table if the update method failed.

10280 05/17/2017 03:32 PM Jing Tao

Add the checksum as a parameter to the method handleInsertOrUpdate.

10270 05/17/2017 09:36 AM Jing Tao

Removed the duplicated code to check the checksum in the replicate method since the method D1Node.create, which is called by the replicate method, has the mechanism.

10249 05/11/2017 10:43 AM Jing Tao

Add some debug information.

10219 04/07/2017 04:33 PM Jing Tao

Make sure it is same as branch 2.8 except the mdq stuff

10218 04/07/2017 04:29 PM Jing Tao

Still use syncFailed.getPid to get identifier in the syncFailed method.

10217 04/06/2017 04:42 PM Jing Tao

Fixed typos in the vairable name.

10216 04/06/2017 04:36 PM Jing Tao

In the synchronizationFailed method, use syncExcpetion.getIdentifier method to try before the obsoleted method getPid.

10172 01/06/2017 04:36 PM ben leinfelder

Trigger MDQ when inserting or updating metadata documents. https://projects.ecoinformatics.org/ecoinfo/issues/7171 and https://github.com/NCEAS/mdqengine/issues/73

10129 12/15/2016 02:40 PM Jing Tao

Change the calling code when the method insertOrUpdateDocument signature is changed.

10118 12/13/2016 02:43 PM Jing Tao

Add some performace debug information.

10104 12/07/2016 04:06 PM Jing Tao

Don't share the same executor in the two classes.

10102 12/07/2016 01:34 PM Jing Tao

Call the cn.synchronize method asynchronously in the mn.updateSystemmetadata method.

10021 10/19/2016 03:29 PM Jing Tao

Add some information about pid on the log statement.

9997 09/28/2016 05:42 PM Jing Tao

Add the code to expand the rights holder if it is a group.

9809 05/25/2016 12:18 PM Jing Tao

Use the method getContextURL rather than getSecureContextURL in the getCapacities method.
So if the server doesn't support sll, the getCapacities will return a baseURL with http.

9783 05/18/2016 01:56 PM ben leinfelder

correct two minor differences from 2.6 merge: formatId parameter for MetacatHandler and using AuthUtils for gathering group membership information.

9781 05/18/2016 09:23 AM Chris Jones

Merge in changes from the 2.6.0 release.

9700 04/30/2016 12:53 PM Chris Jones

Merge changes from the 2.6.0 branch in MNodeService.allowUpdating() so it honors the localhost MN certificate.

refs https://projects.ecoinformatics.org/ecoinfo/issues/7018

9601 03/30/2016 09:32 AM Jing Tao

Reformat the create and update method.

9600 03/30/2016 09:19 AM Jing Tao

Close the input stream on the create/update method when the code aborts.

9583 03/23/2016 03:57 PM Jing Tao

If a format id in the system metadata is registered in the xml_catalog table, we will use the schema location for the format id to validate the xml instance;
otherwise, we will use our previous way.

9544 03/07/2016 01:32 PM Jing Tao

Close the input stream object on the MN.replicate method.

9542 03/04/2016 11:06 AM ben leinfelder

use SM.fileName if we have it. https://projects.ecoinformatics.org/ecoinfo/issues/6970

9541 03/04/2016 10:31 AM ben leinfelder

ensure there is a file extension included for the data files in a package download. https://projects.ecoinformatics.org/ecoinfo/issues/6970

9538 02/29/2016 10:54 AM Jing Tao

Add code to print the the stack trace on the getPackage method in order to help us to identity some tmp file issues.

9494 01/20/2016 11:17 AM Jing Tao

Put a detal code on the InvalidRequest exception in the getPackage method.

9493 01/20/2016 09:59 AM Jing Tao

If the pid it is a package id in the getPackage method, the method will throw an InvalidRequest exception.

9486 01/12/2016 10:22 AM ben leinfelder

set authoritative MN to origin MN if the client did not set it on mn.create. https://projects.ecoinformatics.org/ecoinfo/issues/6938

9481 01/05/2016 02:06 PM Jing Tao

Use the ServiceFailure to replace the InvalidRequest when it is the read-only mode (CN throws the exception).

9480 01/05/2016 09:42 AM Jing Tao

In the replicate method, the checking of the read-only mode was moved from MNodeService class to the MNResourceHandler class since it is asynchronized.

9479 01/04/2016 05:23 PM Jing Tao

The systemmetadataChanged method is asynchronized, so we put the read-only checking on the ResourceHandler class.

9478 01/04/2016 03:09 PM Jing Tao

Add the code to check if the mn is on the read-only mode.

9387 11/02/2015 04:44 PM Lauren Walker

Move the editScienceMetadata method to the MNodeService class - only update packageId in EML on publish()

9384 10/29/2015 04:00 PM Jing Tao

The archived field can't be reset to false if it is true in the systemMetadataChanged method.

9382 10/28/2015 11:14 AM Jing Tao

In the systemMetadataChanged method, we will update system metadata when the local serial version is less than or equals the comming one.

9380 10/27/2015 03:42 PM rnahf

refs #7453: modified the metacatLog message from mn.synchronizationFailed to include the syncFailed.message field. Also increased the log level to WARN.

9376 10/22/2015 12:15 PM Jing Tao

Remove the method editScienceMetadata from the update method. This method will add a packageId attribute into the eml document. Lauren will add the method to the publish method.

9375 10/21/2015 04:52 PM Jing Tao

In the systemMetadataChanged method, the object will be archived if the new archive value is true and old value is false.
The log event is recorded in the systemMetadataChanged method as well.

9374 10/21/2015 03:31 PM Jing Tao

Make the isAuthoritativeNode throw exception if some value is null.

9373 10/20/2015 04:11 PM Jing Tao

In the updateSystemMetadata method, we avoid to log the event twice for archive=true.

9354 10/01/2015 05:33 PM Jing Tao

Add the case the mn.updateSystemMetadata and cn.updateSystemMetadata will call the archive method internally.

9353 10/01/2015 03:01 PM Jing Tao

Refactory the mn.archive and cn.archive method so the mn.update and cn.update can reuse them.

9352 10/01/2015 02:23 PM Lauren Walker

Update the packageId attribute in EML documents on update. Never display the local docid in the rendered EML.

9340 09/28/2015 01:47 PM Jing Tao

Add a flag on the systemMetadataChanged method. If it is true, the authoritative member node will only accepts the serial version and replica list; the replica node accepts everything. If it is false, it will accept everything.

9335 09/24/2015 04:58 PM Jing Tao

Add the code to check the date of system metadata modification match in MN.updateSystemMetadata only. CN.updateSystemMetadata doesn't check.

9322 09/15/2015 03:15 PM Jing Tao

Add the code to check if we can't get the current system metadata from the node in the mn.systemMetadataChanged method.
If we can't find it, an InvalidRequest will be thrown.

9314 09/02/2015 11:22 AM Jing Tao

Fixed some incorrect exceptions in the getReplica method.

9305 08/25/2015 03:25 PM Jing Tao

Use the application/bagit-097 to replace application/bagit.

9295 08/14/2015 04:06 PM Jing Tao

Use the D1NodeVersionChecker to determine the mn's version rather than using ping.

9290 08/10/2015 04:57 PM Jing Tao

Only support the application/bagit format in the getPackage method.

9288 08/07/2015 08:02 AM Jing Tao

Use the status of mn.ping to guess the version of the source node in the replicate method.

9287 08/06/2015 05:23 PM Jing Tao

In the replicate method, it will use the v1.getReplica method if the source node only supports v1 replication service.

9283 08/06/2015 01:57 PM Jing Tao

Increase the version number after updating the existing object's system metadata in the update method.

9263 07/27/2015 04:20 PM Jing Tao

On mn.update and mn.updateSystemMetadata, those clients are allowed:
1. CNs.
2. Clients with appropriate permission calling the method on the authoritative nodes.

9257 07/21/2015 01:32 PM Jing Tao

Add code to catch the BaseException in the updateSystemMetadata method.

9256 07/20/2015 03:21 PM Jing Tao

Add the code to handle if the cn is null.

9253 07/16/2015 02:51 PM Jing Tao

Handle multiple versions (v1 and v2) of a service in getCapacity method.

9249 07/15/2015 11:07 AM Jing Tao

Use the NodeReference object to replace the replicaStatus to restrict the listObjects method.

9248 07/15/2015 10:44 AM ben leinfelder

[re]register DOI when system metadata is updated (typically access policy). https://projects.ecoinformatics.org/ecoinfo/issues/6796

9246 07/14/2015 04:42 PM Jing Tao

Add the code to call cn.synchroinize at the method of updateSystemMetadata.

9200 05/07/2015 06:13 PM Jing Tao

Add the code to check if the client is trying to update an archived object. If it is, reject it.

9190 05/01/2015 04:25 PM Jing Tao

Refactory the authorize methods on D1NodeService.
Add the check for whom can call mn.updatesystemMetadata.

9177 04/22/2015 05:01 PM Jing Tao

Created the updateSystemMetadata method.

9146 03/09/2015 05:19 PM Jing Tao

Add the code to support CNView interface in CNodeService. Both CNodeService and MNodeService share the same code base.

9092 02/04/2015 03:10 PM Jing Tao

Add the code transform a sid to a pid in publish, getPackage and view method. Fefer dataONE #6734.

9071 01/16/2015 02:22 PM Jing Tao

The MN.listobjects and CN.listobjects methods will call the one in the D1NodeService class.

9068 01/15/2015 05:27 PM Jing Tao

Moved the rules for the SID from D1NodeService.create to MNodeService.create.
Also moved the code to check the validation of an pid from D1NodeService.create to MNodeService.create, MNodeService.replicate and CNodeService.create.

9056 01/06/2015 03:32 PM Jing Tao

Add the code to check the if the new series id is legitimate in the systemMetadataChanged method.

9051 12/31/2014 03:49 PM Jing Tao

Add the code to support the sereis id on isAuthorized and systemMetadataChanged method.

9050 12/30/2014 04:34 PM Jing Tao

Add the code to handle the sid in the delete and archive method.

9048 12/30/2014 02:09 PM Jing Tao

Fixed a bug in comparing two identifiers in the update method.

9047 12/30/2014 11:04 AM Jing Tao

Add a check that the sid shouldn't equals the pid in the update and create method.

9046 12/29/2014 05:10 PM Jing Tao

Add the code the check if the format of the sid is valid in the system metadata.

9044 12/29/2014 04:26 PM Jing Tao

Enforce the sid requirement in the update method.

9040 12/29/2014 11:42 AM Jing Tao

Enforce the mn.getChecksum only to handle an PID.

9024 12/16/2014 06:50 PM Jing Tao

Fixed a bug that the method getLocalId swallowed an exception incorrectly in the IdentifierManager.

8948 10/31/2014 05:36 PM Jing Tao

Write the input stream into the file system without alteration in dataone create and update methods.

8810 07/23/2014 04:19 PM ben leinfelder

add support for v2 DataONE API.

8800 05/28/2014 11:49 AM ben leinfelder

Include PDF version of the metadata in the package download. https://projects.ecoinformatics.org/ecoinfo/issues/6053

8795 05/22/2014 01:59 PM ben leinfelder

take advantage of the ezidclient for multi-threaded/asynchronous DOI registration. This will be most useful for doing large batch updates and not so much for the one-at-a-time publish actions but works in either context. https://projects.ecoinformatics.org/ecoinfo/issues/6440

8745 04/23/2014 10:19 AM ben leinfelder

correct the ORE lookup query syntax and add junit assertion to check that it continues to function as expected. https://projects.ecoinformatics.org/ecoinfo/issues/6529

8647 02/25/2014 04:14 PM ben leinfelder

recursively submit obsoleted objects for indexing when instructed. https://projects.ecoinformatics.org/ecoinfo/issues/6424

8599 02/13/2014 02:08 PM ben leinfelder

add comment (and commented out code) for possibly inspecting the /dirtySysMeta call for archive=true flag. https://projects.ecoinformatics.org/ecoinfo/issues/6417

8594 02/12/2014 01:56 PM ben leinfelder

make all objects in a package publicly readable when published. https://projects.ecoinformatics.org/ecoinfo/issues/6415

8591 02/11/2014 01:43 PM ben leinfelder

make all package contents publicly readable when publishing with a DOI. https://projects.ecoinformatics.org/ecoinfo/issues/6415

8464 01/07/2014 01:56 PM ben leinfelder

Unify solr indexing with an IndexTask that is added to the queue -- allows us to send more than just the systemMetadata to the indexer. Initially this is for READ event counts for each document. https://projects.ecoinformatics.org/ecoinfo/issues/6346

8437 12/17/2013 09:42 AM Lauren Walker

retrieve the given file names (entityName) of the data files from the EML and use those for our file names in the BagIt content.

8436 12/13/2013 03:42 PM Lauren Walker

Change the BagIt file names to the pid+resource type. Create new Files instead of createTempFile to avoid the randomly generated numbers in the name.

8414 11/25/2013 01:40 PM Jing Tao

Add the code to set the replication status when some exceptions happen.

8362 11/04/2013 01:56 PM ben leinfelder

generate ORE object when publishing even if there was not an ORE for the original package. https://projects.ecoinformatics.org/ecoinfo/issues/6194

8360 10/31/2013 01:07 PM Jing Tao

Add the methond named isAuthoritativeMNodeAdmin method. It applies to both CN and MN methods.

8267 09/24/2013 04:21 PM ben leinfelder

do not modify existing SystemMetadata on MN.update() if something goes wrong during content insertion. https://projects.ecoinformatics.org/ecoinfo/issues/6101

8210 09/16/2013 04:33 PM ben leinfelder

require authenticated session when minting a DOI/other identifier. https://projects.ecoinformatics.org/ecoinfo/issues/6086

8200 09/13/2013 03:53 PM ben leinfelder

only attempt to generate OREs for objects that we know not to have them already. https://projects.ecoinformatics.org/ecoinfo/issues/6061

8190 09/12/2013 04:50 PM ben leinfelder

better checking for ORE maps when publishing DOIs (need to update the packages that contain sci meta). https://projects.ecoinformatics.org/ecoinfo/issues/6061

8162 08/23/2013 04:01 PM Jing Tao

Add code to throw an exception if the pathquery is not enabled.
We also need to disable building index if the pathquery is disabled.

8160 08/22/2013 04:04 PM ben leinfelder

use consistent file names and zip content names. Opted for "-" separator so that the zip writer does not remove the unique part of the filename. https://projects.ecoinformatics.org/ecoinfo/issues/6054

8141 08/13/2013 12:57 PM ben leinfelder

copy the original systemMetadata when publishing a revision in order to avoid overwriting the original values - the shared map is listening! https://projects.ecoinformatics.org/ecoinfo/issues/6014