Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if bidder exists before making request object #2695

Merged
merged 4 commits into from
Jun 22, 2018

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

To fix the issue #2677

Currently when an invalid/unknown bidder is used in an auction, a request object is still made for that bidder. When the auction is running, it will recognize the bidder wasn't real and would return an error. But the done related code used latter in the auction would still try to wait for that bidder's request to respond causing the auction to wait for the timeout.

This fix performs the check to validate the bidder earlier, and if the bidder is rejected then the request object doesn't get made. This streamlines the latter logic to only wait for bidders that are real/registered.

@robertrmartinez
Copy link
Collaborator

@jsnellbaker Pulled this branch and confirmed it fixes #2677.

Thanks!

Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM but why do we have 2 places we are checking this / giving an error message:
https://github.com/prebid/Prebid.js/blob/master/src/adaptermanager.js#L352

@jsnellbaker
Copy link
Collaborator Author

@mkendall07 I removed the redundant check in the callBids function.

@jsnellbaker jsnellbaker added needs 2nd review Core module updates require two approvals from the core team and removed needs review labels Jun 18, 2018
@jaiminpanchal27 jaiminpanchal27 added LGTM and removed needs 2nd review Core module updates require two approvals from the core team labels Jun 18, 2018
@harpere
Copy link
Collaborator

harpere commented Jun 20, 2018

@jsnellbaker this has conflicts that need to be resolved.

@jsnellbaker
Copy link
Collaborator Author

@harpere the conflict should be resolved now.

@harpere harpere merged commit 5c08569 into master Jun 22, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* check if bidder exists before making request object

* remove redundant check
@jsnellbaker jsnellbaker deleted the invalid_bidder_rework branch August 17, 2018 15:14
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
* check if bidder exists before making request object

* remove redundant check
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
* check if bidder exists before making request object

* remove redundant check
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* check if bidder exists before making request object

* remove redundant check
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* check if bidder exists before making request object

* remove redundant check
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* check if bidder exists before making request object

* remove redundant check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants