Actions
Bug #1335
closedinvalid value for Integer: "0xstraylen"
Description
Hi,
With, Version 0.4 on RHEL6.
When I edit an individual host and add or remove a class I am presented with the following:
ArgumentError invalid value for Integer: "0xstraylen" /usr/share/foreman/app/models/host.rb:609:in `%' /usr/share/foreman/app/models/host.rb:609:in `normalize_addresses' /usr/share/foreman/app/models/host.rb:609:in `map' /usr/share/foreman/app/models/host.rb:609:in `normalize_addresses' /usr/share/foreman/app/models/host.rb:603:in `each' /usr/share/foreman/app/models/host.rb:603:in `normalize_addresses' /usr/share/foreman/app/models/orchestration.rb:55:in `valid?' /usr/share/foreman/app/controllers/hosts_controller.rb:107:in `update'
"straylen" is ldap authenticated userid.
I did not notice this with earlier versions however recently
we started to using a script to add hosts to foreman that posts some json along
the lines of:
{host:{"architecture_id":"1","comment":"Machine Provisioned by Kickstart","domain_id":"1","environment_id":"6","hostgroup_id":"3","ip":"137.138.102.97", "mac":"XX:XX:XX:XX:XX:XX","name":"jantest03","operatingsystem_id":"1", "owner_id":"6","ptable_id":"1"}}
this problem only seems to occur for the users that have called our script to add a host. Just
to be clear we are only using the foreman API and no database calls or anything horrible.
Steve.
Files
Actions