Skip to content
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

redmine_sudo with jruby #2

Open
razb opened this issue Aug 10, 2013 · 1 comment
Open

redmine_sudo with jruby #2

razb opened this issue Aug 10, 2013 · 1 comment

Comments

@razb
Copy link

razb commented Aug 10, 2013

I'm running Redmine 2.3 with Jruby 1.74 and teh combination results in strage bug with redmine_sudo. Rendering for all pages basically gets turned off. All pages show with raw erb:

csrf_meta_tag %> favicon %> stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %> stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> javascript_heads %> heads_for_theme %> call_hook :view_layouts_base_html_head %> yield :header_tags -%>
render_menu :account_menu -%>
if User.current.sudoer? %>
link_to sudo_toggle_path(:back_url => url_for(params)), :class => "sudo" do %> label = User.current.admin? ? "become_user" : "become_admin" %> Setting.plugin_redmine_sudo[label] %> end %>
end %> content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %> render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
if User.current.logged? || !Setting.login_required? %>
form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>: text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> end %> render_project_jump_box %>
end %>
page_header_title %>

if display_main_menu?(@project) %>
render_main_menu(@project) %>
end %>
yield :sidebar %> view_layouts_base_sidebar_hook_response %>
render_flash_messages %> yield %> call_hook :view_layouts_base_content %>
Powered by link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2013 Jean-Philippe Lang
call_hook :view_layouts_base_body_bottom %>

@jbbarth
Copy link
Owner

jbbarth commented Aug 19, 2013

Obviously this shouldn't happen, but I never used jruby before. I highly suspect there's a problem with "deface" and jruby. deface is the gem I use for inserting additionnal HTML in redmine standard pages. Unfortunately deface relies on gem with local compilation such as nokogiri, and it doens't seem the project supports jruby for now. Your best bet is to switch to MRI but I'd understand it's a big things for a tiny plugin like redmine_sudo :/

I can see if I can make things going better with jruby but it won't be before a month or two because I'm a bit busy at the moment. Hope you understand. Don't hesitate to tell me if you notice other strange behaviours, maybe it will help me understand what happens.

Sorry for the late answer btw!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants