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

[HLC Track1] The integration cases related to user agents failed due to tough-cookie upgrade #1516

Closed
MaryGao opened this issue Aug 26, 2022 · 4 comments
Assignees

Comments

@MaryGao
Copy link
Contributor

MaryGao commented Aug 26, 2022

After the upgrading tough-cookie of the sub-dependency of core-http our test cases failed. More discussion could be found here. We'd like to investigate if we still need these cases and if yes we'll lock the version in our project to workaround.

Our test cases failed with below message link here:

13) Integration tests for User Agents
       should send correct user agent string with custom string for core v1:
     Error: Cookie has domain set to the public suffix "localhost" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.
      at Object.getPublicSuffix (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/tough-cookie@4.1.0/node_modules/tough-cookie/lib/pubsuffix-psl.js:62:11)
      at permuteDomain (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/tough-cookie@4.1.0/node_modules/tough-cookie/lib/permuteDomain.js:38:28)
      at MemoryCookieStore.findCookies (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/tough-cookie@4.1.0/node_modules/tough-cookie/lib/memstore.js:99:21)
      at MemoryCookieStore.findCookies (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/universalify@0.2.0/node_modules/universalify/index.js:5:67)
      at CookieJar.getCookies (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/tough-cookie@4.1.0/node_modules/tough-cookie/lib/cookie.js:1407:11)
      at CookieJar.getCookies (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/universalify@0.2.0/node_modules/universalify/index.js:5:67)
      at CookieJar.getCookieString (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/tough-cookie@4.1.0/node_modules/tough-cookie/lib/cookie.js:1452:21)
      at CookieJar.getCookieString (/Users/runner/work/1/s/common/temp/node_modules/.pnpm/universalify@0.2.0/node_modules/universalify/index.js:5:67)
      at /Users/runner/work/1/s/common/temp/node_modules/.pnpm/@azure+core-http@1.2.6/node_modules/@azure/core-http/src/nodeFetchHttpClient.ts:95:25
      
@MaryGao
Copy link
Contributor Author

MaryGao commented Aug 30, 2022

After we upgraded to the latest one the issue fixed.

@joheredi Do you think we still need these test cases? According to Jeff's comment How do you think?

Really having support for cookies in core is degenerate, we don't actually want to do this for any service calls ever.

@joheredi
Copy link
Member

We need to keep supporting cookies, at least on our tests because that's the way test server tracks the scenario. Are all tests using cookies failing?

@MaryGao
Copy link
Contributor Author

MaryGao commented Oct 9, 2022

Thanks for the update! No currently the test cases passed and relevant issue resolved.

@MaryGao
Copy link
Contributor Author

MaryGao commented Oct 9, 2022

Issue resolved after upgrading to the latest tough-cookie

@MaryGao MaryGao closed this as completed Oct 9, 2022
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

No branches or pull requests

3 participants