Get File Archive endpoint returns empty archive if exclude_paths param includes non existing path
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
This is a follow-up issue for the MR that introduced exclude_paths parameter to the Get File Archive endpoint.
Issue:
When a non existing path is provided
Example: http://gdk.test:3000/api/v4/projects/1/repository/archive.zip?exclude_paths=unknown
It generates the archive with zero size.
Possible solution
- Return an error when
exclude_paths
includes a non existing path. Generate the archive and ignore the non existing paths.
Edited by 🤖 GitLab Bot 🤖