redmine icon indicating copy to clipboard operation
redmine copied to clipboard

unable to mount a webdav network drive on windows with redmine_dmsf because of puma

Open id3nom opened this issue 1 year ago • 1 comments

puma is not accepting the PROPFIND http method by default. and log the following message:

Unsupported HTTP method used: PROPFIND

To resolve the problem I've copied a Gemfile.local config with the webrick dependency and started the container with the command rails server -u webrick -b 0.0.0.0 then the call with the PROPFIND http method where correctly sent to the redmine app.

It would be nice to have an environment variable to enable all http methods with puma.

id3nom avatar Oct 11 '24 04:10 id3nom

Oh fun -- looks like this limitation was reported/discussed in Puma upstream in https://github.com/puma/puma/issues/3014, with PROPFIND being one of the examples most frequently discussed there.

The end result appears to have been https://github.com/puma/puma/pull/3106 / https://github.com/puma/puma/commit/dfd33df8b1c63091cfa56632a45542b75a2920f1, which is part of Puma 6.3.0+. I'm not entirely sure where you'd put your "puma configuration", but it's possible you can use supported_http_methods in that to fix this with Puma for your use case / this Redmine plugin's functionality.

tianon avatar Oct 11 '24 16:10 tianon