- From: Marja-Riitta Koivunen <marja@annotea.org>
- Date: Fri, 28 May 2004 10:17:37 -0400
- To: Eric Prud'hommeaux <eric@w3.org>
- Cc: public-annotea-dev@w3.org
Eric, could you also check the replies because last time we talked you said you could see the reply doing a PUT and that has the same problem. Marja At 09:42 AM 5/28/2004 -0400, Eric Prud'hommeaux wrote: >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#" >xmlns:a="http://www.w3.org/2000/10/annotation-ns#" >xmlns:t="http://www.w3.org/2001/03/thread#" >xmlns:http="http://www.w3.org/1999/xx/http#" >xmlns:d="http://purl.org/dc/elements/1.0/"> ><r:Description> ><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" /> ><a:context>http://www.w3.org/2001/Annotea/Overview.html#xpointer(string-range(id("Annotea2"),"",79,10))</a:context> ><d:title>Annotation of Annotea project</d:title> ><d:creator>marja</d:creator> ><a:created>2004-05-05T20:30:30-05:00</a:created> ><d:date>2004-05-05T20:31:02-05:00</d:date> ><a:body> ><r:Description> ><http:ContentType>application/xhtml+xml</http:ContentType> ><http:ContentLength>288</http:ContentLength> ><http:Body r:parseType="Literal"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" > content="application/xhtml+xml; charset=UTF-8" /> > <title>Annotation of Annotea project</title> > </head> > > <body> > <p>test iggy</p> > > <p>change </p> > </body> > </html> ></http:Body> ></r:Description> ></a:body> ></r:Description> ></r:RDF> > > > 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 > > > >-- >-eric > >office: +81.466.49.1170 W3C, Keio Research Institute at SFC, > Shonan Fujisawa Campus, Keio University, > 5322 Endo, Fujisawa, Kanagawa 252-8520 > JAPAN > +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA >cell: +1.857.222.5741 (does not work in Asia) > >(eric@w3.org) >Feel free to forward this message to any list for any purpose other than >email address distribution.
Received on Friday, 28 May 2004 10:16:32 UTC