Unauthorized Bitbucket importer access results in Error 500
Created by @stanhu.
@target_namespace = params[:new_namespace].presence || repo_owner
In unauthorized.js.haml, the JavaScript is attempting to call full_path
on a string:
origin_namespace = "#{@target_namespace.full_path}"
https://sentry.gitlap.com/gitlab/gitlabcom/issues/24160/
NoMethodError: undefined method `full_path' for "HoTechie":String
app/views/import/base/unauthorized.js.haml:1:in `_app_views_import_base_unauthorized_js_haml__1485317214461407021_70027618636880'
:plain
app/controllers/import/bitbucket_controller.rb:57:in `create'
render 'unauthorized'
lib/gitlab/middleware/multipart.rb:93:in `call'
return @app.call(env) if encoded_message.blank?
lib/gitlab/request_profiler/middleware.rb:14:in `call'
@app.call(env)
lib/gitlab/database/load_balancing/rack_middleware.rb:25:in `call'
result = @app.call(env)
...
(129 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `full_path' for "HoTechie":String
ActionView::Template::Error: undefined method `full_path' for "HoTechie":String