Thank you very much Steve for you quick reply and solution. I did the changes and it works fine now.
Kind regards, --- Ludovic On Thu, Oct 28, 2010 at 10:34 AM, Steve Bayliss <stephen.bayl...@acuityunlimited.net> wrote: > Hi Ludovic > > The URL query parameter should be asOfDateTime, not asOfVersionDate. > > It looks like the HTML response to /objects/{pid}/datastreams/{dsid}/history > is incorrect in that the URL it provides for the content link incorrectly > uses asOfVersionDate. > > This is a bug, I have raised https://jira.duraspace.org/browse/FCREPO-812 > for this. > > If you modify your URLs to use asOfDateTime instead of asOfVersionDate, they > should work correctly. > > Pending resolution of this bug, you can fix this issue locally by editing > the file $FEDORA_HOME/server/management/viewDatastreamHistory.xslt: search > for asOfVersionDate in this file and replace it with asOfDateTime, and the > "history" URL should then provide the correct links for the datastream > version content. > > Regards > Steve > > > >> -----Original Message----- >> From: Ludovic Deravet [mailto:ludovicdera...@gmail.com] >> Sent: 28 October 2010 08:09 >> To: fedora-commons-users@lists.sourceforge.net >> Subject: [fcrepo-user] Issue with history using the REST API >> >> >> Hello, >> >> I'm using Fedora 3.4.1 and I'm having an issue with the >> history REST API. >> >> To illustrate the problem, I have created a digital object that >> contains a datastream named DMD with a dummy value 'Test Data'. After >> that, I've added through the REST API two new content. When I use the >> FFlash admin interface (.../fedora/admin), I can see this: >> >> <foxml:datastream ID="DMD" STATE="A" CONTROL_GROUP="X" >> VERSIONABLE="true"> >> <foxml:datastreamVersion ID="DMD.0" LABEL="Business Metadata" >> CREATED="2010-10-27T15:46:34.774Z" MIMETYPE="text/xml" SIZE="22"> >> <foxml:xmlContent> >> <cmr>Test data</cmr> >> </foxml:xmlContent> >> </foxml:datastreamVersion> >> <foxml:datastreamVersion ID="DMD.1" LABEL="Business Metadata" >> CREATED="2010-10-27T15:46:34.834Z" MIMETYPE="text/xml" SIZE="53"> >> <foxml:xmlContent> >> <cellar> >> <name>content version 1</name> >> </cellar> >> </foxml:xmlContent> >> </foxml:datastreamVersion> >> <foxml:datastreamVersion ID="DMD.2" LABEL="Business Metadata" >> CREATED="2010-10-27T15:46:34.884Z" MIMETYPE="text/xml" SIZE="53"> >> <foxml:xmlContent> >> <cellar> >> <name>content version 2</name> >> </cellar> >> </foxml:xmlContent> >> </foxml:datastreamVersion> >> </foxml:datastream> >> >> When I call the REST API interface >> (fedora/objects/cellar:b6e27ba0-4329-47e3-94a6-b98f10cfbae5/da >> tastreams/DMD/history), >> I getting back the profile information of the 3 datastream version so >> that's fine. The problem comes when I try to get the content of a >> specific version by doing this: >> >> .../fedora/objects/cellar:b6e27ba0-4329-47e3-94a6-b98f10cfbae5 >> /datastreams/DMD/content?asOfVersionDate=2010-10-27T15:46:34.834Z >> .../fedora/objects/cellar:b6e27ba0-4329-47e3-94a6-b98f10cfbae5 >> /datastreams/DMD/content?asOfVersionDate=2010-10-27T15:46:34.774Z >> .../fedora/objects/cellar:b6e27ba0-4329-47e3-94a6-b98f10cfbae5 >> /datastreams/DMD/content?asOfVersionDate=2010-10-27T15:46:34.884Z >> >> When all this separate calls, I'm getting the value "content version >> 2". The problem is that I received the current content each time and >> not the content of the version. >> >> Am I doing something wrong here? >> >> Thanks in advance. >> >> -- >> Ludovic >> >> -------------------------------------------------------------- >> ---------------- >> Nokia and AT&T present the 2010 Calling All Innovators-North >> America contest >> Create new apps & games for the Nokia N8 for consumers in >> U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly >> $6M in marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish >> to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> _______________________________________________ >> Fedora-commons-users mailing list >> Fedora-commons-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users >> > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > -- Ludovic ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users