Uh oh!
There was an error while loading. Please reload this page.
fs: fix readdir recursive sync & callback - #48698
Conversation
Ethan-Arrowood
commented
Jul 7, 2023
The issue noted that documentation is also missing. I want to keep that contribution available for a new contributor (some folks reached out in the thread). If we don't get a response back from them in a couple of days I'll add the docs fix in here too. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
chris-sophos
commented
Jul 8, 2023
Does this also address the case where dirents are missing entirely as well? |
7bcf27f to
d636303CompareEthan-Arrowood
commented
Jul 19, 2023
@That-Guy977 yes I believe it does because it asserts the length of the look up matches the expected total length. |
nodejs-github-bot
commented
Jul 26, 2023
nodejs-github-bot
commented
Jul 26, 2023
nodejs-github-bot
commented
Jul 26, 2023
nodejs-github-bot
commented
Jul 26, 2023
nodejs-github-bot
commented
Jul 30, 2023
nodejs-github-bot
commented
Aug 11, 2023
nodejs-github-bot
commented
Aug 12, 2023
nodejs-github-bot
commented
Aug 12, 2023
nodejs-github-bot
commented
Aug 12, 2023
Landed in 27cadf5 |
Refs: nodejs#48640 PR-URL: nodejs#48698Fixes: nodejs#48858 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Refs: nodejs#48640 PR-URL: nodejs#48698Fixes: nodejs#48858 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Refs: nodejs#48640 PR-URL: nodejs#48698Fixes: nodejs#48858 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
MattIPv4
commented
Oct 12, 2023
👋 Asked in slack, but asking here as well for visibility, is there intent to backport this fix to the 18.x line? #48858 was a report for 18.x, and this remains broken there currently. |
Refs: nodejs/node#48640 PR-URL: nodejs/node#48698Fixes: nodejs/node#48858 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Refs: nodejs/node#48640 PR-URL: nodejs/node#48698Fixes: nodejs/node#48858 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This PR fixes the broken behavior for readdir recursive sync and callback. It updates the test assertions to catch the issue in the old code, and then adds the necessary fix in the implementation.
Refs: #48640
Fixes: #48858