-
Notifications
You must be signed in to change notification settings - Fork 296
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
Change in import behavior with custom "resolve" function in 3.9.6 #398
Comments
Relative path requires did allow to require any module under |
It seems like the check isn't actually being hit now, though. If the custom 'resolve' function returns a path, it isn't validated against the list of external modules. I have to duplicate the check for allowed modules in my custom resolve function to get the expected behavior. |
The access check is done when trying to access files through Line 153 in 532120d
|
I think this line is the culprit: Line 291 in 532120d
If the custom resolver returns a path, it gets automatically added to the "external" list. Removing that line restores the previous behavior. |
Thanks, I see the problem now. |
Would you mind to check if the behavior with #400 is as expected. |
Should be fixed in v3.9.7 |
If a custom "resolve" function is provided, it seems to be called even if the module is not in the allowed list of external modules. This is a change from previous versions.
In 3.9.5, this code throws
VMError [Error]: The module 'jmespath' is not whitelisted in VM.
In 3.9.6, it passes without error.The text was updated successfully, but these errors were encountered: