Skip to content

data.harbor_project broke with 3.11.6+ and Harbor 2.13 #636

Description

@hcsaustrup

Describe the bug
Something broken between 3.11.5 and 3.11.6, causing data.harbor_project to fail. Harbor version is 2.13.0 - not current, but should still be supported. Latest provider version has same issue.

  ╷
  │ Error: unexpected end of JSON input
  │
  │   with module.tenants3.module.repository_finalize["redacted"].data.harbor_project.this,
  │   on modules/tenants3/modules/repository-finalize/main.tf line 37, in data "harbor_project" "this":
  │   37: data "harbor_project" "this" {
  │
  ╵

To Reproduce

data "harbor_project" "this" {
  name = "project-that-exists"
}

Expected behavior
Expected Harbor project data to be pulled from Harbor without issues, like it did in version 3.11.5.

  • Provider Version: 3.11.6
  • Terraform Version: OpenTofu v1.11.6
  • Harbor Version: 2.13.0-debian-12-r3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions