-
Notifications
You must be signed in to change notification settings - Fork 758
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
[TripleLift] - Allow usersync redirect #1086
Conversation
…t-to-usersync TL-12297 - TripleLift - Add redirect to usersync
[October 2019] Pull Latest Version of prebid-server
Fix Supplier ID in Test JSON
adapters/triplelift/usersync_test.go
Outdated
@@ -8,11 +8,11 @@ import ( | |||
) | |||
|
|||
func TestTripleliftSyncer(t *testing.T) { | |||
temp := template.Must(template.New("sync-template").Parse("//eb2.3lift.com/sync?gdpr={{.GDPR}}&cmp_cs={{.GDPRConsent}}")) | |||
temp := template.Must(template.New("sync-template").Parse("//eb2.3lift.com/getuid?gdpr={{.GDPR}}&cmp_cs={{.GDPRConsent}}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend this test to include verification of the redirect URL templating.
Update UsersyncTest Template
@SyntaxNode Updated the test |
adapters/triplelift/usersync_test.go
Outdated
@@ -8,11 +8,11 @@ import ( | |||
) | |||
|
|||
func TestTripleliftSyncer(t *testing.T) { | |||
temp := template.Must(template.New("sync-template").Parse("//eb2.3lift.com/sync?gdpr={{.GDPR}}&cmp_cs={{.GDPRConsent}}")) | |||
temp := template.Must(template.New("sync-template").Parse("//eb2.3lift.com/getuid?gdpr={{.GDPR}}&cmp_cs={{.GDPRConsent}}&redir=https%3A%2F%2Feb2.3lift.com%2Fsync%3Fbidder%triplelift%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24UID")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the redirect URL has an incomplete escape character sequence. In this test, it is:
bidder%triplelift
.. and in the config it is ...
bidder%3Dtriplelift%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfilled extension should be ...%2Fsetuid%3Fbidder%3Dtriplelift%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24UID
in both test and config now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thank you. I'll ask @mansinahar to provide the second approval.
Adjust inconsistency with test and sync url
Addresses the concern raised in: #1038
cc: @Kevin-P-Kerr