-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix grpc transcoding bugs for unknown fields #797
Fix grpc transcoding bugs for unknown fields #797
Conversation
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
Please review this change |
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (but see if we can add a t test)
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
@@ -481,6 +486,27 @@ types { | |||
} | |||
syntax: SYNTAX_PROTO3 | |||
} | |||
types { | |||
name: "endpoints.examples.bookstore.UnknownBook" | |||
fields { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I manually deleted "unknown" field and "UknownMsg" from the service config.
my $response1 = ApiManager::http_get($NginxPort,'/unknownbook?key=this-is-an-api-key'); | ||
|
||
# With bug in https://github.com/cloudendpoints/esp/issues/795, the first field | ||
# after the uknown is discarded. Once the bug is fixed, use follow correct result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the fix, the first field "known_int" is discarded. With the fix, all fields are there
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
Signed-off-by: Wayne Zhang qiwzhang@google.com
Fixes #795.
It is based on #796