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

[TripleLift] - Allow usersync redirect #1086

Merged
merged 91 commits into from
Oct 30, 2019
Merged

Conversation

tgeeting
Copy link
Contributor

@tgeeting tgeeting commented Oct 22, 2019

Addresses the concern raised in: #1038

  • TripleLift Usersync not redirecting with populated UserId
    cc: @Kevin-P-Kerr

@@ -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}}"))
Copy link
Contributor

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.

adapters/triplelift/triplelift_test.go Show resolved Hide resolved
@tgeeting
Copy link
Contributor Author

@SyntaxNode Updated the test

@@ -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"))
Copy link
Contributor

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%

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@SyntaxNode SyntaxNode merged commit a771ec8 into prebid:master Oct 30, 2019
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
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.

5 participants