danmunn / redmine_dmsf

Fork of svn repository for redmine_dmsf
GNU General Public License v2.0
413 stars 193 forks source link

routing error while connecting to WebDAV #1450

Closed SinghNanak closed 1 year ago

SinghNanak commented 1 year ago

I installed a new Redmine in new environment and i cannot connect to WebDAV even in browser. the following were the errors: Page not found The page you were trying to access doesn't exist or has been removed.

I, [2023-05-01T16:04:13.840251 #8000]  INFO -- : [033e384c-e731-4ed8-90da-9ddba450f6b7] Started GET "/redmine/dmsf/webdav/" for 192.168.0.168 at 2023-05-01 16:04:13 +0530
F, [2023-05-01T16:04:13.840968 #8000] FATAL -- : [033e384c-e731-4ed8-90da-9ddba450f6b7]   
[033e384c-e731-4ed8-90da-9ddba450f6b7] ActionController::RoutingError (No route matches [GET] "/dmsf/webdav"):
[033e384c-e731-4ed8-90da-9ddba450f6b7]   
SinghNanak commented 1 year ago

sorry found the solution

# Redmine DMSF's WebDAV
require File.dirname(__FILE__) + '/plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware'
config.middleware.insert_before ActionDispatch::Cookies, RedmineDmsf::Webdav::CustomMiddleware