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/datastreams/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
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to