remote_file regression in 11.6 on windows

Ohai,

It seems there’s a regression in 11.6 when using remote_file with long
source URLs:

ec2-54-216-221-233.eu-west-1.compute.amazonaws.com================================================================================
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com Error executing action
unzip on resource 'windows_zipfile[c:/chef/cache/dbdump]'
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com================================================================================
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com Errno::ENOENT
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com -------------
ec2-54-216-221-233.eu-west-1.compute.amazonaws.comremote_file[c:/chef/cache/dbdump.zip]
(dynamically defined) had an error:
Errno::ENOENT: No such file or directory -
c:/chef/cache/remote_file/https___xxxx_s3_amazonaws_com_app_default_dbdump_zip_AWSAccessKeyId_xxxxxxExpires_1375091912_Signature_X7zU3NddB3fweJyKd6QzhMMVACI_3D_x_amz_security_token_AQoDYXdzEFoaoAI71MttYRnBCR51UPZfpcS1yeTAdd1U796XfJeVSzPEGEr0FSXEDtv_2FhOwZ8F_2BXmVZoHtrjQ46MbOv5TdeEwkUhXA_2FDHkKMP5C4aeT42DjxEfp7u4c3LzxOYSfmvzAngjvBsCqAdU_2BTPicUoW4hsIs0wyx5D8AQxgSXNNm9EMyL2M4NV8uEfJX1hE2zCQN6DEgxs4U5emC_2BcGFKCmRKshBbuIKSLdmJ4twarJh5uZHLoCpuNlMNBY6tBTaPRubMWtTbGmdSO0SHdkDVx85bNCWHgm0RkDpa9eckKbd3Cd2DM9mYxNDyJqS4S3ATZ0N8k0nj4CXUXZZqfrK2h4y8f1LrRlip7V_2FvcTTRVOo0L6KHUCUSycZp3cfU6YLNIkMw6Jcgn
ec2-54-216-221-233.eu-west-1.compute.amazonaws.comNPYjwU_3D-e4c4b6a8709df63b46bf0f937c4a51d6.json

ec2-54-216-221-233.eu-west-1.compute.amazonaws.com Compiled Resource:
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com ------------------
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com # Declared in
c:/chef/cache/cookbooks/maindb-econ/recipes/create.rb:34:in `from_file’
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com
ec2-54-216-221-233.eu-west-1.compute.amazonaws.comwindows_zipfile(“c:/chef/cache/dbdump”)
do
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com action [:unzip]
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com retries 0
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com retry_delay 2
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com cookbook_name
"maindb-econ"
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com recipe_name "create"
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com source "
https://xxx.s3.amazonaws.com/app/default/dbdump.zip?AWSAccessKeyId=xxxxxx&Expires=1375091912&Signature=X7zU3NddB3fweJyKd6QzhMMVACI%3D&x-amz-security-token=A
ec2-54-216-221-233.eu-west-1.compute.amazonaws.comQoDYXdzEFoaoAI71MttYRnBCR51UPZfpcS1yeTAdd1U796XfJeVSzPEGEr0FSXEDtv%2FhOwZ8F%2BXmVZoHtrjQ46MbOv5TdeEwkUhXA%2FDHkKMP5C4aeT42DjxEfp7u4c3LzxOYSfmvzAngjvBsCqAdU%2BTPicUoW4hsIs0wyx5D8AQxgSXNNm9EMyL2M4NV8uEfJX1hE2zCQN6DEgxs4U5emC%2BcGFKCmRKshBbuIKSLdmJ4twarJh5uZHLoCpuNlMNBY6tBTaPRubMWtTbGmdSO0SHdkDVx85bNCWHgm0RkDpa9eckKbd3Cd2DM9mYxNDyJqS4S3ATZ0N8k0nj4CXUXZZqfrK2h4y8f1LrRlip7V%2FvcTTRVOo0L6KHUCUSycZp3cfU6YLNIkMw6JcgnNPYjwU%3D"
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com path
"c:/chef/cache/dbdump"
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com not_if { #code block }
ec2-54-216-221-233.eu-west-1.compute.amazonaws.com end

It looks like the metadata filename becomes too long…

I couldn’t find a bug report for this, so created
http://tickets.opscode.com/browse/CHEF-4422

/Jeppe