Yes I have the TunnelService on but off for extensions. The FileClientHelper search for a file with file starting with the same baseName and having the same set of extensions : no surprise it finds test2.xml. I'll be off for the end of the week. I will test it as soon as possible and investigate a bit more on this. Thanks for the fast feedback ! Rémi
On Wed, Jul 2, 2008 at 6:09 PM, Thierry Boileau <[EMAIL PROTECTED]> wrote: > Hello Rémi, > > I'm not able to reproduce your problem with Restlet 1.1M4. I send you my > sample code. > It contains a directory and 2 restlet, one that creates/updates the > "test.xml" file, the other the "test2.xml" file. > Just hot http://localhost:8182/restletPut1 and > http://localhost:8182/restletPut2 to "invoke" them. > > Are you using some filter? such as TunnelFilter? > > best regards, > Thierry Boileau > > Hello, >> I have an issue with the implementation of PUT on files. >> Let say I have files in a directory : >> test.xml >> test2.xml >> If I make a PUT on test.xml it will modify test2.xml which is not >> exactilly what I would expect. >> I don't really catch what I don't understand reading from line 187 to line >> 219 in FileClientHelper. >> If it is not a bug what should I do ? >> >> I am using this line of code : >> Response resp = >> Application.getCurrent().getContext().getClientDispatcher().put(resourceUri,new >> DomRepresentation(MediaType.TEXT_XML,doc)); >> >> I am using Restlet 1.1M4. >> >> Thanks a lot, >> RÃ(c)mi >> >

