You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
don't create an infinite loop in the backend => don't reach nesting limit
return valid JSON
don't return duplicated elements in the JSON (cf example below with standard and Processor1 from the Flow template through target -> incomingFlows -> target)
Actual behavior
/api/rest/projects/{projectId}/commits/{commitId}/roots and /api/rest/projects/{projectId}/commits/{commitId}/elements suffers from infinite loop and return not valid JSON because of a nesting depth limit reached in the backend:
2025-01-16T11:52:22.259+01:00 WARN 4604 --- [io-8080-exec-10] .w.s.m.s.DefaultHandlerExceptionResolver : Ignoring exception, response committed already: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Document nesting depth (1001) exceeds the maximum allowed (1000, from `StreamWriteConstraints.getMaxNestingDepth()`)
2025-01-16T11:52:22.259+01:00 WARN 4604 --- [io-8080-exec-10] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Document nesting depth (1001) exceeds the maximum allowed (1000, from `StreamWriteConstraints.getMaxNestingDepth()`)]
originally posted as a comment of #4414
Screenshots
...
Steps to reproduce
http://localhost:8080/api/rest/projects/<your-project-id>/commits/<your-project-id>/roots
OR
http://localhost:8080/api/rest/projects/<your-project-id>/commits/<your-project-id>/roots
Expected behavior
standard
andProcessor1
from the Flow template through target -> incomingFlows -> target)Actual behavior
/api/rest/projects/{projectId}/commits/{commitId}/roots
and/api/rest/projects/{projectId}/commits/{commitId}/elements
suffers from infinite loop and return not valid JSON because of a nesting depth limit reached in the backend:returning (in the case of the Flow template):
The text was updated successfully, but these errors were encountered: