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

"Add labels to an issue" API doesn't work on v4.39.0 #3432

Open
SIkebe opened this issue Nov 24, 2023 · 2 comments
Open

"Add labels to an issue" API doesn't work on v4.39.0 #3432

SIkebe opened this issue Nov 24, 2023 · 2 comments
Labels
APIv3 GitHub compatible API bug
Milestone

Comments

@SIkebe
Copy link
Member

SIkebe commented Nov 24, 2023

Issue

Impacted version: 4.39.0

Deployment mode: standalone app

Problem description:
Add labels to an issue API works on GitBucket v4.38.4 but not on v4.39.0. A same request working on v4.38.4 returns just an empty array on v4.39.0.

Example of failed API request:

curl -L \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: token AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
  http://localhost:8080/api/v3/repos/root/demo/issues/2/labels \
  -d '{"labels":["bug","enhancement"]}'
@SIkebe SIkebe added the bug label Nov 24, 2023
@takezoe takezoe added the APIv3 GitHub compatible API label Nov 26, 2023
@takezoe takezoe added this to the 4.41.0 milestone Nov 26, 2023
@takezoe
Copy link
Member

takezoe commented Nov 28, 2023

Maybe this? #3226

Input JSON schema was wrong in 4.38.4 or before. I think this request didn't work on 4.38.4 but works on 4.39.0. 🤔

curl -L \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: token AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
  http://localhost:8080/api/v3/repos/root/demo/issues/2/labels \
  -d '{"labels":["bug","enhancement"]}'

@takezoe takezoe modified the milestones: 4.41.0, 4.42.0 May 18, 2024
@takezoe
Copy link
Member

takezoe commented May 18, 2024

@SIkebe Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIv3 GitHub compatible API bug
Development

No branches or pull requests

2 participants