Project

General

Profile

« Previous | Next » 

Revision 9043

Added by Jing Tao almost 10 years ago

Check if the identifier is a sid for the v1 update.

View differences:

src/edu/ucsb/nceas/metacat/dataone/v1/MNodeService.java
216 216
			InsufficientResources, InvalidRequest, InvalidSystemMetadata,
217 217
			InvalidToken, NotAuthorized, NotImplemented, ServiceFailure,
218 218
			UnsupportedType, NotFound {
219
	    //check if the pid exists and not a sid
220
	    String serviceFailure = "1310";
221
        String notFound = "1280";
222
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The object specified by "+pid.getValue()+" couldn't be identified if it exists",  notFound, 
223
                "The object specified by "+pid.getValue()+" does not exist at this node.");
219 224
		//convert sysmeta to newer version
220 225
		org.dataone.service.types.v2.SystemMetadata v2Sysmeta = null;
221 226
		try {

Also available in: Unified diff