Tw 6413 java sdk fix git reported issue 337 by googsvg · Pull Request #338 · nylas/nylas-java · GitHub
Skip to content

Tw 6413 java sdk fix git reported issue 337 - #338

Merged
googsvg merged 3 commits into
mainfrom
TW-6413-java-sdk-fix-git-reported-issue-337
Aug 18, 2026
Merged

googsvg merged 3 commits into
mainfrom
TW-6413-java-sdk-fix-git-reported-issue-337

Conversation

@googsvg

@googsvg googsvg commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #337.

The API parses attendees (events) and any_email (messages/threads/drafts) as a
single comma-delimited string, but the SDK sent them as repeated params
(attendees=a&attendees=b). The API keeps only the last value, so filtering on
multiple values silently returned wrong, order-dependent results.

Fixed by comma-joining in NylasClient.addQueryParams, gated on those two param
names. event_type is excluded — the API genuinely supports repeating it.

Backward compatible. No signature changes; attendees and anyEmail stay
List<String>. null, empty, single-element, and already-comma-joined values all
produce the same request as before. Only the multi-value case changes, and it was
already broken.

Also: KDoc now says to pass one address per entry and notes that multiple attendees
match with AND. Changelog updated.

Tests: 7 new cases in NylasClientTest.QueryParamSerializationTests capturing the
real outgoing URL. Full suite 536 passing, lint clean.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@codecov-commenter

codecov-commenter commented Aug 12, 2026

Copy link
Copy Markdown

@googsvg
googsvg merged commit 6b29bb3 into main Aug 18, 2026
6 checks passed
@googsvg
googsvg deleted the TW-6413-java-sdk-fix-git-reported-issue-337 branch August 18, 2026 12:33
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.

attendees (and similar fields) serialized as repeated query params, but API expects comma-delimited string — silently wrong, order-dependent results

3 participants