[chef] InvalidDataBagItemID when editing data bags in the webui


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] InvalidDataBagItemID when editing data bags in the webui
  • Date: Wed, 6 Jul 2011 08:19:01 -0700 (PDT)

Hi everyone.

I am currently setting up my first chef environment and must say I am already
sold. However I have a minor issue and I did not find any answer on google:

In the chef server webui I can create data bags and I can edit them using
knife, but I can not edit them using the webui. Whenever I try to save an
edited data bag I get an Error and an InvalidDataBagItemID Exception is logged
to the chef/server.log like the following:

merb : chef-server (api) : worker (port 4000) ~ Data Bag items must have an id
matching /^[-[:alnum:]_]+$/, you gave: data_bag_item["users", "test",
{"comment"=>"asdf", "id"=>"test"}] - (Chef::Exceptions::InvalidDataBagItemID)

I have copied the full stack trace here: http://nopaste.info/9644f416d6.html

In the ruby code in data_bag_item.rb I have seen that after the "you gave:"
part it should only log the id, not the whole item.  Is it a misconfiguration
on my side or is it a bug? What can I do to find out?

Thanks for your help
Silvan



Archive powered by MHonArc 2.6.16.

§