[Maypole] delete -> 404

From: Johan Lindstrom (johanl at DarSerMan.com)
Date: Sun Jan 23 2005 - 16:32:31 GMT


I downloaded Maypole 2.06 the other day and finished the installation of
the BeerDB. But I think I'm not quite finished, because I get a weird error.

I went with a MySQL database instead of SQLite in the example application,
but I have that working and I don't think it's related to the problem I have.

Most things work ok. I can add new breweries and beers etc (with some
problems, I may return to that; it seems related to that untaint thing
Jesse Sheidlower talked about).

I can list breweries. The URL is now
http://localhost/beerdb/brewery/list/

But when I click "delete" for a brewery (this really happens for all
tables), the url changes to
http://localhost/beerdb/brewery/delete/6
and the page says: q{Not Found
The requested URL /beerdb/brewery/delete/6 was not found on this server.}
and the Apache error log says:
[Sun Jan 23 17:13:58 2005] [error] [client 127.0.0.1] File does not exist:
C:/Dokument/Projekt/Dev/TestMaypole/apache/htdocs/beerdb, referer:
http://localhost/beerdb/brewery/list/
[Sun Jan 23 17:13:58 2005] [error] [client 127.0.0.1] File does not exist:
C:/Dokument/Projekt/Dev/TestMaypole/apache/htdocs/beerdb

I'm not very experienced with Apache, but it almost seems like Apache
doesn't allow BeerDB.pm to handle the request.

I have looked for the delete() method which is supposed to get invoked, and
I found it in Maypole/Model/CDBI.pm . An added warn() in that method
doesn't show up in the error log (maybe it doesn't work like that...)

Any idea what's going on here? Any thoughts on where I should start
looking/adding tracer bullets?

/J

PS.

Hmmm... I just looked in the access log as well, and for a list, then delete:
127.0.0.1 - - [23/Jan/2005:17:20:45 +0100] "GET /beerdb/brewery/list/ HTTP/1.1"
200 6260
127.0.0.1 - - [23/Jan/2005:17:20:49 +0100] "POST /beerdb/brewery/delete/5
HTTP/1
.1" 404 330
127.0.0.1 - - [23/Jan/2005:17:20:50 +0100] "HEAD /beerdb/brewery/delete/5
HTTP/1
.1" 404 -

Ok, that last GET request is strange... This is in Firefox 1.0. When I
switched to IE, the last HEAD request disappears. Probably unrelated. But
strange...
-------- ------ ---- --- -- -- -- - - - - -
Johan Lindström Sourcerer @ Boss Casinos johanl AT DarSerMan.com

Latest bookmark: "TCP Connection Passing"
http://tcpcp.sourceforge.net/
dmoz: /Computers/Programming/Languages/JavaScript/ 12

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT