redmine_ical icon indicating copy to clipboard operation
redmine_ical copied to clipboard

Showing blank page when private project

Open FrEaKmAn opened this issue 13 years ago • 6 comments

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?

FrEaKmAn avatar Jul 30 '12 20:07 FrEaKmAn

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.

thegcat avatar Jul 31 '12 07:07 thegcat

I know and key is included, but it stills shows blank page.

FrEaKmAn avatar Jul 31 '12 09:07 FrEaKmAn

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.

thegcat avatar Jul 31 '12 09:07 thegcat

I have Redmine 1.3.0.stable.8191. Yes, I noticed you said that you won't maintain is anymore, too bad.

FrEaKmAn avatar Jul 31 '12 12:07 FrEaKmAn

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 .

thegcat avatar Jul 31 '12 17:07 thegcat

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.

Mowd avatar May 20 '14 06:05 Mowd