[go: up one dir, main page]

Skip to content

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.

!181306 (comment 2351833064)

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 🤖