Hi Stuart I believe Deborah's question on what version you were using was because there was a bug related to this that has now been fixed.
I'm able to use a PUT to upload a local file and update the datastream using the XML from your email using curl: curl -u fedoraAdmin:fedoraAdmin -T dc.xml -v http://localhost:8080/fedora/objects/york:1/datastreams/DC If you'd like to attach a sample dc.xml file, just to make sure there isn't some kind of hidden issue within the file, I can give it a try using that. Otherwise you might want to give it a try with curl also, just to verify that there isn't some kind of problem with your environment or the version of Fedora. (I have also tried a GET on the same api call - and it doesn't generate a new version) My guess is it's either something to do with how you're excecuting the HTTP request, or some problem that has now been fixed. Regards Steve > -----Original Message----- > From: Stuart Chalk [mailto:[email protected]] > Sent: 17 May 2010 13:36 > To: [email protected] > Subject: [Fedora-commons-users] modifyDatastream and DC > > > I am trying to use the modifyDatastream method of the REST > API to update the DC datastream of a fedora object. > > I can successfully modify the metadata of the stream e.g. > label, formaturi etc, even using the GET method rather than PUT. > I cannot however seem to get the content to be updated with > either GET or PUT. > > I know there is a comment on the REST API page about setting > X-HTTP-Method-Override to allow a POST request to be submitted as PUT. > I am trying to work out how to config that in the framework I > am using (CakePHP). Besides that though, are there any other > config issues with > modifying XML stream content or DC stream content specfically > that I should know about? > > Stuart Chalk, Ph.D. > Associate Professor of Chemistry > Department of Chemistry, University of North Florida > 1 UNF Drive, Jacksonville FL 32224 > P: 904-620-1938 > F: 904-620-3535 > E: [email protected] > W: http://www.unf.edu/coas/chemistry/ > -------------------------------------------------------------- > ---------------- > > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
