You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What actually happened, including error codes if applies.
Steps to Reproduce:
Create a new repo.
use lakectl to create branch protection rule: lakectl branch-protect add lakefs://test main
You'll get a 400 bad response result. It works from the UI.
If a branch protection rules exist prior to the operation, then lakectl branch protection rule creation works.
Root Cause: lakectl first tries to fetch the rules and then uses Etag (checksum) for an atomic update. If no rule exists, then the value is an empty string which is forbidden. The Swagger API declares allowEmptyValue: true which is misleading. It allows for the header If-Match with no value, not an empty string value.
Expected behavior
The command should create a branch protection rule successfuly.
lakeFS version
latest
How lakeFS is installed
all
Affected clients
lakectl
Relevant log output
No response
Contact details
No response
The text was updated successfully, but these errors were encountered:
What happened?
What actually happened, including error codes if applies.
Steps to Reproduce:
lakectl branch-protect add lakefs://test main
You'll get a 400 bad response result. It works from the UI.
If a branch protection rules exist prior to the operation, then lakectl branch protection rule creation works.
Root Cause: lakectl first tries to fetch the rules and then uses Etag (checksum) for an atomic update. If no rule exists, then the value is an empty string which is forbidden. The Swagger API declares
allowEmptyValue: true
which is misleading. It allows for the headerIf-Match
with no value, not an empty string value.Expected behavior
The command should create a branch protection rule successfuly.
lakeFS version
latest
How lakeFS is installed
all
Affected clients
lakectl
Relevant log output
No response
Contact details
No response
The text was updated successfully, but these errors were encountered: