Project

General

Profile

Actions

Bug #18771

closed

error when resource does not have id ActiveRecord::RecordInvalid: Validation failed: Resource can't be blank

Added by Thomas McKay about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When a resource is going to be locked, the lock requires that the resource has an id (see validation in lock.rb). Without this there are errors.

To reproduce, register a content host with subscription-manager and update facts:
subscription-manager register --username admin --password changeme --org Default_Organization --env Library
subscription-manager facts --update

The CpConsumerUser does not have an id since it is a temporary user used just for the length of the call.

Actions #1

Updated by Thomas McKay about 7 years ago

  • Bugzilla link set to 1428371
Actions #2

Updated by Adam Ruzicka about 7 years ago

  • Target version set to 113
Actions #3

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ivan Necas
  • Pull request https://github.com/theforeman/foreman-tasks/pull/256 added
Actions #4

Updated by Ivan Necas almost 7 years ago

  • Target version changed from 113 to 1.14.1
Actions #5

Updated by Ivan Necas almost 7 years ago

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

Updated by Ivan Necas almost 7 years ago

  • translation missing: en.field_release set to 261
Actions

Also available in: Atom PDF