Giter VIP home page Giter VIP logo

redmine_group_owners's People

Contributors

kamm avatar m-ramizraja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redmine_group_owners's Issues

undefined method 'render_principals_for_new_group_owners'

Redmine 2.4.2

Started GET "/groups/307/edit" for 127.0.0.1 at 2014-01-27 10:35:59 +0400
Processing by GroupsController#edit as HTML
  Parameters: {"id"=>"307"}
  Current user: amirotin (id=1)
  Rendered groups/_form.html.erb (1.7ms)
  Rendered groups/_general.html.erb (3.7ms)
  Rendered groups/_users.html.erb (29.7ms)
  Rendered groups/_memberships.html.erb (10.0ms)
  Rendered plugins/redmine_group_owners/app/views/groups/_owners.html.erb (374.6ms)
  Rendered common/_tabs.html.erb (421.2ms)
  Rendered groups/edit.html.erb within layouts/admin (422.8ms)
Completed 500 Internal Server Error in 430.3ms

ActionView::Template::Error (undefined method `render_principals_for_new_group_owners' for #<#<Class:0x00000003724bf8>:0x00000007dcca60>):
    34:         <%= javascript_tag "observeSearchfield('owner_search', null, '#{ escape_javascript autocomplete_for_owner_group_path(@group) }')" %>
    35: 
    36:         <div id="owners">
    37:           <%= render_principals_for_new_group_owners(@group) %>
    38:         </div>
    39: 
    40:         <p><%= submit_tag l(:button_add) %></p>
  app/views/common/_tabs.html.erb:24:in `block in _app_views_common__tabs_html_erb__2984703629882627121_30278160'
  app/views/common/_tabs.html.erb:23:in `each'
  app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb__2984703629882627121_30278160'
  app/helpers/application_helper.rb:320:in `render_tabs'
  app/views/groups/edit.html.erb:3:in `_app_views_groups_edit_html_erb__1180246796905140068_29789520'

Internal error in group menu

Hello,
When I enter administration->groups I get Internal Error. Here is my log:

ActionView::Template::Error (undefined method title' for #<#<Class:0x007f0618ef0450>:0x007f0619669ad8>): 2: <%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %> 3: </div> 4: 5: <%= title l(:label_group_plural) %> 6: 7: <% if @groups.any? %> 8: <table class="list groups"> plugins/redmine_group_owners/app/views/groups/index.html.erb:5:in_plugins_redmine_group_owners_app_views_groups_index_html_erb___4124678485711672383_69832232725480'
actionpack (3.2.13) lib/action_view/template.rb:145:in block in render' activesupport (3.2.13) lib/active_support/notifications.rb:125:ininstrument'
actionpack (3.2.13) lib/action_view/template.rb:143:in render' actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:47:inblock (2 levels) in render_template'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in block in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument'
activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in instrument' actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:46:inblock in render_template'
actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:54:in render_with_layout' actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:45:inrender_template'
actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:18:in render' actionpack (3.2.13) lib/action_view/renderer/renderer.rb:36:inrender_template'
actionpack (3.2.13) lib/action_view/renderer/renderer.rb:17:in render' actionpack (3.2.13) lib/abstract_controller/rendering.rb:110:in_render_template'
actionpack (3.2.13) lib/action_controller/metal/streaming.rb:225:in _render_template' actionpack (3.2.13) lib/abstract_controller/rendering.rb:103:inrender_to_body'
actionpack (3.2.13) lib/action_controller/metal/renderers.rb:28:in render_to_body' actionpack (3.2.13) lib/action_controller/metal/compatibility.rb:50:inrender_to_body'
actionpack (3.2.13) lib/abstract_controller/rendering.rb:88:in render' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:16:inrender'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:in block (2 levels) in render' activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:inblock in ms'
/usr/local/lib/ruby/2.0.0/benchmark.rb:296:in realtime' activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:inms'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:in block in render' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:83:incleanup_view_runtime'
activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:24:in cleanup_view_runtime' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:39:inrender'
actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (3.2.13) lib/action_controller/metal/mime_responds.rb:196:inrespond_to'
plugins/redmine_group_owners/lib/group_owners/patches/groups_controller_patch.rb:20:in index_with_owner' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (3.2.13) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:inprocess_action'
actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.13) lib/active_support/callbacks.rb:469:in_run__1105362148345568608__process_action__1155418521551888356__callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'

activesupport (3.2.13) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
actionpack (3.2.13) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:inprocess'
actionpack (3.2.13) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.2.13) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:incall'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:incall'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:incall'
rack-openid (1.4.1) lib/rack/openid.rb:99:in call' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.5) lib/rack/etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:25:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:incall'
activerecord (3.2.13) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in_run__116648924839853306__call__3005220293873847025__callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in call' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:18:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall'
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall'
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall'
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in method_missing' passenger (4.0.33) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
passenger (4.0.33) lib/phusion_passenger/request_handler/thread_handler.rb:141:in accept_and_process_next_request' passenger (4.0.33) lib/phusion_passenger/request_handler/thread_handler.rb:109:inmain_loop'
passenger (4.0.33) lib/phusion_passenger/request_handler.rb:440:in `block (3 levels) in start_threads'

security issue in auto_register_to_groups

Hi!

Found an issue with auto register URL

In application_controller_patch.rb, module InstanceMethods you have:

Group.where.not(:auto_register_url => nil).each do |group|

Then if you'll at first set Auto-register URL to some group, and then clear it, group record will have empty char in auto_register_url field instead of null. Therefore :auto_register_url => nil is false and anyone, who reaches root redmine url will be added to such group.

Redmine 3.4.*
Postgres 9.6.2

How do i use auto-add URL feature

Hi!

Great plugin, just what i searched for!

Would you please explain, how can i use aout-add URL feature, because i can't get it.
Just an example.

Tried to set full URL and relative and just a word, and then to go to that url, but nothing worked.

support relative URLs as Auto Add URL

I've got Exception suddenly when tried to use relative URL (e.g. /wiki/Page) as Auto Add URL:

image

I think there is no need to check host part of URL at all, it's obvious that host should match on which Redmine is running.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.