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

fix(core): Apply correct hostname to redirected requests #8674

Merged

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Feb 20, 2024

Summary

Broken in #8562

servername set on the httpsAgent was also being used for redirected requests. When redirected to another domain this breaks. This PR updates the Agent.servername when redirected.

workflow test added here: n8n-io/test-workflows#263

Related tickets and issues

https://linear.app/n8n/issue/NODE-1149/recent-change-to-host-header-breaks-redirect-downloads
fixes #8668
https://community.n8n.io/t/ignore-ssl-setting-isnt-working-error-ssl-issue-consider-using-the-ignore-ssl-issues-option/40492

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@elsmr elsmr requested a review from netroy February 20, 2024 10:19
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Feb 20, 2024
@elsmr elsmr requested a review from netroy February 20, 2024 11:56
Copy link

cypress bot commented Feb 20, 2024

2 flaky tests on run #4150 ↗︎

0 339 12 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: 9d74f254a1
Status: Passed Duration: 03:43 💡
Started: Feb 20, 2024 12:09 PM Ended: Feb 20, 2024 12:13 PM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #8674 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit 0e36aeb into master Feb 20, 2024
28 checks passed
@elsmr elsmr deleted the node-1149-recent-change-to-host-header-breaks-redirect-downloads branch February 20, 2024 12:23
@github-actions github-actions bot mentioned this pull request Feb 21, 2024
@janober
Copy link
Member

janober commented Feb 21, 2024

Got released with n8n@1.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OneDrive Node SSL Error
3 participants