Relative URI and APP Test Site

November 30, 2007 – 12:45 am

I believe I found a possible bug in the APP test site at http://bitworking.org/projects/apptestsite

I was trying to PUT on the Edit-Media URI that returned from the entry, but all I got was Not Found errors. After having a little conversation with takemaru san, it turned out that the base URI of the Edit-Media was not the URI of the entry but the collection’s URI.

If you GET
http://bitworking.org/projects/apptestsite/app.cgi/service/media/416/

The server returns an entry with following Edit-Media link.
<link href=”416/;media” rel=”edit-media”/>

So, combining the two,
http://bitworking.org/projects/apptestsite/app.cgi/service/media/416/ + 416/;media
you get,
http://bitworking.org/projects/apptestsite/app.cgi/service/media/416/416/;media

Dah, that is Not Found on the server. The correct URI is http://bitworking.org/projects/apptestsite/app.cgi/service/media/416/;media

I just sent a mail to the developer, so I hope that will be fixed soon.

[update] Today, I confirmed this has been fixed. (2008/02/12).

But I found another bug.. //feed/entry/link@rel=”edit-media” should not be in a normal entry.

Post a Comment