Skip to content

Floxis: validate bid impression against outbound request - #4676

Open
floxis-admin wants to merge 2 commits into
prebid:masterfrom
floxis-admin:codex/java-floxis-impid
Open

floxis-admin wants to merge 2 commits into
prebid:masterfrom
floxis-admin:codex/java-floxis-impid

Conversation

@floxis-admin

@floxis-admin floxis-admin commented Oct 17, 2026 •

Copy link
Copy Markdown

Type of change

  • Bugfix
  • Bid adapter update

Context

Floxis splits requests by seat and routing host. Bid parsing looked impressions up in the original request rather than the outgoing request that produced the response, so a response could return a bid for another group's impression. A supplied mtype also skipped the impression lookup entirely.

Change

Each response bid's impid is checked against the outgoing request's impressions (httpCall.getRequest().getPayload().getImp()) before its media type is resolved, including when mtype is set. Bids that fail the check return the existing bad_server_response error and are skipped; other bids in the same response are kept.

Only the Floxis adapter and its unit tests change.

Test plan

  • FloxisBidderTest (28 tests) and checkstyle pass.
  • Two new tests: an unknown impid with mtype set, and a bid for an impression that is in the original request but not in the outgoing one. Both fail against the current master adapter.

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.

1 participant