-
Notifications
You must be signed in to change notification settings - Fork 2
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] PUT http request not replacing/updating the entity #55
Comments
PATCH works
|
@shunr-hpe Is this true in CSM as well? |
@Masber Which storage backend are you running BSS with? Postgres or Etcd? |
Hi, I am deploying using deployment recipes quickstart (postgres) |
We think this is probably a Postgres-specific bug and will prioritize getting it looked at. Feel free to submit a PR if you think you know where this is happening, @Masber |
I am able to reproduce this. It looks like the |
Those commands worked with the CSM flavor of BSS
|
The issue is that the |
I also noticed that, when sending a PUT, BSS tries to PATCH instead. For example, when running:
the following appears in the BSS logs:
EDIT: Looks like that's just a copy-paste error. It's incorrect here but correct here. |
@Masber The linked PR above should fix the issue, and I tested it with your MWE above. Can you test to make sure it works on your end? |
Hi @synackd , thank you for this, I tested the following curl command:
And it is now working thank you |
Sounds good. Will request a review on that PR. |
Hi @Masber, I'd like to keep this open until the linked PR is merged, just so we can consider this complete once the changes get merged into main. |
Describe the bug
According to the API documentation, BSS bootparametes accepts PUT http requests to update entities but it fails when I try with the following error
{"type":"about:blank","title":"Bad Request","detail":"No data","status":400}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
According to the documentation, the PUT request should return a 200 code and update the bss bootparameter entity
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: