Skip to content
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

paths on Windows have to use backslashes #69

Open
PiotrAniola82 opened this issue Dec 6, 2024 · 0 comments
Open

paths on Windows have to use backslashes #69

PiotrAniola82 opened this issue Dec 6, 2024 · 0 comments
Assignees

Comments

@PiotrAniola82
Copy link
Collaborator

When calling javacore_analyser_batch with a command line parameter of the output path, the path specified only works if backslashes are used on Windows. More specifically, the same character os.sep returns has to be used by the end user when calling the script.

Using forward slashes, although in general allowed on Windows, in this case will fail with a 'Security Exception' due to

        if not data_output_dir.startswith(output_dir):
            raise Exception("Security exception: Uncontrolled data used in path expression")

in javacore_set.__create_output_files_structure.

This should at least me documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants