chooper / restful-sqlite

Automatically exported from code.google.com/p/restful-sqlite
0 stars 0 forks source link

GET /nonexistent-db/ creates new database #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. `curl http://host:port/random-db-that-does-not-exist/`

What is the expected output? What do you see instead?

The expected output is a 404. The server returns an empty list ('[]') and
has the side effect of creating the database. GET requests should not have
side-effects, ie: this behavior is not REST-compliant (lulz)

Original issue reported on code.google.com by hoop...@gmail.com on 22 Dec 2009 at 7:20

GoogleCodeExporter commented 9 years ago
Fixed in rev b6300bfbb6, now returns 404

Original comment by hoop...@gmail.com on 27 Dec 2009 at 12:25