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

deposit-ui: fix deposit form infinite recursion #1891

Merged

Conversation

slint
Copy link
Member

@slint slint commented Dec 2, 2024

  • deposit-ui: log errors on all deposit form actions

    • This can help with debugging unexpected non-network related errors
      that might occur in the logic before/after a REST API requests.
  • deposit-ui: skip unecessary removal of empty values in serialization

    • This initial removal of empty values can be dangerous, since the
      record at this point is a UI object representation that could
      potentially include circular references or very deeply nested objects.
      Since _removeEmptyValues is recursive this can lead to stack
      overflow errors.

slint added 2 commits December 2, 2024 09:58
* This can help with debugging unexpected non-network related errors
  that might occur in the logic before/after a REST API requests.
* This initial removal of empty values can be dangerous, since the
  `record` at this point is a UI object representation that could
  potentially include circular references or very deeply nested objects.
  Since `_removeEmptyValues` is recursive this can lead to stack
  overflow errors.
@slint slint changed the title deposit ui avoid infinite recursion deposit-ui: fix deposit form infinite recursion Dec 2, 2024
@slint slint merged commit e9c2704 into inveniosoftware:master Dec 2, 2024
4 checks passed
@slint slint deleted the deposit-ui-avoid-infinite-recursion branch December 2, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants