Your message dated Thu, 25 Oct 2012 18:02:27 +0000
with message-id <e1trrld-00050e...@franck.debian.org>
and subject line Bug#689038: fixed in camping 2.1.498-4
has caused the Debian Bug report #689038,
regarding camping: Does not support HTTP POST
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
689038: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689038
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: camping
Version: 2.1.498-3
Severity: grave
Tags: patch upstream
Justification: renders package unusable
Hi,
Currently, it is not possible in Debian to use the Camping framework to
write/create an application that supports HTTP POST next to GET nor to
use/run Camping webapps that use POST.
This only holds when using Camping server and not other deployment methods.
However, it is obviously a must for it to work during development.
The problem is caused by the fact that the Rack::File middleware, used for
serving static files, is chained before the app and this middleware
logically doesn't support POST and throws a HTTP 405 error which is
subsequently not handled.
The patch attached ensures that HTTP 405 is ignored and the POST request is
propagated to the Camping app.
Cheers,
Paul
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (102, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages camping depends on:
ii ruby 4.9
ii ruby-rack 1.4.1-2
ii ruby1.8 [ruby-interpreter] 1.8.7.358-4
ii ruby1.9.1 [ruby-interpreter] 1.9.3.194-1
Versions of packages camping recommends:
ii ruby-activerecord-2.3 2.3.14-2
ii ruby-mab 0.0.1+git20120515.30414e4-2
ii ruby-sqlite3 1.3.6-2
ii ruby-tilt 1.3.3-2
Versions of packages camping suggests:
ii thin 1.3.1-3
-- no debconf information
>From fe791e787f5665efdc3f17b0f6122260b3a6d770 Mon Sep 17 00:00:00 2001
From: Magnus Holm <judo...@gmail.com>
Date: Fri, 10 Feb 2012 17:31:12 +0100
Subject: [PATCH] Server: Also catch 405 from Rack::File
---
lib/camping/server.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/camping/server.rb b/lib/camping/server.rb
index 47bffa7..af2bfc8 100644
--- a/lib/camping/server.rb
+++ b/lib/camping/server.rb
@@ -149,7 +149,7 @@ module Camping
end
def app
- Rack::Cascade.new([Rack::File.new(public_dir), self], [404, 403])
+ Rack::Cascade.new([Rack::File.new(public_dir), self], [405, 404, 403])
end
def current_app
--
1.7.10.4
--- End Message ---
--- Begin Message ---
Source: camping
Source-Version: 2.1.498-4
We believe that the bug you reported is fixed in the latest version of
camping, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 689...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paul van Tilburg <pau...@debian.org> (supplier of updated camping package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 25 Oct 2012 19:54:15 +0200
Source: camping
Binary: camping
Architecture: source all
Version: 2.1.498-4
Distribution: unstable
Urgency: low
Maintainer: Debian Ruby Extras Maintainers
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
Changed-By: Paul van Tilburg <pau...@debian.org>
Description:
camping - small Ruby web framework for Model-View-Controller type applicati
Closes: 689038
Changes:
camping (2.1.498-4) unstable; urgency=low
.
* debian/patches: add camping-allow-POST-through-Rack-File,
courtesy of Magnus Holm (closes: #689038)
* debian/source/local-options: unapply patches after build
Checksums-Sha1:
23e7d2406939e7d5e375e6f2cca7bfd357eb4c10 1402 camping_2.1.498-4.dsc
78312400575313655bb66348733890d4f8ef9089 6249 camping_2.1.498-4.debian.tar.gz
d8f921ec019dc76a37f89730bbcb7b62062341df 110096 camping_2.1.498-4_all.deb
Checksums-Sha256:
93691e8301f59a4f6f75477a408bd5e5119929a0853874788bc96d3b92acc380 1402
camping_2.1.498-4.dsc
ebd54abbbcdd79a46b987826c6ae60a852b2bab4386557f50c15ffaabdbb8763 6249
camping_2.1.498-4.debian.tar.gz
effaf321eac598be2a000e47044db54ee07b54be62cbb61efa7975aba55b6ffe 110096
camping_2.1.498-4_all.deb
Files:
5d060a894b75023c47fc22009d29ddfb 1402 web optional camping_2.1.498-4.dsc
7bdfb7a85e64ec87e148b76e07256548 6249 web optional
camping_2.1.498-4.debian.tar.gz
794708f4bbda841c2d7c42cf66c64c29 110096 web optional camping_2.1.498-4_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlCJfccACgkQJBBhylAGQYGSxwCbBl97iOqQp6H6YXXuugx0HD9R
hCYAn0imYRIFVdNjqRlpFkC2YEjgBIps
=OxiO
-----END PGP SIGNATURE-----
--- End Message ---