Skip to content

'Repair Repository' button doesn't work on Bitbucket datacenter repos with blank spaces in their names #5821

@nati737

Description

@nati737

Component

web-ui, server

Describe the bug

For bitbucket datacenter repositories which have spaces in their display name (e.g. 'test repo'), the 'Repair Repository' button doesn't work. When pressed, an 'unknown error' message appears. In the server logs, I see 'error: unable to find repository with id:<remote_forge_id> message: get repo 'test-repo' from forge'.
After renaming the repo with a name that doesn't include spaces, the repair repository button works as expected.

Steps to reproduce

  1. Install woodpecker server version 3.12 and configure it to work with bitbucket datacenter.
  2. Create a repository in bitbucket with a blank space in the name
  3. Enable the repository in woodpecker
  4. Go to settings -> actions -> repair repo

Expected behavior

When clicking the repair repo button the action succeeds.

System Info

Woodpecker server version 3.12, run on rancher rke2, using postgres version 14.7, and bitbucket datacenter V8.19.5

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/versions]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingforge/bitbucketbitbucket forge related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions