HTTP PUT on launchpadlibrarian.net for existing URL is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Unassigned |
Bug Description
Using HTTP PUT for an existing URL on launchpadlibrarian acts like GET!
This causes e.g. kwrite to think the file had been saved successfully, when using the KDE IO-HTTP-Slave.
Instead, an error should get returned, if PUT is not implement or denied.
See:
---------------
$ telnet launchpadlibrar
Trying 82.211.81.235...
Connected to launchpadlibrar
Escape character is '^]'.
PUT / HTTP/1.0
HTTP/1.1 200 OK
Date: Sat, 28 Jul 2007 23:31:22 GMT
Server: TwistedWeb/2.4.0
Content-length: 340
Content-type: text/html
Via: 1.0 launchpadlibrar
Connection: close
<html>
<body>
<p>
http://
file repository used by <a href="https:/
</p>
<!-- kthxbye. -->
Connection closed by foreign host.
---------------
Couldn't reproduce: ian.net 80 ian.net.
$ telnet launchpadlibrar
Trying 82.211.81.235...
Connected to launchpadlibrar
Escape character is '^]'.
PUT / HTTP/1.0
HTTP/1.1 400 Bad Request
Date: Tue, 31 Jul 2007 18:03:24 GMT
Server: Apache/2.0.55 (Ubuntu) mod_ssl/2.0.55 OpenSSL/0.9.8a
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
Connection closed by foreign host.