Project

General

Profile

Actions

Bug #13872

open

Error accessing default template when trying to disable build mode with a normal user

Added by Julien Pivotto over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

$ curl -s -k -u jenkins:pass -H Content-Type:application/json -H Accept:version=2,application/json -X PUT -d '{"build":false}' https://foreman.example.lab/api/hosts/fna060.be.example.lab                                                                                                      
{
  "error": {"id":435,"errors":{"base":["Failed to generate PXELinux template: undefined method `encoding' for nil:NilClass"]},"full_messages":["Failed to generate PXELinux template: undefined method `encoding' for nil:NilClass"]}
}

Additional infos:
  • jenkins is a non admin user
  • '{"build":true}' works to put the host in build mode
  • At the end the host is still in build mode
  • It is broken in the webui as well

Files

production.log production.log 15.8 KB Julien Pivotto, 02/24/2016 06:15 AM
Actions

Also available in: Atom PDF