Skip to content

Server#next reporter's cleanFromKeys implementation is not safe against cycles #89

Open

Description

@erictheswift

image
e.g. If a developer put something circular into action by accident, server crashes with non-verbose stackoverflow error — it takes time to understand the source of the issue.
Happened to my colleague putting an AxiosResponse instead of AxiosResponse.data inside a payload

Some kind of circuitbreaker with explanation where an engineer likely fucked up & no server crash seem to be better approach to me. What do you think?

Activity

  1. ai commented on Apr 28, 2021

    @ai
    Member

    Am I right that you created this action on the server and not build it on the client?

  2. transferred this issue fromlogux/serveron Apr 28, 2021
  3. erictheswift commented on Apr 28, 2021

    @erictheswift
    Author
  4. ai commented on Apr 28, 2021

    @ai
    Member

    Since it is not security issue, I can accept PR, but do not want to fix it myself :)

  5. erictheswift commented on Apr 28, 2021

    @erictheswift
    Author
  6. ai commented on Apr 28, 2021

    @ai
    Member

    We can add circular dependencies check to server.log('preadd', (action, meta) => {}).

    Maybe it is better to do it only in server.options.env !== 'production'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions