deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lalancette (JIRA)" <>
Subject [jira] [Created] (DTACLOUD-34) Driver selection does not work when using WEBrick server
Date Mon, 02 May 2011 14:27:03 GMT
Driver selection does not work when using WEBrick server

                 Key: DTACLOUD-34
             Project: DeltaCloud
          Issue Type: Bug
          Components: Server
         Environment: Fedora 14, deltacloud git-svn-id:

            Reporter: Chris Lalancette
            Assignee: David Lutterkort

One of the new features of deltacloud 0.3.0 is the ability to switch backend drivers on a
per-request basis.  One of the ways to do this is to create a URL like: http://localhost:3001/api;driver=mock.
 When using the thin webserver, this invocation works just fine, and you get the output from
the mock driver.  However, when using the WEBrick server, this does not work and you get an
error page that says "Sinatra doesn't know this ditty" (this generally means a 404).  The
relevant part of the deltacloudd log looks like: - - [29/Apr/2011 09:04:03] "GET http://localhost:3001/api?api[driver]=mock HTTP/1.1"
404 433 0.0124

That GET request is actually wrong; it should be something like "GET /api?api[driver]=mock",
not the full URL.  This observation led me to a patch (which I will attach), which seems to
improve the situation.  However, it doesn't completely solve the problem, as even with this
patch applied I still cannot make driver selection work.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message