Project

General

Profile

Statistics
| Revision:

# Date Author Comment
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.

9272 07/30/2015 05:32 PM Jing Tao

The method of setReplicationstatus can be called by CNs and MNs.

9271 07/30/2015 11:08 AM ben leinfelder

merge from V2 impl: check for optional "failure" param instead of throwing exception when it is missing (often is). https://redmine.dataone.org/issues/7283

9269 07/29/2015 02:42 PM ben leinfelder

check for optional "failure" param instead of throwing exception when it is missing (often is). https://redmine.dataone.org/issues/7283

9268 07/29/2015 02:13 PM Jing Tao

Fixed a possible null pointer exception bug. https://redmine.dataone.org/issues/7280

9265 07/27/2015 05:15 PM Jing Tao

Only CNs can call those methods:
CNCore.registerSystemMetadata()
CNCore,updateSystemMetadata()
CNReplication.setReplicationStatus()
CNReplication.updateReplicationMetadata()
CNReplication.deleteReplicationMetadata()

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.

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.

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

9247 07/14/2015 04:56 PM Jing Tao

Change the signature of listObject method - remove replicaStatus and add nodeId.

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

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

9245 07/13/2015 04:35 PM Jing Tao

Throw an exception if the request doesn't specify the name of the theme in the view method.

9244 07/13/2015 03:28 PM ben leinfelder

use objectFormat.extension in cases where we need to construct a filename for download. https://redmine.dataone.org/issues/3312

9237 07/09/2015 02:09 PM ben leinfelder

use v1 and v2 xsl as appropriate for rendering d1 types (object format list, mostly)

9235 07/08/2015 05:03 PM ben leinfelder

use MediaType from v2.SystemMetadata and v2.ObjectFormat to better determine mime-type, charset and filename for the get() method. https://redmine.dataone.org/issues/3309

9231 07/08/2015 11:53 AM Jing Tao

Fixed a bug that two columns were missing in the sql command.

9230 07/07/2015 04:35 PM Jing Tao

Add the code to read/write the new system metadata fields - file name, media type and media type properties into the db tables.

9229 07/06/2015 04:22 PM Jing Tao

Add code to update smmediatypeproperties table.

9220 05/28/2015 03:11 PM Jing Tao

Throw an exception if the saving system metadata fails.

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.

9206 05/11/2015 10:43 PM Jing Tao

Don't use ssClient as a class field. Now it is a local variable. This fixed an issue that two statements using the client caused the exception - java.net.SocketTimeoutException: Read timed out.

9204 05/11/2015 02:09 PM rnahf

refs: #7092. found another unclosed inputStream, this time in ReplicationService.handleForceReplicationDataFileRequest(...).

9203 05/11/2015 12:28 PM rnahf

fixes #7092: added finally clause to ReplicationHandler.update method to unconditionally close the inputStreams it keeps in a Vector. Needs testing.

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.

9192 05/01/2015 04:56 PM Jing Tao

Add a new method -updateSystemMetadata. It only can be called by CNs.

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

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

9189 05/01/2015 02:59 PM Jing Tao

Committed the change which Andreit did.
1. Add the code for synchronize(not implemented)
2. Add the code for addForm.

9183 04/30/2015 01:28 PM ben leinfelder

remove portal servlet and configuration - no need for this if we are supporting auth tokens from authentication service.

9182 04/30/2015 01:22 PM ben leinfelder

defer to D1 PortalCertificateManager to pull authentication credentials from the request before defering to old Metacat cookie session

9178 04/29/2015 04:41 PM Jing Tao

Add the code to check the authorization of the client which is reindexing a pid.

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.

9173 04/14/2015 04:40 PM ben leinfelder

add whoami endpoint to make debugging authn/authz easier as we use additional mechanisms for proving identity.

9170 04/14/2015 02:43 PM Jing Tao

Remove the code to check sid on create and registerSystemMetadata.

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.

9165 04/10/2015 04:19 PM Jing Tao

If an Event object is null in the v1 log entry, we won't add it to the log.

9164 04/10/2015 10:21 AM ben leinfelder

use singleton for getting JWT token - refactor in d1_portal project

9161 04/03/2015 10:38 AM ben leinfelder

use secure context url for loading XSLTs in db transform

9156 03/24/2015 01:14 PM rnahf

ReplicationServices.getUrlStream(url) callers were not closing the inputstream properly, as was revealed when switching to libclient v2 (a pooling connection manager in HttpClient) and encountering reasource leaks.

9153 03/18/2015 02:26 PM ben leinfelder

remove classes annotator classes that have moved to a different project under dataone's github.

9152 03/18/2015 12:09 PM rnahf

bullet-proofed exception handling in ReplicationService.getURLStream, to make sure client communication exceptions are handled and logged.

9151 03/17/2015 04:57 PM rnahf

fixed getSSLClient method.

9150 03/17/2015 02:47 PM rnahf

fixed class name typo.

9149 03/17/2015 02:15 PM rnahf

fixed private getSSLClient method for HttpClient v4.3 compatibility. Now also caching the RestClient for reuse to save overhead.

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.

9143 03/06/2015 05:29 PM Jing Tao

Transform the ObjectFormat from v2 to v1 in getFormat method.

9137 03/05/2015 02:18 PM Jing Tao

Add a read timeout for the connection. See bug https://projects.ecoinformatics.org/ecoinfo/issues/6684:wq

9131 02/19/2015 02:54 PM Jing Tao

Convert the v2 system metadata object to v1 in the getSystemMetadata method.

9128 02/18/2015 05:22 PM Jing Tao

Use the log to the replace system.out.print.

9125 02/17/2015 04:01 PM Jing Tao

The setObsoletedBy only handles PID.

9124 02/17/2015 04:00 PM Jing Tao

The method setObsoletedBy only hanldes SID.

9123 02/17/2015 02:41 PM Jing Tao

Added the code to handle put method in meta url. See bug https://projects.ecoinformatics.org/ecoinfo/issues/6666

9122 02/17/2015 02:40 PM Jing Tao

Add the code to handle the PUT method for meta url. See https://projects.ecoinformatics.org/ecoinfo/issues/6666.

9119 02/13/2015 04:37 PM Jing Tao

Add the code to get the head version.

9116 02/12/2015 03:32 PM Jing Tao

Add the timestamp for the printing out the start and end of hazelcast synchronization.

9111 02/09/2015 05:38 PM Jing Tao

Call the method lock.lock() immediately after getting the lock. Otherwise, if an exception happened between the two calls (in another word, lock.lock() was called), lock.unlock() can cause an issue:
Current thread is not owner of lock!
See https://redmine.dataone.org/issues/6836.

9107 02/06/2015 04:46 PM Jing Tao

Add a cap to only write 512 characters of the user-agent to db.

9099 02/06/2015 12:10 PM Matt Jones

Modify v1 and v2 calls to MultipartRequestResolver to use MAX_UPLOAD_SIZE from configuration.

9098 02/06/2015 11:55 AM Jing Tao

The constrcutor of EventLogData missed the user-agent field. So the user-agent wasn't recorded.
The bug was fixed.

9096 02/06/2015 09:21 AM ben leinfelder

organize imports. move exception-throwing method call into try block.

9095 02/06/2015 09:15 AM ben leinfelder

use HttpMultipartRestClient since the DefaultHttpMultipartRestClient was removed from d1_libclient_java

9094 02/06/2015 01:16 AM Matt Jones

Updated D1ResourceHandler to not hardcode a file size limit. This will allow
large, multi-gigabyte files to be uploaded, but still needs testing. The limit
is now drawn from the metacat.properties file. An alternative would be to inspect
the Content-Length header of the request and set the max to a value greater than the...

9093 02/04/2015 04:44 PM Jing Tao

The setReplicationStatus method only supports sid and the setRightsHolder method supports both PID and SID.

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.

9091 02/04/2015 02:28 PM Jing Tao

Fixed a bug that it should use getReplica rather than get method.

9087 02/03/2015 02:10 PM Jing Tao

The CN.setReplicationPolicy method now only support PIDs. Refer to https://redmine.dataone.org/issues/6734.

9083 02/02/2015 09:50 AM Jing Tao

Went through the v2 ObjectFormatList and convert every v2 ObjectFormat to v1 ObjectFormat and put them into a v1 objectFormatList.

9078 01/27/2015 04:30 PM Jing Tao

Add the log messages to indicate the hazelcast synchronization starting and ending.

9077 01/26/2015 04:52 PM Jing Tao

Add the code to handle sid in the publish method.

9076 01/26/2015 02:42 PM Jing Tao

Add the code to exclude the sid in the view and getPackage.

9074 01/22/2015 05:50 PM Jing Tao

Add a converter to convert the V2 Log object to the V1 Log object.

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.

9070 01/16/2015 12:29 PM Jing Tao

Add the code to check if the pid is an SID in the registerSystemMetadata method.

9069 01/15/2015 05:36 PM Jing Tao

Add code to check if the sid equals pid for the method checkSidInRegisterSystemMetadata.

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.

9067 01/15/2015 04:56 PM Jing Tao

Add the code to check if a sid is legitimate in the method create and registerSystemMetadata.

9066 01/14/2015 05:33 PM Jing Tao

The the code to handle sids on the v2 api - setReplicationPolicy, setReplicationStatus, setAccessPolicy and setObsoletedBy.

9065 01/14/2015 04:57 PM Jing Tao

Add the code to handle if a identifier is a sid in setAccessPolicy, setReplicationPolicy, setObsoletedBy and setRreplicationStatus.

9064 01/07/2015 04:52 PM Jing Tao

Comment out a print of an error message. It will show up for every public request.

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

Add the code to handle SID in the getLogRecords method.

9062 01/07/2015 04:03 PM Jing Tao

In the getLogRecords method, the pidFilter is checked if it exists.

9061 01/07/2015 04:02 PM Jing Tao

In the getLogRecords method, the pidFilter is checked if it exists.

9059 01/07/2015 12:01 PM Jing Tao

Fixed a bug that the getLogRecords can't handle the case that the event is null.

9057 01/07/2015 12:00 PM Jing Tao

Fixed a bug that the getLogRecords can't handle the case that the event is null.

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.