-
Notifications
You must be signed in to change notification settings - Fork 615
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
CloudEventMessageBuilder creates URI with surrounding quotes #1089
Comments
I m not sure i follow.
and results is Can you please clarify or provide. way to reproduce? |
@olegz If I remember correctly the problem was, that Spring created the header URI.create("\"/foo/bar\""); on the client consumer side. I'd have te reproduce the issue again on our side. The fix on our side added a test like val message = CloudEventMessageBuilder
.withData(Instant.now())
//.setSource("/foo")
.setHeader(CloudEventMessageUtils.SOURCE, "/foo")
.build(CloudEventMessageUtils.KAFKA_ATTR_PREFIX)
assertThat(message.headers)
.containsEntry("ce_source", "/foo") as well. |
Currently we're migrating some of our messages to Cloud Events. If we use
the resulting message apparently has a header
ce_source="/my/source"
and other clients which validate the incoming messages fail with"/my/source"
not being a valid URI.If I just set the header myself using
.setHeader(CloudEventMessageUtils.SOURCE, "/my/source")
everything seems fine.The text was updated successfully, but these errors were encountered: