Fixed a possible null pointer exception bug. https://redmine.dataone.org/issues/7280
Add the code to test that non-cn session can't call some methods like registerSystemMetadata, updateSystemMetadata and et al.
Use the getCNSession to replace the getTestSession which was a actual getCNSession.
Only CNs can call those methods:CNCore.registerSystemMetadata()CNCore,updateSystemMetadata()CNReplication.setReplicationStatus()CNReplication.updateReplicationMetadata()CNReplication.deleteReplicationMetadata()
Add the test to test new rules: cn and other client calling the method on the authoritative node can call the mn.update.
On mn.update and mn.updateSystemMetadata, those clients are allowed:1. CNs.2. Clients with appropriate permission calling the method on the authoritative nodes.
Excluded a non-test class in the test target.
Add some thread sleeping time to make checking wait the process.
Deleted a unnecessary test class.
Make more cap for the testing.
When compare the dateUploaded, now we use sysmetadata.getDateUploaded().getTime(). It used systemmetadata.getDateUploaded() (Date objects) to compare.
Add code to catch the BaseException in the updateSystemMetadata method.
Add the code to handle if the cn is null.
Add a new version of this document from the svn trunk. The changes are all documentation.
Add v2 to the service.version list.
Handle multiple versions (v1 and v2) of a service in getCapacity method.
Insert a document with different authoritative node id. So we can test querySystemMetadata by more cases.
Add a junit test to test the querySystemMetadata method.
Use MetacatUI 1.7.1 tag in Metacat build
Use the NodeReference object to replace the replicaStatus to restrict the listObjects method.
[re]register DOI when system metadata is updated (typically access policy). https://projects.ecoinformatics.org/ecoinfo/issues/6796
Change the signature of listObject method - remove replicaStatus and add nodeId.
Add the code to call cn.synchroinize at the method of updateSystemMetadata.
Throw an exception if the request doesn't specify the name of the theme in the view method.
use objectFormat.extension in cases where we need to construct a filename for download. https://redmine.dataone.org/issues/3312
Add the code to insert entries in xml_catalog for the iso119139 objects.
Add a junit test class to test the insert of iso119139 object.
Add the sql command to insert schemas for iso119139.
Add the schemas for ISO-119139/isotc211.object.
use v1 and v2 xsl as appropriate for rendering d1 types (object format list, mostly)
Add an iso text file.
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
correct logout method (old change still in workspace)
Add a junit test case to test the write/read of new fields in the system metadata.
Add the test suite.
Fixed a bug that two columns were missing in the sql command.
Add the code to read/write the new system metadata fields - file name, media type and media type properties into the db tables.
Add code to update smmediatypeproperties table.
add logout implementation - calls server and clears cookie jar.
Add the code to create smMediaTypeProperties table.
Add the code to create a new table smMediaTypeProperties.
Change the name of the foreign key on the smMediaTypeProperties.
Add a new table smMediaTypeProperties to store the properties associated with a media type.
Add a new version of the schema.
Throw an exception if the saving system metadata fails.
Add the code to roll back the saved system metadata if the object can't be saved.
Add the media_type and file_name columns.
Add two columns media_type and file_name.
Index science metadata fields for the Dublin Core Extended metadata format. - Use d1_cn_index_processor 1.4.5 in metacat-index and update beans with new dcx subprocessor and xsi namespace
Add the code to add dataone schema v2 in the xml_catalog table.
Add the code to add dataone schema v2 in the xml_catalog table.Fixed the bug the new column should be series_id rather than guid.
Add the data schema from dataone svn trunk. It maybe needs to be updated in future.
Add a hash of a new index schema.
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.
Uncomment the code to copy the log4j.properties file to web-inf.
refs: #7092. found another unclosed inputStream, this time in ReplicationService.handleForceReplicationDataFileRequest(...).
fixes #7092: added finally clause to ReplicationHandler.update method to unconditionally close the inputStreams it keeps in a Vector. Needs testing.
Use the wild card in the class path. So it will not be pain if the jar files were changed.
Add the code to test scenario that a user tries to update an archived object.
Add the code to check if the client is trying to update an archived object. If it is, reject it.
Move the dataset metadata label for metacatui EML
Mark the entity metadata sections in metacatui EML transformations
Use the ecogrid 1.2.3 tag to replace the branch.
Fixed an null pointer issue in this class.
Changed the FGDC MetacatUI theme translation so that it displays nicely in MetacatUI and works correctly
comment the statement related to the removed file lib/oa4mp_client.xml.
Add a new method -updateSystemMetadata. It only can be called by CNs.
Add more scenario for check isAuthorized.
Refactory the authorize methods on D1NodeService.Add the check for whom can call mn.updatesystemMetadata.
Committed the change which Andreit did. 1. Add the code for synchronize(not implemented)2. Add the code for addForm.
Make target and source code to be compatiable to java 1.7 rather than 1.6.
Get the node id from the metacat.properties instead of the hard coded one.
Modified the dataone.nodeid from blank to urn:node:METACAT_TEST. Now the mn.updateSystemMetadata only allows be called on the authoritative node of a pid. In order to make junit test work, we need to have a value there.
Remove the obsoleted test class.
Removed the obsoleted test class.
remove portal servlet and configuration - no need for this if we are supporting auth tokens from authentication service.
defer to D1 PortalCertificateManager to pull authentication credentials from the request before defering to old Metacat cookie session
Now for the untrusted certificate, the client throws an exception rather than returning null.
Add a initial test.
Add a test in it. Otherwise it failed and said there is not tests found.
Add the code to check the authorization of the client which is reindexing a pid.
Created the updateSystemMetadata method.
Add the code to check if the current node is the authoritative node for the the given pid.
Add the check of permission to update the system metadata.
include 2.4.3 release notes from branch
add whoami endpoint to make debugging authn/authz easier as we use additional mechanisms for proving identity.
include 2.4.3 upgrade scripts in the trunk (merged from branch)
Change the test case base on the change on checking sid of the create method.
Remove the code to check sid on create and registerSystemMetadata.
remove d1_annotator servlet from web xml - not used anymore
Fixed a bug that put the detail code in a wrong position.
Add the junit test for testing the updateSystemMetadata method.
Add the code to check if a user tries to modify an immutable field on system metadata.
If an Event object is null in the v1 log entry, we won't add it to the log.