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

Unable to Handle Spaced Windows File Paths #469

Closed
jdgoins opened this issue Feb 18, 2016 · 4 comments · Fixed by inspec/train#79
Closed

Unable to Handle Spaced Windows File Paths #469

jdgoins opened this issue Feb 18, 2016 · 4 comments · Fixed by inspec/train#79
Labels
Type: Bug Feature not working as expected

Comments

@jdgoins
Copy link

jdgoins commented Feb 18, 2016

The file resource is unable resolve a path with any spaces in it like 'C:\Program Files\test.txt'.

Both of these assertions fail:

describe file('C:\Program Files\test.txt') do
    it { should exist }
    it { should be_file }
end
inspec version
0.10.1
inspec detect
{"name":null,"family":"windows","release":"7","arch":null}
@chris-rock chris-rock added the Type: Bug Feature not working as expected label Feb 23, 2016
@chris-rock
Copy link
Contributor

Hi @jdgoins Thank you very much for your report. We will double-check why this happens.

@srenatus
Copy link
Contributor

As mentioned by @username-is-already-taken2 in #491, this seems to also affects directories.

@jdgoins
Copy link
Author

jdgoins commented Mar 15, 2016

Has there been any movemnet on this @chris-rock ? This seems like a pretty fundamental capability.

@chris-rock
Copy link
Contributor

@jdgoins Thanks for checking the status. We identified the bug in train. This will be solved with the next release next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants