Kevin Monceaux wrote:
> On Fri, 23 Jan 2009, Shawn Walker wrote:
> 
>>> Now, why the depot's response is "400 Bad Request" along with an HTML page
>>> that includes a body with
>>>
>>>     <h2>400 Bad request</h2>
>>>     <p>Illegal FMRI '[email protected]': Bad Version: 9.06</p>
>>>     <pre id="traceback"></pre>
>>>
>>> I'm not sure.  Perhaps we agreed that would be useful, but it's certainly
>>> not clear to me now that it is.  I guess if CherryPy allowed us to set the
>>> response string the way the original server did, we would have seen the
>>> problem much earlier.  Though the HTML body still doesn't seem all that
>>> useful.
>> Whenever you "raise cherrypy.HTTPError" it always outputs an HTTP body.  I'm 
>> in the process of attempting to make this not suck for users of pkgsend.
> 
> When I entered the pkgsend command the only message I received was:
> 
> pkgsend: open failed (status 400)
> 
> If I had seen the above HTML output, it would have been much more helpful.

The problem is that we switched web Frameworks sometime ago, and I when 
I did the work for it, I didn't realise that other code was depending on 
the status line from the server for messages and that cherrypy wouldn't 
set the status line.

So, I'm in the midst of some work on the publishing API and that's one 
of the things I'm trying to fix while I work on it.

The publishing process, in general, needs significant improvements; we 
plan on getting there...

Cheers,
-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to