-
Notifications
You must be signed in to change notification settings - Fork 218
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
v1.5.0 breaking change: invalid value for string type: null #664
Comments
Thanks @hurrycaner , do you remember which version you were running before |
This seems like it may be the underlying issue: golang/protobuf#1361 Looks like protobuf hasn't released a new release with the fix since its has been superseded by https://pkg.go.dev/google.golang.org/protobuf the README. I'll try upgrading to the new package and add a test to check the fix |
Hello @markphelps! on |
Thanks @mfbmina ! It seems the regression was introduced in #594 when I upgraded grpc-gateway to v2. Theres an issue on the grpc-gateway project here: grpc-ecosystem/grpc-gateway#2481 It seems like there are two options:
I'd prefer to go with option 2 if its simple enough, but I'll have to try it later this afternoon |
@hurrycaner if this is blocking you I'd recommend either:
|
I believe that option 3 will break https://semver.org/. Another option could be releasing two new versions:
What do you think? |
@mfbmina while you are correct that 1.5.0 did technically break semver because it introduced a breaking change to the public API it did so unintentionally so I'd prefer not to increment the major version once the fix is in. Semver actually has a section in the FAQ discussing what to do this in this situation:
Also I don't think passing a |
Sounds good enough! |
Thanks @markphelps |
I'm going to open an issue to talk about Flipt v2 API, because there are some breaking changes that have been requested in the past, I just gotta dig them up and link them. There's also some breaking changes for the configuration file that I'd like to make as well, such as those likely required for #633 and #576 Then we could make the proper fix (to not handle nulls) in v2 since according to grpc-ecosystem/grpc-gateway#2481 they arent valid in proto and reference this issue and update the open API docs as well. |
* WIP reproduce: code:3 - proto: (line 1:102): invalid value for string type: null #664 * pipefail smh * Replace github.com/golang/protobuf with google.golang.org/protobuf * just eo pipefail * fix shakedown trap * got failing test * move around * Add v1toV2MarshallerAdapter to fix backwards compatability issue * Update Changelog * Dont need to suffix here
@hurrycaner @mfbmina This should now be fixed in v1.5.1 See here for changes Thanks again for the bug report! |
* Fix: code:3 - proto: (line 1:102): invalid value for string null (#665) * WIP reproduce: code:3 - proto: (line 1:102): invalid value for string type: null #664 * pipefail smh * Replace github.com/golang/protobuf with google.golang.org/protobuf * just eo pipefail * fix shakedown trap * got failing test * move around * Add v1toV2MarshallerAdapter to fix backwards compatability issue * Update Changelog * Dont need to suffix here * Use node 16 * Oops forgot print body * RM this for now until come up with a better solution * Fix changelog
Describe the bug
When i send this request to flipt
/api/v1/evaluate
:I'm getting the following response body as status 400:
This is a bug because this does break the default behavior and was not documented in changelog.
Version Info
version 1.5.0 as docker image.
To Reproduce
The steps are well written in the description
Expected behavior
The response should be status 200, with body similar to this:
The text was updated successfully, but these errors were encountered: