This project is archived and is in readonly mode.

#5895 ✓ resolved
clyfe

Allow mounting of rack apps that deal with HTTP extensions

Reported by clyfe | October 30th, 2010 @ 04:17 PM | in 3.0.2

I have a rack app that handles webdav request. I cannot mount it from inside rails like this;

HelloWebdavApp::Application.routes.draw do |map|
  match '/webdav', :to => WebdavApp
end

because rails validates HTTP verbs (GET POST PUT ..), and webdav uses HTTP extensions like PROPFIND that do not validate, throwing the following exception:

ActionController::UnknownHttpMethod (PROPFIND, accepted HTTP methods are get, head, put, post, delete, and options)

I see 2 possible fixes:

Either allow rack mounting semantics to say "mount this but above HelloWebdavApp.routes" either change the validation code to allow http extensions verbs.

More background here: http://stackoverflow.com/questions/4009082/rails-3-http-extensions-...

Related ticket: https://rails.lighthouseapp.com/projects/8994/tickets/2809-patch-al...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages