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

Better check file paths in mrpack import and json components #810

Conversation

flowln
Copy link
Contributor

@flowln flowln commented Feb 2, 2023

This implements both the warning on the mrpack format about these bad paths, and makes the instance components uid format more restrictive, in order for the import function in #735 to be able to react better to this case. There's probably more cases in the codebase where we should do those sorts of checks, but those are the ones for now 🙂

flowln and others added 2 commits February 2, 2023 17:11
This checks the URL of the path of the file to be downloaded,
ensuring that it always contains the root .minecraft target folder,
following the warning in the mrpack documentation.

Signed-off-by: flow <flowlnlnln@gmail.com>
This allows other code to reject proceeding when the UID is bad, which
is generally a good idea. :p

Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: flow <flowlnlnln@gmail.com>
@flowln flowln added the bug Something isn't working label Feb 2, 2023
@flowln flowln added this to the 6.2 milestone Feb 2, 2023
@flowln flowln merged commit 3781c64 into PrismLauncher:develop Feb 2, 2023
@flowln flowln deleted the error_on_bad_file_paths_as_we_should_catquake branch February 2, 2023 21:47
Scrumplex pushed a commit that referenced this pull request Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants