Bug #19294

Templates are not being updated

Added by Marek Hulán 9 days ago. Updated 3 days ago.

Status:Closed
Priority:Normal
Assigned To:Marek Hulán
Category:-
Target version:Foreman - Team Marek Iteration 13
Difficulty: Pull request:https://github.com/theforeman/foreman_templates/pull/46
Bugzilla link:
Story points-
Velocity based estimate-

Description

After taxonomies has been changed in 1.15 so that only admin can load data from global context (any context), we need to setup anonymous admin as a current user for template importing. Otherwise it can not find the template and tries to create a new one which silently fails on name uniqueness validation. The whole import code needs to be revisit but to fix this, User.current configuration is enough and is a good idea anyway.

Associated revisions

Revision e078c13c
Added by Marek Hulán 3 days ago

Fixes #19294 - support templates from any context (#46)

History

#1 Updated by The Foreman Bot 9 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_templates/pull/46 added

#2 Updated by Anonymous 3 days ago

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

Also available in: Atom PDF