kubitron / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
78 stars 15 forks source link

Processing UsersController#edit failure #62

Closed kinyobi closed 12 years ago

kinyobi commented 12 years ago

When selecting a user who was just created or who has already logged in and configured their ssh public keys I am getting the following error in my production.log as well as on screen:

Processing UsersController#edit (for 127.0.0.1 at 2012-08-26 10:25:38) [GET]
  Parameters: {"action"=>"edit", "id"=>"4", "controller"=>"users"}

ActiveRecord::StatementInvalid (SQLite3::SQLException: near "&": syntax error: SELECT * FROM "gitolite_public_keys" WHERE (active=1 && key_type=0) AND ("gitolite_public_keys".user_id = 4)  ORDER BY title ASC, created_at ASC):

Rendering rescues/layout (internal_server_error)

Let me know if there is something more I can give.

Running redmine 1.3.3 + redmine_git_hosting pulled as of last night.

kubitron commented 12 years ago

Did you remember to run "rake db:migrate_plugins"?

Also, can you run "./script/about" and show me the output? (You need to set the RAILS_ENV environment variable first). Thus, under csh from the redmine root, do:

prompt% setenv RAILS_ENV production
prompt% ./script/about

Under bash, do:

prompt% export RAILS_ENV=production
prompt% ./script/about

Please report the output.

kubitron commented 12 years ago

Actually -- I accidentally used non-standard SQL for something and didn't catch it because I'm using mysql.

Try pulling from master again and see if the problem goes away.

Sorry.

kinyobi commented 12 years ago

Pulled from master and everything is fine now.

Thanks for the quick fix!

kubitron commented 12 years ago

Great!

Sorry for the problem. Since you are grabbing the 0.4.6x version, make sure to check out the new options on the Repository settings page (i.e. DeploymentCredentials, Post-Receive URLs, and updated Mirrors).

There were a bunch of changes in this release, so please let me know if there are any other problems.