aws / aws/aws-toolkit-azure-devops

S3 Download error Conflicting file exists

Open
#480 1 comment 0 reactions 0 assignees View on GitHub
bug pending-release
Dominant language
TypeScript
Stars
258
Forks
114
PR merge metrics
No merged PRs in 30d

Description

**S3 Download error on hosted azure DevOps with windows agent**

I have nested directories in s3 bucket, the task creates the top level directory as a 0 byte file, when the task continue to download a file under that directory it fails with: Unable to create directory '`D:\CD\1\templates\dev\-1\Email`'. Conflicting file exists: '`D:\CD\1\templates\dev`'.
Overwrite flag is set to true.

**To reproduce**

Steps to reproduce the behavior:
1. Create s3 bucket with files in nested directories like `dev\-1\Email\en-us.txt`
2. Create a pipeline with latest S3 Download task v1.13.0 with windows agent version 2.153.1 to download all the bucket to the agent default working directory.

**Expected behavior**

A Successful step with the bucket contents on the destination directory.

**Your Environment**

- On-prem
- Azure DevOps version: Dev17.M153.3
- AWS Toolkit for Azure DevOps version: 1.13.0

Contributor guide

Open the contributing guide

Research direction

Start with the S3 Download task at version 1.13.0 and reproduce the failure on a Windows agent using nested bucket paths such as dev\\-1\\Email\\en-us.txt. Verify the task does not create a conflicting zero-byte file and that the pipeline completes with all bucket contents in the destination directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, azure
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.