Bug #1674
closedError when modifying autosign.conf with commented line
Description
I received an error when trying to modify autosign.conf file with a commented line:
smart_proxy_autosign_url failed to generate from {:controller=>"SmartProxies::Autosign", :smart_proxy_id=>#<SmartProxy id: 1, name: "z03s-puppet", url: "https://z03s-puppet.example.com:8443", created_at: "2011-12-22 23:16:22", updated_at: "2011-12-24 16:15:19">, :auth_ation=>:destroy, :action=>"destroy", :id=>"#http://projects.puppetlabs.com/projects/1/wiki/Certificates_And_Security"}, expected: {:controller=>"SmartProxies::Autosign", :action=>"destroy"}, diff: {:smart_proxy_id=>#<SmartProxy id: 1, name: "z03s-puppet", url: "https://z03s-puppet.zebra.lan:8443", created_at: "2011-12-22 23:16:22", updated_at: "2011-12-24 16:15:19">, :auth_ation=>:destroy, :id=>"#http://projects.puppetlabs.com/projects/1/wiki/Certificates_And_Security"}
I would have expected foreman to ignore a commented out line.
I also received an error when trying to start a line that didn't begin with *:
Creating a line like "z03*.example.com" causes a similar error to the above.
Files
Updated by Ohad Levy over 12 years ago
- Project changed from Foreman to Smart Proxy
Updated by Ohad Levy over 12 years ago
can you provide a sample autosign file where this happens?
thanks
Updated by Joseph I over 12 years ago
- File autosign.conf_1 autosign.conf_1 added
- File autosign.conf_2 autosign.conf_2 added
I've just re-added z03*.zebra.lan, and have received the following error:
ActionView::TemplateError
smart_proxy_autosign_url failed to generate from {:controller=>"SmartProxies::Autosign", :smart_proxy_id=>#, :auth_ation=>:destroy, :action=>"destroy", :id=>"z03*.zebra.lan"}, expected: {:controller=>"SmartProxies::Autosign", :action=>"destroy"}, diff: {:smart_proxy_id=>#, :auth_ation=>:destroy, :id=>"z03*.zebra.lan"}
app/helpers/application_helper.rb:105:in `display_link_if_authorized'
app/views/smart_proxies/autosign/index.html.erb:15
app/views/smart_proxies/autosign/index.html.erb:11:in `each'
app/views/smart_proxies/autosign/index.html.erb:11
As requested I've attached an example autosign.conf:
WORKS:
.zebra.com
.zebra.lan
FAILS:
.zebra.com
.zebra.lan
z03*.zebra.lan
Note, removing the "offending" line from the command line, and then hitting refresh makes the error go away.
I've also tried adding a line with 192.168.*.*, to wild card with similar error messages.
Updated by Adam Denning over 12 years ago
Getting the same error here. It seems any use of a wildcard in auth.conf causes this error.
Updated by Ohad Levy almost 12 years ago
- Category set to Puppet
- Target version set to 1.1
Updated by Dominic Cleal almost 12 years ago
Updated by Jan Vansteenkiste almost 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 45455631b6eeae5229da3b00b50228fa424faecc.