Repository navigation
Tags
Tags
feat(voice): CPS tracking on create call and started webhook (DEVX-11… …542, DEVX-11549) (#632) * feat(voice): add return_cps_on_started to create call request Adds Call.Builder#returnCpsOnStarted so callers can request CPS usage and limit data in the started event webhook. Omitted from the request unless set. DEVX-11542 * feat(voice): add CPS fields to started event webhook Adds cps_region_usage, cps_global_usage and cps_limit to EventWebhook. Present only on started events when return_cps_on_started is true. DEVX-11549 * chore(deps): bump Jackson from 2.22.0 to 2.22.2 Fixes jackson-databind advisories GHSA-q4xh-88c3-wmh7 (high), GHSA-gx83-3vf8-gh7j, GHSA-wjgm-6hv5-3cvf, GHSA-vvgp-rfg2-7rr6, GHSA-5gvw-p9qm-jgwh and GHSA-5jmj-h7xm-6q6v. * Bump to 9.15.0 for release
Feature/devx 11567 signature algo (#630) * feat: add public verifyRequestSignature overload accepting HashType The only publicly accessible RequestSigning.verifyRequestSignature overload was hardcoded to HashType.MD5, and the algorithm-aware overload was package-private. Callers outside com.vonage.client.auth therefore could not verify callbacks signed with HMAC_SHA256 (or SHA1/HMAC_MD5/SHA512), despite HashUtil already supporting them. Adds a public overload taking a HashType. Existing overloads are untouched and still default to MD5, so this is additive only. DEVX-11567 * chore: bump version to 9.14.0 Additive public API addition (RequestSigning.verifyRequestSignature overload accepting HashType) requires a MINOR bump under SemVer. Ran the equivalent of bumpversion.sh: mvn versions:set followed by mvn validate, which propagates the version into HttpWrapper's CLIENT_VERSION and the README install snippets. DEVX-11567 * test: pin DynamicEndpointTest to a single thread DynamicEndpointTest shares one static HttpWrapper across all test methods, and junit-platform.properties sets parallel.mode.default = concurrent. The methods stub responses on that shared instance and then execute against it, so run concurrently they consume each other's stubs: testBinaryRequest expected "OK" but got the URI stubbed by testRedirectHandling, and testRedirectHandling saw an empty response. Reproduced on an unmodified checkout: 5/5 failures with parallelism enabled, 5/5 passes with parallel.enabled=false. CI does not catch this because JUnit sizes its thread pool from availableProcessors, and the 2-4 vCPU hosted runners effectively serialise the class. The race is latent there, not absent. Applies the same annotation ConversationsClientTest already uses for this reason. DEVX-11567 * test: prevent zero bound in ConversationsClientTest random IDs EVENT_ID drew from [0,100), so roughly 1 run in 100 produced 0. The two dependent draws then threw IllegalArgumentException: bound must be positive - nextInt(0) and nextInt(0, 0) - inside the static initialiser. That surfaced as NoClassDefFoundError across every test extending AbstractEventTest, failing ~120 tests in the conversations package at once. Drawing from [1,100) makes the failure impossible by construction: for any EVENT_ID >= 1, nextInt(EVENT_ID) has a positive bound and EVENT_ID < EVENT_ID * 12 holds. The intended ordering EVENT_START_ID < EVENT_ID <= EVENT_END_ID is preserved. DEVX-11567
Devx 11561 trusted recipient sms fix (#629) * fix(messages): [DEVX-11561] Serialize SMS trusted_recipient at top level * docs(changelog): [DEVX-11561] Record SMS trusted_recipient fix as 9.13.1 patch * chore(release): [DEVX-11561] Bump version to 9.13.1 * chore(deps): [DEVX-11561] Pin jackson-core to 2.22.0
fix: Keep alive issue with HttpURLConnection (#616) * fix: Keep alive issue with HttpURLConnection * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
PreviousNext