Skip to content

Fix broken CI due to token string not trimmed#565

Merged
BewareMyPower merged 1 commit intoapache:mainfrom
BewareMyPower:bewaremypower/fix-flaky-tests
Apr 2, 2026
Merged

Fix broken CI due to token string not trimmed#565
BewareMyPower merged 1 commit intoapache:mainfrom
BewareMyPower:bewaremypower/fix-flaky-tests

Conversation

@BewareMyPower
Copy link
Copy Markdown
Contributor

Fixes #564

Motivation

This breaking change is introduced by apache/pulsar#25043, after upgrading jjwt to 0.13.0, JwtParser#parseClaimsJws on a token with newline at the end will fail with io.jsonwebtoken.MalformedJwtException: Compact JWT strings may not contain whitespace.

Modifications

Trim the spaces of the token returned by getToken().

@BewareMyPower BewareMyPower added this to the 4.2.0 milestone Apr 2, 2026
@BewareMyPower BewareMyPower merged commit e5afb63 into apache:main Apr 2, 2026
14 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-flaky-tests branch April 2, 2026 09:41
daeho-ro pushed a commit to daeho-ro/pulsar-client-cpp that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] CI is broken after Pulsar 4.2.0

2 participants