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

[Bug]: v2 config/repository doesn't return the current configuration #9979

Open
paul-bormans-pcgw opened this issue Nov 22, 2024 · 1 comment

Comments

@paul-bormans-pcgw
Copy link

What happened

I'm trying to configure the default GC settings (for nessie-gc ultimately) using curl, posting works but get doesn't return the config.

What am i missing here?

How to reproduce it

curl -XPOST --header 'accept: application/json' --header 'Content-Type: application/json' --data '{"config":{"type":"GARBAGE_COLLECTOR","defaultCutoffPolicy":"PT48H","newFilesGracePeriod":"PT24H"}}' http://localhost:19120/api/v2/config/repository
{
  "previous" : {
    "type" : "GARBAGE_COLLECTOR",
    "defaultCutoffPolicy" : "PT48H",
    "newFilesGracePeriod" : "PT25H"
  }

And indeed i'm getting back the previously set configuration (tested with PT25H before).

However fetching the repository config using GET doesn't reveal anything?

curl -XGET --header 'accept: application/json' --header 'Content-Type: application/json' http://localhost:19120/api/v2/c
onfig/repository
{ }

Nessie server type (docker/uber-jar/built from source) and version

quay.io/projectnessie/nessie-cli:0.100.1

Client type (Ex: UI/Spark/pynessie ...) and version

curl

Additional information

No response

@dimas-b
Copy link
Member

dimas-b commented Nov 22, 2024

I believe the GET requires specifying a list of config types, you'd like to get: https://app.swaggerhub.com/apis/projectnessie/nessie/0.100.2#/v2/getRepositoryConfig

In this example: http://localhost:19120/api/v2/config/repository?type=GARBAGE_COLLECTOR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants