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

Labels API does not work #6047

Closed
2 of 6 tasks
rayitopy opened this issue Feb 12, 2019 · 5 comments
Closed
2 of 6 tasks

Labels API does not work #6047

rayitopy opened this issue Feb 12, 2019 · 5 comments
Labels
Milestone

Comments

@rayitopy
Copy link

  • Gitea version (or commit ref): Go1.11.5
  • Database (use [x]):
    • [] PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

The labels endpoints are not working as expected
GET /repos/{owner}/{repo}/issues/{index}/labels
Always return an epmty array
POST, PUT, DELETE /repos/{owner}/{repo}/issues/{index}/labels
Always returns a 401 status code, but I correctly setted the credentials

@Larivact
Copy link

@adelowo
Copy link
Member

adelowo commented Feb 13, 2019

Yes, there is actually a bug with fetching labels of an issue. I have sent PR #6053 for that

I cannot replicate the 401 as it goes through on my end here.
Can I see how you are authorizing the request?

@rayitopy
Copy link
Author

I was using basic authorization header in the swagger UI, with token authentication seems to work.
Maybe I'm misspelling the password or something. 🤷‍♂️

@adelowo
Copy link
Member

adelowo commented Feb 13, 2019

@rayitopy I will guess it's your password that is wrong:). Since #6053 has been merged, is there any more thing to do on this issue?

@techknowlogick
Copy link
Member

closing as resolved. please re-open if needed.

@techknowlogick techknowlogick added this to the 1.8.0 milestone Feb 13, 2019
@lafriks lafriks modified the milestones: 1.8.0, 1.7.2 Feb 13, 2019
@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

No branches or pull requests

5 participants