Skip to content

Add various sanity checks concerning contents of beatmap package #5

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

Merged
merged 16 commits into from
Dec 2, 2024

Conversation

bdach
Copy link
Contributor

@bdach bdach commented Nov 22, 2024

Covers:

  • checking that all online IDs in the .osus are valid
  • checking that all the .osus that should be in the package are in it, and that there are no more
  • prevent uploading files with potentially harmful extensions
  • prevent guests from overwriting files that are not their difficulty

Skipping upload if nothing actually changed is going to likely be delayed until I address another item from #2, namely "Use beatmap versioning tables for listing package contents rather than extracting the package" - that listing capability is going to come useful for that check.

@bdach bdach self-assigned this Nov 22, 2024
@peppy peppy self-requested a review November 27, 2024 09:07
not sure what happened...?
A bit crude, but apparently there is no sane normalisation API in the
BCL... Closest thing is `Path.GetFullPath()` overload that takes a root,
but that's not OS-portable, so I can't use it.
@peppy peppy merged commit 8c56e7a into ppy:master Dec 2, 2024
4 checks passed
@bdach bdach deleted the sanity-checks-2 branch December 2, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants