You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affects APIs with a google.protobuf.Timestamp field on a GET request.
When grpc-gateway parses the timestamp query parameter it does return an error for dates in the year 0. This is inconsistent with the behavior described in the well known type test and with the behavior implemented in protojson.
🐛 Bug Report
Affects APIs with a
google.protobuf.Timestamp
field on a GET request.When
grpc-gateway
parses the timestamp query parameter it does return an error for dates in the year 0. This is inconsistent with the behavior described in the well known type test and with the behavior implemented in protojson.Parsing of the timestamp field is done here
I am happy to submit a fix and include tests for min/max timestamp if this bug is considered an issue.
Seen in
v2.19.1
To Reproduce
google.protobug.Timestamp
as a field on a GET request0000-01-01T00%3A00%3A00.00Z
Expected behavior
Should return a 400 Bad Request error
Actual Behavior
Request is accepted
Your Environment
N/A
The text was updated successfully, but these errors were encountered: