Skip to content

DEV-3374 Make GetMID safe on unset credentials - #270

Merged
TomK merged 2 commits into
masterfrom
DEV-3374-assemble-derive-completes-mid-correctly-for-v-1-and-v-2-connectors
Oct 16, 2026
Merged

TomK merged 2 commits into
masterfrom
DEV-3374-assemble-derive-completes-mid-correctly-for-v-1-and-v-2-connectors

Conversation

@Jemmings

@Jemmings Jemmings commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

A connector that names a configuration carries no credentials, and decoding none into a library's struct leaves every field unset. Six libraries dereferenced a pointer in GetMID and took the process down when assemble read the MID of a v2 connector; qualpay formatted an unset merchant id as "0", which anything that only ignores an empty value takes for a merchant id.

Those six check the pointer first, qualpay answers empty for an unset id, and a test sweeps every registered library with empty credentials.

A connector that names a configuration carries no credentials, and decoding none into a
library's struct leaves every field unset. Six libraries dereferenced a pointer in GetMID
and took the process down when assemble read the MID of a v4 connector; qualpay
formatted an unset merchant id as "0", which anything that only ignores an empty value
takes for a merchant id.

Those six check the pointer first, qualpay answers empty for an unset id, and a test
sweeps every registered library with empty credentials.
@TomK
TomK merged commit 57d1ce8 into master Oct 16, 2026
1 check passed
@TomK
TomK deleted the DEV-3374-assemble-derive-completes-mid-correctly-for-v-1-and-v-2-connectors branch October 16, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants