Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9946

Closed
Open
Created Jan 04, 2016 by Administrator@rootOwner

Could not download archive via api v3 since 8.3.2 CE

Created by: tritumRz

After updating to 8.3.2 CE (from 8.3.1 CE via omnibus package) a api call like

curl --header "PRIVATE-TOKEN: xxx" "https://code.example.com/api/v3/projects/some_namespace%2Fsome_reponame/repository/archive.zip"   

results in a json response like

{
    "RepoPath":"/var/opt/gitlab/git-data/repositories/some_namespace/some_reponame.git",
    "ArchivePrefix":"some_reponame-master-ee753b221e500f0d83e3ab422887339c6258df4a",
    "ArchivePath":"/var/opt/gitlab/gitlab-rails/shared/cache/archive/some_reponame.git/some_reponame-master-ee753b221e500f0d83e3ab422887339c6258df4a.zip",
    "CommitId":"ee753b221e500f0d83e3ab422887339c6258df4a"
}

With Version 8.3.1 CE such a call returned the zip data (as expected). I tested the same call with another installation (version 8.0.5 CE) and i got the zip data (as expected). After updating this installation to 8.3.2 CE i got the json response (like above). The archive path /var/opt/gitlab/gitlab-rails/shared/cache/archive/some_reponame.git/ stay empty. The documentation shows no changes in the API call. Can someone reproduce my issue?

Thank you.

Assignee
Assign to
Time tracking