404 exception when data bag is a Windows symlink
Closed this issue · 0 comments
madhead commented
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.