Project

General

Profile

Bug #2485

Editing class imported from Example42 raise error on submit (develop branch)

Added by Alejandro Falcon about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

How to reproduce:
-Install foreman from source develop branch
-Edit any class imported from example42 modules.
-Submit without changing anything.

Error raised:

Oops, we're sorry but something went wrong

x SQLite3::ConstraintException: constraint failed: UPDATE "lookup_keys" SET "description" = '', "default_value" = '--- "params_lookup(\"monitor_target\", \"global\")"', "updated_at" = NULL WHERE "lookup_keys"."id" = 733
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.

ActiveRecord::StatementInvalid
SQLite3::ConstraintException: constraint failed: UPDATE "lookup_keys" SET "description" = '', "default_value" = '--- "params_lookup(\"monitor_target\", \"global\")"', "updated_at" = NULL WHERE "lookup_keys"."id" = 733
app/controllers/puppetclasses_controller.rb:45:in `update'
lib/foreman/thread_session.rb:31:in `clear_thread'
Back

Associated revisions

Revision 27120f62 (diff)
Added by Joseph Magen about 6 years ago

fixes #2485 - updated_at = NULL

Revision b1ed267b (diff)
Added by Joseph Magen about 6 years ago

fixes #2485 - updated_at = NULL
(cherry picked from commit 27120f6239e252fb392ad3d61e68d7fc4dd0c740)

History

#1 Updated by Joseph Magen about 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Joseph Magen

#2 Updated by Joseph Magen about 6 years ago

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

Also available in: Atom PDF