I'm getting the following error javax.ws.rs.WebApplicationException: fedora.server.errors.GeneralException: Inline XML datastreams must be modified by value, not by reference. at fedora.server.rest.BaseRestResource.handleException(BaseRestResource.java:93) at fedora.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:417) at fedora.server.rest.DatastreamResource.modifyDatastream(DatastreamResource.java:268)
when I'm attempting to use the modifyDatastream method in the REST API. It is the first time I'm trying to use one of the REST API methods that use the PUT protocol, so I'm probably doing something wrong. I just cannot figure out what the relation is of this error to my method call. I tried to look in the java source but couldn't find any fedora/server/rest directory. This is the URL I'm using http://localhost:8080/fedora/objects/toi:1/datastreams/RELS-EXT?dsLabel=RDF+relations&versionable=false And this is the XML I'm providing <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rel="info:fedora/fedora-system:def/relations-external#"> <rdf:Description rdf:about="info:fedora/toi:1"> <fedora-model:hasModel rdf:resource="info:fedora/toi:Folder"/> <rel:hasSubset rdf:resource="info:fedora/toi:2"/> </rdf:Description> </rdf:RDF> Thanks, -Rudi ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
