Hello, I experienced a weird bug today, while implementing an AtomPub server. I pasted all the story and bug details here : http://p.caboo.se/110125 It maybe be related to http://code.whytheluckystiff.net/camping/ticket/142 ... I am using - mongrel 1.0.1 - camping 1.5 Cheers, -- Simon Rozet <simon at rozet.name>
2007/10/23, Simon Rozet <simon at rozet.name>:> Hello, > > I experienced a weird bug today, while implementing an AtomPub server. > I pasted all the story and bug details here : http://p.caboo.se/110125 > > It maybe be related to http://code.whytheluckystiff.net/camping/ticket/142 ... > > I am using > - mongrel 1.0.1 > - camping 1.5Hi Simon, can you try to reproduce your problem with the svn code ? -- Cheers, zimbatm
>> I experienced a weird bug today, while implementing an AtomPub >> server. >> I pasted all the story and bug details here : http://p.caboo.se/ >> 110125If I understand correctly you''re posting XML with Content-Type: application/x-www-form-urlencoded? That''s not a very good idea because it triggers the form decoding code in Camping. Manfred
On Tue, Oct 23, 2007 at 07:54:15PM +0200, Simon Rozet wrote:> Hello, > > I experienced a weird bug today, while implementing an AtomPub server. > I pasted all the story and bug details here : http://p.caboo.se/110125 > > It maybe be related to http://code.whytheluckystiff.net/camping/ticket/142 ...Hi Simon. Camping 1.5 tries to parse everything that''s POSTed as application/x-www-form-urlencoded. The SVN version is fixed, see http://code.whytheluckystiff.net/camping/changeset/188 . (Once you''ve upgraded you''ll need to POST your Atom Entry with the correct mimetype, too :) ) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/camping-list/attachments/20071024/8406cb50/attachment-0001.bin
On 10/24/07, Brendan Taylor <whateley at gmail.com> wrote:> On Tue, Oct 23, 2007 at 07:54:15PM +0200, Simon Rozet wrote: > > Hello, > > > > I experienced a weird bug today, while implementing an AtomPub server. > > I pasted all the story and bug details here : http://p.caboo.se/110125 > > > > It maybe be related to http://code.whytheluckystiff.net/camping/ticket/142 ... > > Hi Simon. Camping 1.5 tries to parse everything that''s POSTed as > application/x-www-form-urlencoded. The SVN version is fixed, see > http://code.whytheluckystiff.net/camping/changeset/188 .OK! I just upgraded to the SVN trunk and it works, thanks :-)> (Once you''ve upgraded you''ll need to POST your Atom Entry with the > correct mimetype, too :) )Sure. I don''t know why I was sending it at application/x-form-www-form-urlencoded instead of application/atom+xml;type=entry -- Simon Rozet <simon at rozet.name>