Project

General

Profile

Actions

Bug #19728

closed

Set User.current in rake console

Added by Lukas Zapletal over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Rake tasks
Target version:
Fixed in Releases:
Found in Releases:

Description

With security patch that want into 1.14 and develop many models are more restricted now and console is mostly unusable without user set. Let's explicitly set the user to anonymous admin and tell the user to change this if needed.

Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman/pull/4563 added
Actions #2

Updated by Ohad Levy over 7 years ago

TBH I prefer not to, I think that if you are using the console, you should be aware, otherwise it might lead to unexpected pain?

Actions #3

Updated by Lukas Zapletal over 7 years ago

  • Translation missing: en.field_release set to 248

After discussion on IRC, we agreed this is a regression and it needs to be fixed. We will create an extra console_admin for recording purposes.

Actions #4

Updated by Daniel Lobato Garcia over 7 years ago

  • Translation missing: en.field_release deleted (248)

I don't think this is 1.15.1 worthy. It adds a feature - console isn't part of "Foreman" and it isn't fixing any bug as far as I understand.

Actions #5

Updated by The Foreman Bot over 7 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4565 added
Actions #6

Updated by Lukas Zapletal over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #7

Updated by Marek Hulán over 7 years ago

  • Translation missing: en.field_release set to 248
Actions

Also available in: Atom PDF