Skip to content
Snippets Groups Projects

Branch name must be URL encoded

All threads resolved!

What does this MR do and why?

For the API to Get single repository branch, the name of the branch may have to be url encoded.

Screenshots or screen recordings

N/A.

How to set up and validate locally

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches/bug/mybugfix" gives this errorL {"error":"404 Not Found"} but curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches/bug%2Fmybugfix" works.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Georges M. Zwingelstein

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading