Project

General

Profile

  • svn:keywords: Author Date RCSfile
  • svn:mergeinfo: /branches/D1_0_6_2_BRANCH/src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java:6107-6121 /branches/METACAT_2_6_BRANCH/src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java:9560-9776

# Date Author Comment
10288 05/17/2017 08:37 PM Jing Tao

Move the checking if the checksum exists into the create method.

10272 05/17/2017 03:06 PM Jing Tao

Add code to check the check sum by the DigestOutputStream.

10205 04/06/2017 08:54 AM Jing Tao

In the expandRightHolder method, we don't use the parameter count=-1 to query the cn. Now we use count=200 and will use the page query to query again if it is necessary.

10186 03/01/2017 02:16 PM Jing Tao

In the archive method, add a new mechanism to check if the local id is in the xml_revision table if it is not in the xml_documents table.

10147 12/21/2016 02:30 PM Jing Tao

Change the param from the class field to a local variable.

10140 12/16/2016 12:02 PM Jing Tao

Change the condition that remove identifier from the identifier table in the method removeSystemMetaAndIdentifier.

10138 12/16/2016 10:48 AM Jing Tao

Add the pid in a debug statement.

10130 12/15/2016 02:41 PM Jing Tao

Add the code to check if the object does exist in the create method. If it doesn't, the system metadata and identifier will be removed.

10106 12/08/2016 02:15 PM Jing Tao

Add methods to check if there are circular obsoletes/obsoletedBy chains in the mn.updateSystemmetadata method.

10030 10/26/2016 05:10 PM Jing Tao

Change an exception to more appropriate exception.

10027 10/24/2016 01:36 PM Jing Tao

Add more debug statement for deleting.

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

Add some information about pid on the log statement.

10006 10/05/2016 04:53 PM Jing Tao

Clear the code for the method handleInsertOrUpdate.

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

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

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.

9709 05/02/2016 11:35 AM ben leinfelder

merge from 2.6 branch: use AuthUtils to gather user group subjects

9690 04/27/2016 12:14 PM ben leinfelder

merge from 2.6 branch: use AuthUtils to get group and equivalent identities rather than manually try to extract groups from subject info (can include incorrect groups for given primary subject). https://github.nceas.ucsb.edu/KNB/arctic-data/issues/163

9688 04/27/2016 11:56 AM ben leinfelder

merge from 2.6 branch: use group subject (not name) when translating Session.subjectInfo into group list for Metacat's DocumentImpl. https://github.nceas.ucsb.edu/KNB/arctic-data/issues/163

9599 03/29/2016 02:01 PM Jing Tao

Close the the input stream from the method parameter in the create method.

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.

9523 02/19/2016 12:32 PM Jing Tao

In the isScienceMetacata method, the ServiceFailure exception shouldn't be caught anymore, since the code doesn't throw it.

9452 12/16/2015 09:58 AM ben leinfelder

include check for d1 rightsholder when checking permissions in original metacat code base. https://redmine.dataone.org/issues/7560

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

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

9385 10/29/2015 06:59 PM Jing Tao

Fixed a bug in the condition check for the archive field in the updateSystemMetadata method.

9383 10/29/2015 03:56 PM Jing Tao

Doesn't allow to reset the archived field to be false if the field is true in the updateSystemMetadata method.

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.

9350 10/01/2015 12:30 PM Jing Tao

In the archive method, add the lock.

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.

9329 09/23/2015 03:35 PM Jing Tao

Commented out the code to check serial version on the updateSystemMetadata method.

9328 09/23/2015 12:00 PM Jing Tao

Add more debug messages for the isCNAdmin method.

9325 09/16/2015 10:04 AM Jing Tao

Add more debug statement for the updateSystemMetadata method.

9321 09/10/2015 09:47 AM Jing Tao

Fixed a bug that a client can set the original member node to be null.

9320 09/09/2015 02:09 PM Jing Tao

Change some exceptions from the InvalidSystem to the InvalidRequest in the updateSystemMetadata method.

9309 08/28/2015 09:30 AM Jing Tao

In the isAdminAuthorized method, the faiure of the isNodeAdmin method will not interrupt the next check - if it is a cn.

9284 08/06/2015 02:34 PM Jing Tao

The code was added to compare the serial version in the updateSystemMetadata method. If the serial version in the new system metadata is less than or equals previous version, an exception will be thrown.

9280 08/05/2015 04:37 PM Jing Tao

Fixed a possible null exception in the updateSystemmetadata method.

9277 08/05/2015 04:19 PM Jing Tao

In the MN.updateSystemMetadata method, when we set the obsoletedBy and obsoletes method, we will check if those values already exist in other chains.

9275 08/04/2015 03:53 PM Jing Tao

Add the identifier in the message of the exception when a client tries to reset the obsoletes or obsoletedBy fields.

9274 08/04/2015 02:58 PM Jing Tao

Check the obosoletedBy and Obsoletes only can be set once.

9258 07/21/2015 04:22 PM Jing Tao

When compare the dateUploaded, now we use sysmetadata.getDateUploaded().getTime(). It used systemmetadata.getDateUploaded() (Date objects) to compare.

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

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

9219 05/28/2015 01:19 PM Jing Tao

Add the code to roll back the saved system metadata if the object can't be saved.

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.

9176 04/22/2015 03:52 PM Jing Tao

Add the code to check if the current node is the authoritative node for the the given pid.

9175 04/21/2015 02:35 PM Jing Tao

Add the check of permission to update the system metadata.

9168 04/14/2015 02:29 PM Jing Tao

Fixed a bug that put the detail code in a wrong position.

9166 04/13/2015 06:18 PM Jing Tao

Add the code to check if a user tries to modify an immutable field on system metadata.

9148 03/09/2015 06:29 PM Jing Tao

Make the REST api work for views.

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.

9073 01/20/2015 02:25 PM Jing Tao

Add the rules to check the if a sid is valid in the updateSystemMetadata method.

9072 01/16/2015 05:59 PM Jing Tao

Implemented the feature to support the identifier(both sid and pid) feature in the objectLists method.

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.

9063 01/07/2015 04:37 PM Jing Tao

Add the code to handle SID in the getLogRecords 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.

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.

9045 12/29/2014 05:06 PM Jing Tao

Add the enforcement for the sid in the create method.

9041 12/29/2014 12:23 PM Jing Tao

Add the code to handle the deleted identifier in the checking v1 system metadata existing method.

9037 12/24/2014 09:47 AM Jing Tao

Implement the series id in the getSystemMetadata method.

9036 12/23/2014 04:53 PM Jing Tao

Looking for sid for the method describe.

9033 12/22/2014 02:31 PM Jing Tao

Refactor the code to check a pid exists in the v1 api.

9032 12/19/2014 04:59 PM Jing Tao

Modified the get method to handle the sid in the v2 api.

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

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

9023 12/12/2014 04:25 PM Jing Tao

Fixed a bug that some service failure exceptions were handled as the NotFound exception.

9017 12/11/2014 03:24 PM Jing Tao

1. In the identifierExists method, the code to check if the identifier exist on the serial-id fields of the system metadata table.
2. Fixed a bug on the identifierExists - it considered an identifier didn't exist when the determining process threw an exception.

8971 11/17/2014 04:30 PM Jing Tao

Add delete log for data objects on CNs.

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.

8903 10/15/2014 04:34 PM Jing Tao

Added the code to inform users the pid was deleted in the NotFound exception.

8901 10/14/2014 06:11 PM Jing Tao

Added the code to check if a not-found object was deleted in the isAuthorized method.

8826 08/06/2014 01:09 PM ben leinfelder

update to use v2 types for indexing

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

add support for v2 DataONE API.

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

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

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

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

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

8314 10/14/2013 03:22 PM Jing Tao

Fixed a bug that the group information couldn't be retrived from the session.

7862 07/08/2013 06:19 PM ben leinfelder

comment out the index queue call when archive() is called - I think it is causing the duplicate events for the listener. https://projects.ecoinformatics.org/ecoinfo/issues/6030

7816 06/21/2013 11:11 AM ben leinfelder

correct regex for whitespace in D1 identifier.

7812 06/20/2013 04:49 PM ben leinfelder

use an independent ISet<SystemMetadata> structure to communicate objects that should be indexed by metacat-index. https://projects.ecoinformatics.org/ecoinfo/issues/5943

7439 11/29/2012 04:52 PM ben leinfelder

limit /log and /object calls to configurable maximum count for paging. defaults to existing Metacat value of 7000

7430 11/23/2012 10:02 AM ben leinfelder

no need to mark SM as archived now that DocumentImpl.delete() does it.
https://redmine.dataone.org/issues/3406

7417 11/07/2012 02:53 PM ben leinfelder

Implement MNQuery for "pathquery" engine. Optionally include guid in the pathquery results (https://redmine.dataone.org/issues/3083)

7398 10/08/2012 11:09 AM ben leinfelder

include the subjects we are testing for authentication.
https://redmine.dataone.org/issues/2778

7355 08/15/2012 03:46 PM ben leinfelder

make sure data objects correctly use force replicate with action "insert"
https://redmine.dataone.org/issues/3138

7330 07/26/2012 12:08 PM ben leinfelder

check if the caller is the Node admin (the member node calling itself) as well as the existing check for the CN calling the service. Both of those callers should be given full admin rights.

7318 07/17/2012 01:34 PM ben leinfelder

check for invalid (!) pids. thanks, M. Reyes for catching this
https://redmine.dataone.org/issues/3047

7315 07/17/2012 11:09 AM ben leinfelder

check for whitespace in identifiers during create() and update()
https://redmine.dataone.org/issues/3047

7285 07/02/2012 12:06 PM ben leinfelder

first pass: DataONE-specific log retrieval to avoid java-based post-processing.

7244 06/06/2012 10:01 AM Chris Jones

Add debug logging to delete() to understand why we're getting InsufficientKarmaException.

7236 06/05/2012 02:07 PM Chris Jones

Since we already have determined access via isAuthorized() and isAdminAuthorized(), act as the Metacat administrator during calls to DocumentImpl.delete() in archive(), passing in null username and group.

7234 06/04/2012 08:49 PM ben leinfelder

restrict getLogRecrods (both MN and CN) to be called only by admin users (the CN)
https://redmine.dataone.org/issues/2855

7184 05/23/2012 09:57 AM ben leinfelder

include pidFilter handling - only matches the complete pid. Issues a warning in the Metacat logs when pidFilter cannot be applied but allows the call to getLogs() to return as though there was no pidFilter given.
https://redmine.dataone.org/issues/2798

7162 05/02/2012 08:58 AM ben leinfelder

handle authorization for delete() differently for CN vs MN.
On the CN, only the CN (or tbd admin user) can call it.
On the MN, both the CN (or admin user) and the same MN can call it.

7159 05/01/2012 02:48 PM ben leinfelder

add Session-less archive() method

7157 05/01/2012 11:14 AM ben leinfelder

only admin users can call MN/CN.delete(). This is limited to any CN and only the MN that is calling itself