W3C home > Mailing lists > Public > public-annotea-dev@w3.org > April to June 2004

Re: Update problem with iggy

From: Eric Prud'hommeaux <eric@w3.org>
Date: Fri, 28 May 2004 09:42:11 -0400
To: Marja-Riitta Koivunen <marja@annotea.org>
Cc: public-annotea-dev@w3.org
Message-ID: <20040528134211.GC8075@w3.org>
On Thu, May 20, 2004 at 02:48:51PM -0400, Marja-Riitta Koivunen wrote:
> Discussed this with Eric two weeks ago.
> Promised to send it again here so it is easier to find:
> Update seems to have the following problem:
> Each change to an annotation creates a new annotation instead of updating 
> the old one e.g.
> 1) this is the original annotation made with Amaya (body contains "test 
> iggy": http://iggy.w3.org/annotations/attribution/1083803351.895598
> 2) and this is the same annotation except that "change" was added to the 
> existing body text 
> http://iggy.w3.org/annotations/attribution/1083803374.199805
> session ids:
>  <!-- session-id 1083803574.648029" -->
> and <!-- session-id 1083803787.303193" -->
> The problem is that we should only see the latter annotation but at the 
> moment we retrieve both from the server.

I don't know what you are doing in amaya to create 1083803374.199805,
but amaya is not sending an update request (either replace_source or
PUT). Instead it is simply creating a new annotation:

POST /annotations

<?xml version="1.0" ?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<r:type r:resource="http://www.w3.org/2000/10/annotation-ns#Annotation" />
<r:type r:resource="http://www.w3.org/2000/10/annotationType#Comment" />
<a:annotates r:resource="http://www.w3.org/2001/Annotea/Overview.html" />
<d:title>Annotation of Annotea project</d:title>
<http:Body r:parseType="Literal">
  <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type"
    content="application/xhtml+xml; charset=UTF-8" />
    <title>Annotation of Annotea project</title>
  <p>test iggy</p>
  <p>change </p>

> Earlier Eric confirmed that Amaya uses PUT for the reply updates and POST 
> with replace source parameter for the annotation updates. Although we 
> should really use PUT in both cases they do work, so that should not be the 
> problem.
> And replies do the dublication too:
> Annotation:
> http://iggy.w3.org/annotations/attribution/1085078002.39180
> Orig Reply:
> http://iggy.w3.org/annotations/attribution/1085078054.579611
> Updated Reply:
> http://iggy.w3.org/annotations/attribution/1085078066.742406
> (Tested in Windows 2000 with Amaya 8.5)
> Marja
> Marja


office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +1.857.222.5741 (does not work in Asia)

Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Friday, 28 May 2004 09:42:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:42:12 UTC