Issue #14127 has been updated by Daniel Pittman.

Category set to ssh
Status changed from Unreviewed to In Topic Branch Pending Review
Branch set to https://github.com/puppetlabs/puppet/pull/701

https://github.com/puppetlabs/puppet/pull/701 contains the fix to this, plus 
the other bugs in that grammar.

Thanks for the report, and especially for the pointer to what was wrong - you 
were absolutely right, and that was broken.  Turns out that comments were also 
kind of broken, but it didn't matter as much because the bugs in the grammars 
idea of a blank line masked the change.
----------------------------------------
Bug #14127: ssh_authorized_keys fails if a line is empty
https://projects.puppetlabs.com/issues/14127#change-61270

Author: Maurice Meeden
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: ssh
Target version: 
Affected Puppet version: 2.6.12
Keywords: 
Branch: https://github.com/puppetlabs/puppet/pull/701


If ~/.ssh/authorized_keys contains an empty line, puppet raises an error and 
generate a complete new file:

    debug: Prefetching parsed resources for ssh_authorized_key
    err: Could not prefetch ssh_authorized_key provider 'parsed': Could not 
parse line "" at /root/.ssh/authorized_keys:3

If the line contains any character (e.g. a blank) puppet works as expected and 
ignores this line. But this should also happens with completely empty lines. 
Maybe the match statement in 
/usr/lib64/ruby/vendor_ruby/1.8/puppet/provider/ssh_authorized_key/parsed.rb is 
not correct?

    text_line :blank, :match => /^\s+/

But I've tried many other match-statements without success. Is it possible, 
that the algorithm fails somewhere before?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to