Parameters retrieved incorrectly in CNResourceHandler
in edu.ucsb.nceas.metacat.restservice.CNResourceHandler there are two ways in which serialVersion is accessed from HTTP PUT operations. In setReplicationPolicy and updateReplicationMetadata the serialVersion is accessed by the call:
serialVersionStr = multipartparams.get("serialVersion").get(0);
This manner appears to work with the way that libClient is encoding the request body.
In the following methods- owner, setAccess, setObsoletedBy, deleteReplica- the serialVersion is accessed by the call:
serialVersionStr = params.get("serialVersion");
This manner does not work with the way the libClient is encoding the request body.
I also noted that other multipart params are accessed incorrectly.