Skip to content

Malformed URLs in the API git/commits end point for trees #7564

Closed
@richmahn

Description

@richmahn

In 1.9-rc2 (and 1.10-dev):

In a the response for the http://locahost:3000/api/v1/repos/<owner>/<repo>/git/commits/<hash> there are a bad URLs, one for the HTML Url, the other for the trees URL. Example:

{
  ...
  "html_url": "http://localhost:3000/testuser/testrepo/commits/6691301cf8fb73e57206ea5430003dd296764111",
  ...
  "tree": {
      "url": "http://localhost:3000/api/v1/repos/testuser/testrepo/trees/6691301cf8fb73e57206ea5430003dd296764111",
      "sha": "6691301cf8fb73e57206ea5430003dd296764111"
    }
  ...
}

It should be commit and not commits, /git/treesnot just/trees`, respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions