TravisSpangle / redmine_spent_time_in_issue_description

Redmine Plugin that drops Time Entry data into the Issue Description
16 stars 16 forks source link

Error loading views files? #23

Closed GavinDonnelly closed 9 years ago

GavinDonnelly commented 9 years ago

Hi,

I have just installed this plugin on a Linux redmine server, with a bitnami stack install. There is no errors when I rake the plugins but when I restart the server I get an errors in the views folder:

image

It seems like a permissions error, but I cant really pin point what the fix would be here?

Any help would be appreciated.

TravisSpangle commented 9 years ago

This is happening because the plugin is trying to copy a file and isn't allowed to. Can you try providing permissions to modify files in the directory ./redmine_spent_time_in_issue_description/app/views/issues?

GavinDonnelly commented 9 years ago

Hi,

So I changed the file permssion on the files and directorys: image

(I dont think the world should need permissions here)

Still the same failure?

TravisSpangle commented 9 years ago

Is bitnami also the servers user?

Until I can get the hooks installed in the views - http://www.redmine.org/issues/19188 - I am overwriting the Issue View. To make sure my view harmonizes with the Redmine view I have them broken out by Redmine versions, https://github.com/TravisSpangle/redmine_spent_time_in_issue_description/tree/master/app/views/issues.

When the app loads up it identifies the Redmine version and copies the correct versioned file as show.html.erb. This is where your app ( and others ) are failing.


I will implement a feature that does the copy file in a try-catch block. If it cannot perform the operation it will log it and default to the Redmine view.

GavinDonnelly commented 9 years ago

Yes this is a bitnami stack install, but the user is also bitnami. Okay that sounds like a good solution untill a fix is found.

TravisSpangle commented 9 years ago

The behavior is now implemented and deployed to 2.7. If the plugin is unable to copy the correct file over then it will report an error on the configuration settings page. It will inform the user what file needs to be copied over as show.html.erb.