amartel / redmine_webdav

WebDav plugin for redmine
Other
35 stars 8 forks source link

no longer works since redmine update to 1.2.1: NoMethodError (undefined method `destroy' for {}:Hash) #3

Closed cforce closed 12 years ago

cforce commented 12 years ago

Hi Arnaud,

there must be something changed from redmine 1.2 to redmine 1.21 because we have error and error now weghne trying to access webdav folders

log says:

NoMethodError (undefined method destroy' for #<Hash:0xc6ac6e0>): passenger (3.0.8) lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request' passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:513:in accept_and_process_next_request' passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop' passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in start_request_handler' passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:insend' passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' ...

our's

F, [2011-08-05T09:05:35.987450 #4472] FATAL -- : NoMethodError (undefined method destroy' for {}:Hash): vendor/plugins/redmine_webdav/app/controllers/webdav_controller.rb:18:infind_user' passenger (3.0.2) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.2) lib/phusion_passenger/abstract_request_handler.rb:513:inaccept_and_process_next_request' passenger (3.0.2) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:321:instart_request_handler' ....

We can succesfully authenticate on webdav via windows XP explorer (e.g with wrong password we also get acess denied), but then a error dialog appears saying ("translated") "The documents in this folder are not available. Eventually the folder has been moved or deleted, or the connection to the server can not be established in case of networks problems."

Please help us, cause we have already run this plugin on produdtion and now the feature is not working any more for many users.

W use WinXp SP3:

Open My Network Places.
Double-click Add Network Place.
Click Next twice, then type https://myserver/webdav
Click Next
enter your credentials (login/password)
Click Finish

Apache error.log (clean)

[Wed Aug 03 14:31:02 2011] [notice] Apache/2.2.16 (Debian) DAV/2 SVN/1.6.12 mod_jk/1.2.30 mod_ssl/2.2.16 OpenSSL/0.9.8o Phusion_Passenger/2.2.14 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

VHost error.log (clean)

VHost access.log

000.000.000.111 - - [03/Aug/2011:14:31:42 +0200] "OPTIONS / HTTP/1.1" 302 1760 "-" "Microsoft Data Access Internet Publishing Provider Cache Manager" 000.000.000.111 - - [03/Aug/2011:14:32:04 +0200] "GET /_vti_inf.html HTTP/1.1" 404 824 "-" "Mozilla/2.0 (compatible; MS FrontPage 4.0)" 000.000.000.111 - - [03/Aug/2011:14:32:04 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 1015 "-" "MSFrontPage/4.0" PC1.domain.de - - [03/Aug/2011:14:32:04 +0200] "OPTIONS /webdav HTTP/1.1" 401 844 "-" "Microsoft Data Access Internet Publishing Provider DAV 1.1" PC1.domain.de - - [03/Aug/2011:14:32:09 +0200] "OPTIONS /webdav HTTP/1.1" 401 844 "-" "Microsoft Data Access Internet Publishing Provider DAV 1.1" PC1.domain.de - user_login [03/Aug/2011:14:32:09 +0200] "OPTIONS /webdav HTTP/1.1" 500 1305 "-" "Microsoft Data Access Internet Publishing Provider DAV 1.1" 000.000.000.111 - - [03/Aug/2011:14:32:10 +0200] "OPTIONS / HTTP/1.1" 302 972 "-" "Microsoft Data Access Internet Publishing Provider DAV 1.1"

redmine_production.log see my post

VHost.conf

... SSL CONFIG...

    DocumentRoot /redmine/public
    <Directory /redmine/public>
       AllowOverride None
      Options Indexes ExecCGI FollowSymLinks
          Order allow,deny
          Allow from all
    </Directory>
## protect the redmine-Webservice
   <Location /sys>
          Order deny,allow
          Deny from all
          Allow from 127.0.0.1
      Allow from localhost
    </Location>

PerlLoadModule Apache::Redmine
PerlLoadModule Authen::Simple::LDAP

... SVN CONFIG ...

PerlLoadModule Apache::RedmineAdvanced
<Location /webdav>
    AuthType Basic
    AuthName "- WebDAV Redmine access -" 
    Require valid-user

    PerlAccessHandler Apache::Authn::RedmineAdvanced::access_handler
    PerlAuthenHandler Apache::Authn::RedmineAdvanced::authen_handler

    RedmineDSN "DBI:mysql:database=redmine;host=localhost;port=3306" 
    RedmineDbUser "redmine" 
    RedmineDbPass "***" 
    RedmineAuthenticationOnly "On" 

    Order allow,deny
    Allow from 127.0.0.1
          Allow from localhost
    Satisfy Any
</Location>

... LOG CONFIG / END ...

Tx for help!

cforce commented 12 years ago

Yout http-auth version works! Can u commit that to github, tx!