Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_hba should validate that target is an absolute path #44

Open
mcanevet opened this issue Jun 5, 2013 · 0 comments
Open

pg_hba should validate that target is an absolute path #44

mcanevet opened this issue Jun 5, 2013 · 0 comments
Labels
bug Something isn't working

Comments

@mcanevet
Copy link
Member

mcanevet commented Jun 5, 2013

If you use pg_hba without specifying a target, it fails with:

Could not evaluate: private method `chomp' called for nil:NilClass

Because of:

def self.file(resource)
    ...
    file = resource[:target]
    file.chomp("/")
end

in pg_hba augeas provider.

I think it should be validated in the type to fail properly.

@raphink raphink added the bug label Feb 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants