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

Fall Cleanup #52

Closed
wants to merge 26 commits into from
Closed

Fall Cleanup #52

wants to merge 26 commits into from

Conversation

Vilsol
Copy link
Member

@Vilsol Vilsol commented Jun 17, 2024

No description provided.

Vilsol and others added 26 commits February 19, 2022 18:39
# Conflicts:
#	db/postgres/mod.go
#	go.mod
#	go.sum
chore: fix linter errors
# Conflicts:
#	api.go
#	go.mod
wtf how could this happen
# Conflicts:
#	schemas/tags.graphql
fix: reindex latest mods
Rewrite the compound conditional to avoid future confusions. This
bug has gone unnoticed for so long because Alpakit-generated zip
files do not contain folder entries when iterating with a `zipReader`.
However, manually generated zip files, e.g. ContentLib mods, could
contain folder entries depending on the zipping program used. The
resulting zero-length folder in the per-target zips breaks SMM2 on
Windows, but not SMM3.
* fix: urlencode filename for separate mod targets

When a mod's name contains characters that should be urlencoded,
any newly-uploaded versions cannot be download because of some
errors regarding the URL being invalid. Make sure the returned key
is urlencoded for consistency with the rest of the codebase.

Signed-off-by: Angel Pons <[email protected]>

* fix: urlencode version in `RenameFilename`

As per Mircea's comment on [#44 (comment)](#44 (comment)):

    I've also now noticed that RenameVersion is also not correctly
    escaping the filename, it's only escaping the mod's name, and
    not the version, which is what causes mods that use build
    metadata in the version (+build.1234) to fail, so that one
    should need a similar fix of encoding the filename.

Signed-off-by: Angel Pons <[email protected]>

---------

Signed-off-by: Angel Pons <[email protected]>
@Vilsol Vilsol closed this Jun 17, 2024
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

Successfully merging this pull request may close these issues.

3 participants