-
Notifications
You must be signed in to change notification settings - Fork 69
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
Protobuf does not check imported types #626
Comments
@tvainika |
I see no missing type there. |
does not import
With correct import statement it is valid usng built-in known types.
as this is valid and has an import statement. Also my comment about compatiblity check seems to be mostly triggered with comment changes, but not always. Need to investigate it more in detail. |
And here is ready made test case that triggers 500 internal server error with only comment updated
|
Hard-coded known types do not have message element linked similar to user defined messages. Handle comparing of those fields without internal errors from exceptions. Fixes #626
What happened?
Protobuf does not check all types and imports. E.g. following invalid schema can be registered.
Another case is where import is valid, but is not checked. Then compatibility check fails with internal errors due not checking types when registering another schema, and compatibility checker tries to check compatibility between the schemas.
What did you expect to happen?
Schema registry produces error message about missing type.
What else do we need to know?
Tested 3.4.6 & 3.5.0
The text was updated successfully, but these errors were encountered: