redmine_ical
redmine_ical copied to clipboard
Showing blank page when private project
Hello
I have a project which is private and requires user login. When I perform export, it works great. But when I try to access export link as not logged in user, I only get blank page. I was thinking I could easily sync Google Calendar with this, but it doesn't work.
Is it normal to get blank page?
When you copy the link when you are logged in the link should have a key that tells Redmine which user you are, without the key Redmine can't know who you are and won't send any data to the client.
I know and key is included, but it stills shows blank page.
Mmh, there probably is a problem then. Which version of Redmine do you use?
I don't use Redmine anymore though so I won't fix this myself. If someone submits a patch or wants to take the plugin over, I'd be happy to oblige.
I have Redmine 1.3.0.stable.8191. Yes, I noticed you said that you won't maintain is anymore, too bad.
Mmh, the current version has received updates for 1.4 and I haven't tested it on 1.3, you might want to try an earlier commit like 6af4595ea74009b466c8b191fdbbd566801bbd1f or even 6be5d9f8dfcf289c416877918f4cac5450b762fc .
By editing this file app/controllers/application_controller.rb
Replace
elsif %w(atom ics).include?(params[:format]) && params[:key] && request.get? && accept_rss_auth?
With
elsif %w(atom ics).include?(params[:format]) && params[:key] && request.get?
should display ics of private project.
I'm not sure what accept_rss_auth? doing, but it should work.