"Add labels to an issue" API doesn't work on v4.39.0 · Issue #3432 · gitbucket/gitbucket · GitHub
Skip to content

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

Open

Description

@SIkebe

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"]}'

Activity

  1. added this to the 4.41.0 milestone on Nov 26, 2023
  2. takezoe commented on Nov 28, 2023

    @takezoe
    Member

    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"]}'
    
  3. modified the milestones: 4.41.0, 4.42.0 on May 18, 2024
  4. takezoe commented on May 18, 2024

    @takezoe
    Member

    @SIkebe Any thoughts?

  5. removed this from the 4.42.0 milestone on Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIv3GitHub compatible APIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions