Revision 6548
Added by Chris Jones about 13 years ago
src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java | ||
---|---|---|
532 | 532 |
|
533 | 533 |
String sn = multipartparams.get("sourceNode").get(0); |
534 | 534 |
logMetacat.debug("sourceNode: " + sn); |
535 |
NodeReference sourceNode = TypeMarshaller.unmarshalTypeFromStream(NodeReference.class, new ByteArrayInputStream(sn.getBytes("UTF-8")));
|
|
536 |
|
|
535 |
NodeReference sourceNode = new NodeReference();
|
|
536 |
sourceNode.setValue(sn); |
|
537 | 537 |
MNodeService.getInstance(request).replicate(session, sysmeta, sourceNode); |
538 | 538 |
|
539 | 539 |
response.setStatus(200); |
Also available in: Unified diff
The incoming source node param is just a string, not XML, so don't attempt to deserialize it. Rather, just make a new NodeReference object and set it's value to the value of the incoming param.