New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error on user details #331

Closed
hameno opened this Issue Jan 26, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@hameno

hameno commented Jan 26, 2015

Just updated to 1.0.0 and I get the following error when browsing to my user detail page:

Started GET "/users/3" for <IP> at 2015-01-26 08:50:09 +0100
Processing by UsersController#show as HTML
  Parameters: {"id"=>"3"}
  Current user: <username> (id=3)
  Rendered plugins/redmine_git_hosting/app/views/users/show.api.rsb within layouts/base (2.0ms)
Completed 500 Internal Server Error in 135.3ms

ActionView::Template::Error (No builder for format ):
    1: api.user do
    2:   api.id         @user.id
    3:   api.login      @user.login if User.current.admin? || (User.current == @user)
    4:   api.firstname  @user.firstname
  lib/redmine/views/builders.rb:28:in `for'
  app/controllers/users_controller.rb:76:in `block (2 levels) in show'
  app/controllers/users_controller.rb:75:in `show'

It seems it tries to do the API rendering on normal html requests.

@n-rodriguez n-rodriguez added the bug label Jan 26, 2015

@n-rodriguez n-rodriguez self-assigned this Jan 26, 2015

@n-rodriguez n-rodriguez added this to the 1.0.1 milestone Jan 26, 2015

n-rodriguez added a commit that referenced this issue Jan 26, 2015

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jan 26, 2015

Member

Fixed in v1.0.1 branch.

Member

n-rodriguez commented Jan 26, 2015

Fixed in v1.0.1 branch.

@hameno

This comment has been minimized.

Show comment
Hide comment
@hameno

hameno Jan 26, 2015

Yep, fixed. Thanks ;)

Side note: Wouldn't it be easier to manage a 1.0-stable branch and tag each release version?

hameno commented Jan 26, 2015

Yep, fixed. Thanks ;)

Side note: Wouldn't it be easier to manage a 1.0-stable branch and tag each release version?

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jan 26, 2015

Member

Side note: Wouldn't it be easier to manage a 1.0-stable branch and tag each release version?

I have to think about it... Thanks for the tip ;)

Member

n-rodriguez commented Jan 26, 2015

Side note: Wouldn't it be easier to manage a 1.0-stable branch and tag each release version?

I have to think about it... Thanks for the tip ;)

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Feb 5, 2015

Member

Side note: Wouldn't it be easier to manage a 1.0-stable branch and tag each release version?

Done.

Member

n-rodriguez commented Feb 5, 2015

Side note: Wouldn't it be easier to manage a 1.0-stable branch and tag each release version?

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment