Skip to content

Internal Server Error on user details #331

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

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

Internal Server Error on user details #331

hameno opened this issue Jan 26, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@hameno
Copy link

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 self-assigned this Jan 26, 2015
@n-rodriguez n-rodriguez added this to the 1.0.1 milestone Jan 26, 2015
n-rodriguez pushed a commit that referenced this issue Jan 26, 2015
@n-rodriguez
Copy link
Contributor

Fixed in v1.0.1 branch.

@hameno
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants