Skip to content

[Bug]: Boolean dryRun flag in /history/merge API endpoint resorts to using isDryRun instead. #12130

@anjshrg

Description

@anjshrg

What happened

curl --location 'http://localhost:19120/api/v2/trees/main@<hash>/history/merge' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
  "fromRefName": "<branch-name>",
  "message": "this is dry run",
  "fromHash": "<hash>",
  "dryRun": true,
  "fetchAdditionalInfo": true,
  "returnConflictAsResult": true
}'

Above payload is constructed based on the nessie-spec.yml
Currently it ignores the boolean flags because backend resorts to using isDryRun, isFetchAdditonalInfo, isReturnConflictAsResult instead

How to reproduce it

  1. Use above payload
  2. pass dryRun flag as true
  3. It will ignore the flag and execute merge op

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

helm deployed on k8s

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

API on 0.103.3 - but the error persists in latest version too

Additional information

No response

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