unregistered / Maxel

A native download accelerator for Mac OS X.
http://maxelapp.com/
28 stars 2 forks source link

corrupted zip file download #97

Closed iGhoneim closed 7 years ago

iGhoneim commented 7 years ago

Walkthrough: try to download http://www.luxrender.net/release/luxmark/v3.1/luxmark-macos64-v3.1.zip from url http://www.luxrender.net/wiki/LuxMark#Binaries using 10 connection ( any number > 1 ) download will finish in 1 sec 👎

it's corrupted! only 7.8 MB out of 128.2 MB downloaded!

Beta Version 2.2 (7326) Tested, same issue!

unregistered commented 7 years ago

I'll check this out, thanks for reporting.

On Oct 27, 2016, at 4:30 AM, Ahmed Ghoneim notifications@github.com wrote:

Walkthrough: try to download http://www.luxrender.net/release/luxmark/v3.1/luxmark-macos64-v3.1.zip from url http://www.luxrender.net/wiki/LuxMark#Binaries using 10 connection ( any number > 1 ) download will finish in 1 sec 👎

it's corrupted! only 7.8 MB out of 128.2 MB downloaded!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

unregistered commented 7 years ago

Thanks for sharing. So, this server seems to terminate connections after they start in order to prevent multi-connection downloaders like Maxel from working. Instead of serving the content they promise, they serve this HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Application Control Violation</title>
    <style type="text/css">
        html, body { margin: 0; padding: 0; font-family: Verdana, Arial, sans-serif; font-size: 10pt; }
        h1, h2 { height: 82px; text-indent: -999em; margin: 0; padding: 0; margin: 0; }
        div { margin: 0; padding: 0; }
        div.header { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 0 repeat-x; height: 82px; }
        div.header h1 { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGHGFHBGCHEGPFBGAHAH) 0 0 no-repeat; }
        div.header h2 { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 -82px no-repeat; width: 160px; float: right; }
        div.sidebar { width: 195px; height: 200px; float: left; }
        div.main { padding: 5px; margin-left: 195px; }
        div.buttons { margin-top: 30px; text-align: right; }
        div.app-title { background:url(http://www.fortiguard.com/app_logos/large33224.png) no-repeat; margin: 8px 0px; height: 32px; text-indent: 36px; line-height: 20px; font-size: 17px; padding-top:5px; }
        div.app-info { padding-bottom: 5px; text-indent: 18px; }
        h3 { margin: 36px 0; font-size: 16pt; }
        .blocked      h3 { color: #c00; }
        h2.fgd_icon { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 -166px repeat-x; width: 90px; height: 92px; margin: 48px auto; }
        .blocked      h2.fgd_icon { background-position: 0 -166px; }
        form { width: 300px; margin: 30px 0; }
        label { display: block; width: 300px; margin: 5px 0; line-height: 25px; }
        label input { width: 200px; border: 1px solid #7f9db9; height: 20px; float: right; }
    </style>
</head>
<body class="blocked">
    <div class="header">
        <h2>Powered By Fortinet</h2>
        <h1>FortiGate Application Control</h1>
    </div>
    <div class="sidebar">
        <h2 class="fgd_icon">blocked</h2>
    </div>
    <div class="main">
<h3>Application Blocked!</h3>
<div class="notice">You have attempted to use an application which is in violation of your internet usage policy.</div>
<div class="app-title">HTTP.Download.Accelerator</div>
<div class="app-info">Category: General.Interest</div>
<div class="app-info">URL: http://www.luxrender.net/release/luxmark/v3.1/luxmark-macos64-v3.1.zip</div>
<div class="app-info">Client IP: ----------</div>
<div class="app-info">Server IP: ----------</div>
<div class="app-info">User name: </div>
<div class="app-info">Group name: </div>
<div class="app-info">Policy: ae80bc2c-da2c-51e4-8d52-58d1b51ef555</div>
<div class="app-info">FortiGate Hostname: fnet4</div>    </div>
</body>
</html>

So the bug here is the same as in #82, where Maxel should fail the download because the server does not actually support multipart even though it claims to. But Maxel won't be able to multipart this download.

unregistered commented 7 years ago

Should be fixed in beta 2.3