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(public-api): Fix error updating workflow with property not defined in the schema #4089

Merged

Conversation

mieky
Copy link
Member

@mieky mieky commented Sep 13, 2022

As an interim fix before we have schema validation in place, this should fix any unexpected API crashes trying to update a workflow with malformed contents, and return a HTTP 400 instead. Workflow creation isn't affected.

More details on the Linear issue.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Sep 13, 2022
@mieky mieky force-pushed the n8n-4595-public-api-crashes-when-updating-workflow branch from 4bc1e39 to bfa8165 Compare September 13, 2022 12:28
@RicardoE105 RicardoE105 changed the title fix(cli): catch errors on updating workflow fix(public-api): Fix error updating workflow with property not defined in the schema Sep 14, 2022
@RicardoE105 RicardoE105 merged commit f40ae50 into master Sep 14, 2022
@RicardoE105 RicardoE105 deleted the n8n-4595-public-api-crashes-when-updating-workflow branch September 14, 2022 15:40
@n8n-assistant n8n-assistant bot added the Upcoming Release Will be part of the upcoming release label Sep 14, 2022
@janober
Copy link
Member

janober commented Sep 15, 2022

Got released with n8n@0.194.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Sep 15, 2022
valya pushed a commit to valya/n8n that referenced this pull request Nov 8, 2022
…d in the schema (n8n-io#4089)

* fix(cli): catch errors on updating workflow

* ⚡ Don\'t allow additionalProperties in the workflow schema

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants