-
-
Notifications
You must be signed in to change notification settings - Fork 689
Regression in Formidable v3, which can crash a server #958
Copy link
Copy link
Open
Labels
Area: streamsThings related to handling streams, and bugs around them.Things related to handling streams, and bugs around them.Priority: MediumThis issue may be useful, and needs some attention.This issue may be useful, and needs some attention.Status: AvailableNo one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.bug
Metadata
Metadata
Assignees
Labels
Area: streamsThings related to handling streams, and bugs around them.Things related to handling streams, and bugs around them.Priority: MediumThis issue may be useful, and needs some attention.This issue may be useful, and needs some attention.Status: AvailableNo one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.bug
Using Formidable 3.5.1
Since we upgraded from v2 to Formidable v3, our server is crashing every few days, always with these errors:
Followed by this one:
And the server crashes.
The code to parse the form content is relatively straightforward:
https://github.com/laurent22/joplin/blob/49c1c9aa652aff50560ab5f46c9bcdfccbac6409/packages/server/src/utils/requestUtils.ts#L73
As I understand the error happens in an internal stream handler, which means it's impossible to catch and ends up crashing the server. I have searched about this error message and I see that it was addressed in v1.x, but it definitely seems to be back. We didn't have this crash when using Formidable v1 or v2, but a few days after we upgraded to v3 it started happening.
Any idea if something can be done about it?