-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Experimental Permissions: Checks from fs functions that accept Buffers fail with TypeError #54100
Comments
So the problem happens only when pass the flag |
Yes, only with |
So a think this is an improvement... I can test and see if this error occurred in older versions. But anyway I will validate and see if I can improve and resolve with PR. |
Ah, sorry, I wasn't trying to state that this is a regression, I think this is just a part of the still-in-development experimental permissions work, thought I'd flag it. |
Aah ok! But thank you to sinalize! Someone can answer this question and if it is already under development, otherwise I can help with the contribution ❤️ |
I think @RafaelGSS is the man to talk to, based on the commit history. |
Apparently, this is caused by #52135. I will work on that. |
PR-URL: #54104 Fixes: #54100 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
PR-URL: #54104 Fixes: #54100 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
PR-URL: #54104 Fixes: #54100 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
PR-URL: #54104 Fixes: #54100 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
Version
v22.5.1
Platform
Subsystem
File system
What steps will reproduce the bug?
I saw this directly when when attempting a recursive delete. E.g.
script.js
:Execute this with something like
node --experimental-permission --allow-fs-write /tmp* script.js
How often does it reproduce? Is there a required condition?
This always happens provided the experimental-permission flag is set.
What is the expected behavior? Why is that the expected behavior?
Expected behaviour is that the permissions checking code allows a Buffer to be provided containing the path.
What do you see instead?
Error:
From the looks of it, the code in
.has
that callsvalidateString
needs to permit buffers as well for the reference argument.Additional information
No response
The text was updated successfully, but these errors were encountered: