Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] [api] issueGetLabels dont return correct responce #11238

Closed
6543 opened this issue Apr 28, 2020 · 1 comment · Fixed by #11242
Closed

[bug] [api] issueGetLabels dont return correct responce #11238

6543 opened this issue Apr 28, 2020 · 1 comment · Fixed by #11242
Labels
Milestone

Comments

@6543
Copy link
Member

6543 commented Apr 28, 2020

Gitea Version: 1.12.0+dev-243-g63c7b4e63

issueGetLabels (PUT /repos/{owner}/{repo}/issues/{index}/labels) return lables with empty propertys

get:

[
  {
    "id": 312,
    "name": "",
    "color": "",
    "description": "",
    "url": ""
  }
]

expect:

[
  {
    "id": 312,
    "name": "blau",
    "color": "0052cc",
    "description": "",
    "url": ""
  }
]
@6543 6543 changed the title [bug] [api] [bug] [api] issueGetLabels dont return correct responce Apr 28, 2020
@6543
Copy link
Member Author

6543 commented Apr 28, 2020

this bug clear the repo_id & org_id of an lable!

so it will cause a useles lable and a corrupt database -> check case for #11111

@lafriks lafriks added this to the 1.12.0 milestone Apr 29, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants