Skip to content

extract_zip fails for unknown reason #10590

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

Closed
wsor4035 opened this issue Nov 1, 2020 · 7 comments
Closed

extract_zip fails for unknown reason #10590

wsor4035 opened this issue Nov 1, 2020 · 7 comments
Labels
@ Content / PkgMgr Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible

Comments

@wsor4035
Copy link
Contributor

wsor4035 commented Nov 1, 2020

Minetest version

"5.1.0-5.3.0"

OS / Hardware

Operating system: windows
CPU: 64 bit

not a graphical issue

Summary

mod https://content.minetest.net/packages/Hybrid%20Dog/sumpf/ fails when downloading in the engine
https://cdn.discordapp.com/attachments/670080638002528257/772568489637707836/unknown.png
image

Steps to reproduce

boot up windows, start minetest, try to download the mod

@wsor4035 wsor4035 added the Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible label Nov 1, 2020
@rubenwardy
Copy link
Contributor

The zip file exists, but core.extract_zip returns false. The C++ code for extracting should be edited to give a better error message

@rubenwardy rubenwardy changed the title contentdb mod download failure extract_zip fails for unknown reason Nov 1, 2020
@red-001
Copy link
Contributor

red-001 commented Nov 3, 2020

Was able to replicate using wine. Zip downloaded fine and is valid. Looks like it's a filename issue

    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/mapgen_sw_try.lua   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/old_functions.lua   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/old_mapgen.lua   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_16x16/   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_16x16/sumpfgrass.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf2.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_leaves_test.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_pilz_item.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_pilz_item2.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_pilz_oben.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_pilz_seite.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_pilz_unten.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_swampstone_tree_test.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpf_swampstone_tree_top_test.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/^J/textures_alternative/sumpfstein.png   OK
    testing: sumpf-9bb25afef283290f4e9ac19b41a17e4e99d6f29a/sumpf/birke.lua   OK

Windows isn't ok with just a space as a filename (or at least the API fs:: uses isn't). I suggest mod devs choose paths that work on all operating systems. @HybridDog could you rename the directory? Maybe call it backup or something.

@rubenwardy
Copy link
Contributor

rubenwardy commented Nov 3, 2020

Where's the space in the path?

@red-001
Copy link
Contributor

red-001 commented Nov 3, 2020

well technically a line feed ^J is apparently the way you display those on the linux. My bad it displays like a space for me when it's extracted.

@red-001
Copy link
Contributor

red-001 commented Nov 3, 2020

Screenshot from 2020-11-03 21-50-32
I suppose I should have made the connection

@HybridDog
Copy link
Contributor

HybridDog commented Nov 4, 2020

I moved the old code to a separate branch, and created a new release now.

@rubenwardy
Copy link
Contributor

Closing in favour of luanti-org/contentdb#379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Content / PkgMgr Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible
Projects
None yet
Development

No branches or pull requests

5 participants