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

404 exception when data bag is a Windows symlink #170

Closed
madhead opened this issue Oct 14, 2015 · 0 comments
Closed

404 exception when data bag is a Windows symlink #170

madhead opened this issue Oct 14, 2015 · 0 comments
Milestone

Comments

@madhead
Copy link

madhead commented Oct 14, 2015

I've symlinked a directory in data_bags:

d:\work\chef-repo\data_bags>dir
 Directory of d:\work\chef-repo\data_bags

10/14/2015  03:38 PM    <DIR>          .
10/14/2015  03:38 PM    <DIR>          ..
06/05/2015  11:44 AM             1,939 README.md
10/14/2015  03:38 PM    <SYMLINKD>     test [D:\work\data_bags\test]

d:\work\chef-repo\data_bags>dir test
 Directory of d:\work\chef-repo\data_bags\test

10/07/2015  02:32 PM    <DIR>          .
10/07/2015  02:32 PM    <DIR>          ..
10/01/2015  01:12 PM        81,618,647 dev.json
10/01/2015  01:12 PM        81,618,647 prod.json

When I'm trying to use it like data_bag = Chef::DataBagItem.load('test', 'dev') I get exception: ==> solution-test: [2015-10-14T12:31:32+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/data/test/dev. If I replace symlink with a regular directory everything is ok.

@lamont-granquist lamont-granquist added this to the Help Wanted milestone Dec 14, 2016
@madhead madhead closed this as completed Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants