Some more info:
When I submit an import (of a class or environment) through the GUI I see in
the server logs:
(…)
Parameters: {"commit"=>"Update",
"changed"=>{"new"=>{"environments"=>["development"]}},
"action"=>"obsolete_and_new",
"authenticity_token"=>"emUHRybiqemt/JrDYXymxB5vsowBMjJJPDuelCn/AGo=",
"controller"=>"environments"}
ActiveRecord::AssociationTypeMismatch (Puppetclass(#-610791258) expected,
got NilClass(#-604339728)):
app/models/environment.rb:89:in obsolete_and_new' app/models/environment.rb:85:in
each'
app/models/environment.rb:85:in obsolete_and_new' app/models/environment.rb:83:in
each'
app/models/environment.rb:83:in obsolete_and_new' app/models/environment.rb:80:in
each'
app/models/environment.rb:80:in obsolete_and_new' app/controllers/application_controller.rb:47:in
obsolete_and_new'
/usr/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:in
start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:in
start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:in
each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendering /usr/local/foreman/public/500.html (500 Internal Server Error)
Gr,
Marcello