ITADN

Native value conversion for Protobuf Timestamp has surprising behavior with v0.11.1

#890Opentimostamm 创建于 2025-12-10
T
timostammcommented
When a Protobuf message is evaluated, a `google.protobuf.Timestamp` field outside of the valid ranges raises an IllegalArgumentException. The behavior is logical, but how can users determine that a Protobuf message is safe to evaluate? An invalid Timestamp serializes and parses without error, and I don't believe that there is an API to validate that a message contains only conforming Timestamp values in any OSS Protobuf implementation. https://github.com/google/cel-java/pull/820 adds a deprecation notice to the `evaluateCanonicalTypesToNativeValues` option with a note that the option will be removed. Are there perhaps any plans to consolidate the behavior between Protobuf implementations and CEL?
0 条评论