Project

General

Profile

Revision 6513

swap the parameters for update: existing pid should be first, and then newPid

View differences:

src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java
924 924
            // get the systemmetadata object
925 925
            SystemMetadata smd = TypeMarshaller.unmarshalTypeFromStream(SystemMetadata.class, sysmeta);
926 926

  
927
            Identifier rId = MNodeService.getInstance().update(session, newPid, object, obsoletedPid, smd);
927
            Identifier rId = MNodeService.getInstance().update(session, obsoletedPid, object, newPid, smd);
928 928
            TypeMarshaller.marshalTypeToOutputStream(rId, out);
929 929
        } else {
930 930
            throw new InvalidRequest("1000", "Operation must be create or update.");

Also available in: Unified diff