-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
do not allow to extend same field twice to prevent the error #1784
Conversation
@ThePlenkov Would it be possible to add a unit test for this case? Thank you! |
To test the case you need to but a breakpoint here: Line 278 in 62941d4
Then during Probably the root of the problem is deeper - and the descriptor set should be generated differently - but I have no expertise to comment on that. |
Actually I realized what happens - and is not even related to import. It's only about using fromDescriptor with extended fields. I've used a standard test.proto file for that |
@alexander-fenster hi! Did you have a change to look at unit tests for this problem may be? Thank you! |
Hi! May I ask please what's the reason of this change not going through? Thanks! |
Thanks for the fix @ThePlenkov 🙇 |
@alexander-fenster is there anything else blocking this PR review? It is responsible for fixing server reflection. |
Fixing the issue #1783
In the case if we have a call like this:
where decodedDescriptorSet constains files which have same field ( extension + original file ) like in my case validation.proto + google_protobuf.proto ( see the example from the referenced issue ).