apache / apache/ponymail

Bug: stats.lua cannot handle deep nesting

Open
#439 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
80
Forks
32
PR merge metrics
No merged PRs in 30d

Description

stats.lua tries to calculate message threading.

However if too many messages reference each other, the code crashes with an error:

site/api/stats.lua:755: Cannot serialise, excessive nesting (501)

This prevents the list data from being displayed.

The code should fail gracefully if the nesting depth is too great.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in site/api/stats.lua around line 755 and trace how deeply nested message threading reaches serialization. Reproduce the excessive-nesting case, then verify that the code fails gracefully and the list data is no longer prevented from being displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.