amartel / redmine_webdav

WebDav plugin for redmine
Other
35 stars 8 forks source link

Plugin installation/configuration #22

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi, i would like to use the plugin for our redmine 2.3.0 on ubuntu LTS 12.04 and Apache2. the installation instruction says i have to copy the RedmineAdvanced.pm to /etc/httpd/Apache/Authn. but i don't even have /etc/httpd. i tried to install alle the pearl packages and copy it to the /usr/lib/pearl5/Apache2 or usr/share... or /Apache. i also created a dir, named Authn. but i got the "Invalid command 'RedmineDSN'" error. is there any instructions how to install and configure the plugin correctly on ubuntu? sorry if this is a dump question, but i can't find something specific about this :(

many many thanks and greetings,

Jonas

cguentherTUChemnitz commented 11 years ago

Hi there,

I have also an ubuntu LTS 12.04 server running, so i looked up my config. I see that the "RedmineAdvanced.pm" is located in the "/etc/perl/Apache" folder. Also the configuration of the apache sites are inside "/etc/apache2/sites-enabled" located. The content of this folder consists of symlinks to /etc/apache2/sites-available" where you can use e.g. the predefined default-ssl. To enable the redmine authentication for apache you have to add "PerlLoadModule Apache::RedmineAdvanced" to the used configuration.

I hope that helps you. I remember that this was also tricky for me to figure out the ubuntu specific handling.

kind regards, cguenther

ghost commented 11 years ago

you are awesome, thanks! after installing SHA1 and trying a bit around the installation worked and the plugins are shown in the administration panel project settings! thanks a lot! but if i choose WebDAV for any of my projects, there is no WebDAV tab appearing.

amartel commented 11 years ago

Glad to see you have my plugin working. The webdav tab should appear only in the project configuration (as a sub-tab) but you have to grant permissions to your users before (use administration -> roles and permissions)...

Kind regards, Arnaud

ghost commented 11 years ago

thanks for the fast reply. i created a new project, set my roles in roles&permissions (manage and view) and enabled the webdav module. but there is still no sub-tab in the project configuration.. (screenshot: http://s9.postimg.org/wocxryjm7/Ohne_Titel.png)

thanks for your support!

amartel commented 11 years ago

Strange because, in my code, the only requirement is to have the :webdav_settings permission. Are you sure that current user has this permission?? If yes, is there some error messages in the logfile (log/production.log)??

ghost commented 11 years ago

no, there isn't any error in the production.log..

Started POST "/redmine/projects/teamserver-2-0/modules" for 194.**\ at 2013-05-29 12:37:31 +0200 Processing by ProjectsController#modules as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"k9J+EnlvhnTDnR+fFsG2lBbd6WjGqT22+ol7A6nXIec=", "enabled_module_names"=>["repository", "dmsf", "webdav"], "commit"=>"Save", "id"=>"teamserver-2-0"} Current user: myuser (id=4) Redirected to http://.de/redmine/projects/teamserver-2-0/settings/modules Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/redmine/projects/teamserver-2-0/settings/modules" for 194.39.133.10 at 2013-05-29 12:37:31 +0200 Processing by ProjectsController#settings as HTML Parameters: {"id"=>"teamserver-2-0", "tab"=>"modules"} Current user: d049213 (id=4) Rendered plugins/redmine_dmsf/app/views/hooks/redmine_dmsf/_view_projects_form.html.erb (0.0ms) Rendered plugins/redmine_scm/app/views/projects/_scm.html.erb (0.4ms) Rendered projects/_form.html.erb (10.1ms) Rendered projects/_edit.html.erb (11.5ms) Rendered projects/settings/_modules.html.erb (3.2ms) Rendered projects/settings/_members.html.erb (29.7ms) Rendered projects/settings/_versions.html.erb (2.6ms) Rendered plugins/redmine_scm/app/views/projects/settings/_repositories.html.erb (3.8ms) Rendered plugins/redmine_dmsf/app/views/dmsf_state/_user_pref.html.erb (4.8ms) Rendered common/_tabs.html.erb (59.3ms) Rendered projects/settings.html.erb within layouts/base (60.6ms) Completed 200 OK in 84ms (Views: 73.3ms | ActiveRecord: 2.6ms)

the permissions are definitely correct and for the current project/user.

bollinim commented 10 years ago

I've been facing in front of the same problem. Same OS, same version. After fiddling a lot with the source code I have decided to uninstall the two redmine plugins. Hopefully you can figure out how to solve the problem. The WebDAV access to Redmine files will turn out the application as our definitive main application for PM and Document Management

gprasanthkumar commented 10 years ago

I am trying to integrate this plugin to our environment (Server 'Ubuntu 12.04.2 LTS').

In our server we are maintaining nearly 20-30 different redmine instances and grow to nearly 200 instances in coming 3-months and all the instances have their own specific svn and git repositories. We have documents in svn and in git repositories. I configured /webdav in my apache configuration and successfully did a apache restart following the instructions but when I try to use 'CarotDAV' with my valid credentials I see some log in the apache displaying something like below...

XXX.XX.XX.XXX - XXXXXX [12/Sep/2013:16:50:27 +0200] "OPTIONS /webdav HTTP/1.1" 200 2190 "-" "Rei.Fs.WebDAV1.9.8" XXX.XX.XX.XXX - XXXXXX [12/Sep/2013:16:50:27 +0200] "PROPFIND /webdav HTTP/1.1" 405 612 "-" "Rei.Fs.WebDAV1.9.8"

Any help in this regard is grateful.

Regards, G Prasanth Kumar

amartel commented 10 years ago

Well, these are the requests sent by carotDAV and they are OK. Could you describe what is your problem?

gprasanthkumar commented 10 years ago

Response for: "Well, these are the requests sent by carotDAV and they are OK. Could you describe what is your problem?"

I configured the webdav from the server and created a symlink like "RedmineAppDir/public/webdav -> SvnRepositoryPath" and in webdav plugin settings "folder name for repository" I entered webdav word only and hoping the URL like https://ServerName/webdav in CarotDAV and I see the belowtwo entries in apache log. I tried connecting via 'Mapping a network drive' from my Windows-7 Desktop with path as https://ServerName/webdav and still the same problem I mean unable to open the repository.

We use our windows credentials to login to the application.

webdaverrorcarotdav

webdaverror

/Prasanth Kumar G

amartel commented 10 years ago

I don't know why you want to create a symlink like this one but I'm pretty sure it will not be used... The webdav plugin will publish the repositories defined in your redmine project (in Settings -> Repositories) and it will use the redmine core functions to do that (at least for read access) so no symlink is needed . For the plugin settings, here is what I use for a single repository:

capture decran 2013-09-13 a 11 44 54

About authentication: I don't know what is your apache configuration but you have to check that the username displayed in the apache log is EXACTLY the same as your login in redmine (uppercase/lowercase doesn't matter). If not, redmine_http_auth will not be able to identify you and the webdav plugin will see you only as anonymous user...

Last thing: Some of my users are unable to map a network drive with windows 7, some others have absolutely no problem and there are few users who can't connect sometimes... Conclusion: webdav client in Windows 7 is not very stable and that's why I prefer to use CarotDAV. If you can see you repository inside CarotDAV, then the server and the webdav plugin are correctly configured...

Kind regards, Arnaud

gprasanthkumar commented 10 years ago

Hi Arnaud,

Thanks for your suggestions and corrections.

Can you give the approximate URL what I should try in the CarotDAV GUI for URI.

I am using SSL certificate so I am extpecting URI to be https://ServerName/webdav and we are using apache as the web server and the apache ServerName docroot points to RedmineAppDir/public directory and this is the reason why I created a sym link like RedmineAppDir/public/webdav -> RepositoryPath

Will wait for your further suggestions.

/Prasanth

amartel commented 10 years ago

Prasanth,

I set up my server to use a suburi for redmine (in /redmine) and here is an example of CarotDAV configuration: capture decran 2013-09-17 a 11 36 25 And, when I open the connection, here is what I have in CarotDAV... capture decran 2013-09-17 a 11 40 04

Hope it will help you...

gprasanthkumar commented 10 years ago

Hi Amartel,

To our current requirement I am not using any sub-uri structure. My Home URL will directly land into the application.

Can you please suggest any workaround for this.

/Prasanth