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(Chat Trigger Node): Fix auth in "Embedded Chat" mode #10734

Merged

Conversation

OlegIvaniv
Copy link
Contributor

@OlegIvaniv OlegIvaniv commented Sep 9, 2024

Summary

This PR fixes an issue with Chat Trigger Node where the request wouldn't be adequately validated in "Embedded Chat" mode due to validation try/catch nested in nodeMode === 'hostedChat' guard

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link
Contributor

@jeanpaul jeanpaul left a comment

Choose a reason for hiding this comment

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

Tested it before and after applying the patch, seems to work as expected. Thanks for the quick fix!

Copy link
Contributor

github-actions bot commented Sep 9, 2024

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit 96db501 into master Sep 9, 2024
32 of 33 checks passed
@OlegIvaniv OlegIvaniv deleted the ai-335-basic-auth-on-chat-trigger-is-not-working branch September 9, 2024 15:33
Copy link

cypress bot commented Sep 10, 2024

n8n    Run #6790

Run Properties:  status check passed Passed #6790  •  git commit 96db501a61: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project n8n
Branch Review master
Run status status check passed Passed #6790
Run duration 05m 24s
Commit git commit 96db501a61: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Committer oleg
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 425
View all changes introduced in this branch ↗︎

MiloradFilipovic added a commit that referenced this pull request Sep 10, 2024
* master:
  feat(benchmark): New options for n8n benchmark (#10741)
  fix(Chat Trigger Node): Fix auth in "Embedded Chat" mode (#10734)
  fix(Webflow Node): Update scopes to include forms (#10554)
  test(editor): Add unit tests for `sanitizeHtml` (#10737)
  fix(editor): Fix xss issues in toast usages (#10733)
  fix(OpenAI Chat Model Node): Prevent filtering of fine-tuned models in model selector (#10662)
  feat: Filter parameter: Improve loose type validation for booleans (#10702)
  test: Add scaling n8n setup (multi-main) (#10644)
  refactor(editor): Migrate NodeWebhooks to Composition API (no-changelog) (#10710)
  fix(editor): Fix broken executions view (no-changelog) (#10714)
  fix(editor): Don't render pinned icon for disabled nodes (#10712)
@csuermann csuermann added the tests-needed This PR needs additional tests label Sep 10, 2024
@github-actions github-actions bot mentioned this pull request Sep 11, 2024
@Joffcom
Copy link
Member

Joffcom commented Sep 11, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released tests-needed This PR needs additional tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants