Project

General

Profile

Statistics
| Revision:
  • svn:ignore: build
  • svn:mergeinfo: /branches/D1_0_6_2_BRANCH:6107-6121

# Date Author Comment
9355 10/01/2015 05:35 PM Jing Tao

Adjust code according the change on cn.updateSystemMetadata.

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.

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

Add the testArchive method.

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

In the archive method, add the lock.

9349 10/01/2015 10:39 AM ben leinfelder

check for auth before doing asynch call to MN dirtySysMeta implementation

9348 09/30/2015 05:03 PM Jing Tao

Adjusted the testSetAccessPolicy method.

9347 09/30/2015 05:01 PM Jing Tao

Only applies the setAccessPolicy method to objects whose authoritative mn is v1.

9346 09/30/2015 04:39 PM Jing Tao

Adjust the testReplicationPolicy method.

9345 09/30/2015 04:38 PM Jing Tao

Add a comment to specify that the setReplicationPolicy only applys to v1.

9344 09/30/2015 04:27 PM Jing Tao

Uncommented some code.

9343 09/30/2015 04:07 PM Jing Tao

The setReplicationPolicy method only apply to the pids whose authoritative member node has v2 MNStorage.

9342 09/30/2015 11:55 AM Jing Tao

Add the code to check if the serialVersion object is null before it is saved to the db.

9341 09/29/2015 10:14 AM ben leinfelder

add missing quotation mark

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.

9339 09/28/2015 10:01 AM Jing Tao

Add a note for the updateSystemMetadata method.

9338 09/25/2015 05:17 PM Jing Tao

Add a test to test the cn.updateSystemMetadata will ignore the serial version and replica list from the coming system metadata.

9337 09/25/2015 02:55 PM Jing Tao

CN.updateSystemMetadata will ignore the serial version and replica list in the comming system metadata from the mn.

9336 09/24/2015 05:21 PM Jing Tao

Change the test method for the updateSystemMetadata method.

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.

9334 09/24/2015 02:51 PM ben leinfelder

fix compilation error for previous change: include isPublic criteria when there is a public subject (which is always).

9333 09/24/2015 01:59 PM ben leinfelder

use request query string first when handling MN.query() method. https://redmine.dataone.org/issues/7384

9332 09/24/2015 01:35 PM ben leinfelder

fix xpath from CN changes for isPublic. https://redmine.dataone.org/issues/7374

9331 09/24/2015 01:18 PM ben leinfelder

include isPublic criteria when there is a public subject (which is always)

9330 09/24/2015 10:34 AM ben leinfelder

include hierarchical permissions when evaluating isPublic during indexing. https://redmine.dataone.org/issues/7374

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.

9327 09/21/2015 04:37 PM Jing Tao

Put a the systemMetadataChanged method into a queue, so it will not hold the block.

9326 09/16/2015 12:57 PM Chris Jones

Change updateReplicationMetadata() and setReplicationStatus() to no longer set the dateSysmetaModified date per our discussion on 9/16/15.

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

Add more debug statement for the updateSystemMetadata method.

9324 09/15/2015 04:16 PM Jing Tao

In the getLog method, if the event is null, we will set it unknown.

9323 09/15/2015 03:51 PM Jing Tao

If the event string is null, we will skip this log in the getLog method.

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.

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.

9319 09/09/2015 12:40 PM ben leinfelder

rollback: set session.subject so libclient can look up certificate. Seems like the default behavior may have changed?

9318 09/09/2015 12:01 PM ben leinfelder

set session.subject so libclient can look up certificate. Seems like the default behavior may have changed?

9317 09/08/2015 03:22 PM Jing Tao

use the TypeFactory to convert the Log and ObjectFormatList objects from the v2 to v1.

9316 09/04/2015 03:13 PM Jing Tao

Add the test case to test the setting of same status twice wouldn't increase the system metadata version.

9315 09/04/2015 03:05 PM Jing Tao

In the setReplicaStatus method, if the coming status is the same one of the existing one, the system metadata will not be updated.

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

Fixed some incorrect exceptions in the getReplica method.

9313 08/28/2015 04:04 PM Jing Tao

Increase the serial version before we call cn.updateSystemMetadata method.

9312 08/28/2015 03:57 PM Jing Tao

Use a cn session to registerSystemmetadata.

9311 08/28/2015 02:29 PM Jing Tao

Removed two intergration test cases.

9310 08/28/2015 11:02 AM Jing Tao

Use TypeFactory to convert types.

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.

9308 08/26/2015 04:18 PM Jing Tao

Fixed a bug that when the count is 0, the total is incorrect in the querySystemMetadata method.

9307 08/25/2015 04:44 PM Jing Tao

Fixed a bug the total was not correct in the querySystemMetadata method.

9306 08/25/2015 03:26 PM Jing Tao

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

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

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

9304 08/25/2015 02:50 PM Jing Tao

Use the TypeFactory to replace the TypeMarshaller according to the change in the d1_common_java.

9303 08/20/2015 03:30 PM Jing Tao

Add the "forward" value for the "dispatcher" in the filter mapping. So the proxy (using forward) and direct request will use the same filter.

9302 08/19/2015 02:30 PM Jing Tao

Clone a system metadata object in order to pass a test - updateSystemMetadata.

9301 08/19/2015 11:41 AM Jing Tao

Use the key word "packages" to replace the "package".

9300 08/17/2015 04:52 PM Jing Tao

Decode the string of the uri after we break the uri into parts base on the "/".

9299 08/17/2015 04:25 PM Jing Tao

Decode the string of the uri after we break the uri into parts base on the "/".

9298 08/17/2015 03:40 PM Jing Tao

Decode the string of the uri after we break the uri into parts base on the "/".

9297 08/17/2015 02:52 PM Jing Tao

Decode the string of the uri after we break the uri into parts base on the "/".

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

The mn-demo-6 is a v2 member node.

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

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

9294 08/14/2015 04:04 PM Jing Tao

When the cn.notifyReplicaNodes method, if the target MN source code is a v2 mn, we will use v2 api; if it is a v1 node, we will use v1 api.

9293 08/12/2015 05:14 PM Jing Tao

Add a test case to test against a v1 cn.

9292 08/12/2015 04:28 PM Jing Tao

A test class is used to test the D1NodeVersionChecker class.

9291 08/12/2015 04:27 PM Jing Tao

A new class is used to get the version of service for a given node.

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

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

9289 08/10/2015 04:56 PM Jing Tao

Change the format id to be "application/bagit" 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.

9286 08/06/2015 03:11 PM Jing Tao

Increased the serial version number before updating the system metadata.

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

Fixed a bug to increase the serial version

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.

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.

9282 08/06/2015 12:04 PM Jing Tao

Increased the serial version during the test.

9281 08/06/2015 11:05 AM Jing Tao

Increase serial version during the test of updateSystemMetadata method.

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

Fixed a possible null exception in the updateSystemmetadata method.

9279 08/05/2015 04:22 PM Jing Tao

Restore the commented out tests.

9278 08/05/2015 04:20 PM Jing Tao

Add more test to test the code to create branch obsolete chain.

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.

9276 08/04/2015 03:54 PM Jing Tao

Add a test method to test the update of the obsoletes and obsoletedBy fields.

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.

9273 07/30/2015 05:33 PM Jing Tao

Add the code to test a MN to call setReplicationStatus successfully.

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

9270 07/29/2015 02:53 PM ben leinfelder

For sample Apache config, disable SSLv2 and SSLv3 in favor of TLS. https://projects.ecoinformatics.org/ecoinfo/issues/6827

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

9267 07/28/2015 04:22 PM Jing Tao

Add the code to test that non-cn session can't call some methods like registerSystemMetadata, updateSystemMetadata and et al.

9266 07/28/2015 03:31 PM Jing Tao

Use the getCNSession to replace the getTestSession which was a actual getCNSession.

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()

9264 07/27/2015 04:21 PM Jing Tao

Add the test to test new rules: cn and other client calling the method on the authoritative node can call the mn.update.

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.

9262 07/24/2015 04:58 PM Jing Tao

Excluded a non-test class in the test target.

9261 07/24/2015 02:46 PM Jing Tao

Add some thread sleeping time to make checking wait the process.

9260 07/24/2015 11:06 AM Jing Tao

Deleted a unnecessary test class.

9259 07/23/2015 05:14 PM Jing Tao

Make more cap for the testing.

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.