Text downloads fail on server

Hi,

With the permission of my customer, I am posting to this forum in an attempt to resolve the issue that my customer’s currently experiencing on our server. So far, I am unable to reproduce the issue because my browser has not successfully downloaded any text files from the customer’s domain in question. I did initially manage to get the downloads to start… but they’d never finish but now I’m no longer able to even try downloading the file.

The end-goal for my customer is to allow people to download the text files from the domain, http://mypastebin.com and presumably load them into mIRC. This makes things nice and easy for people who want to get up and running with mIRC scripts and the like.

The other end-goal, at least for us is to help others that may encounter an issue similar to ours and provide a nice, easy fix for them. Knowledge is power, after all. I know when it’s time to ask for others’ opinions and help, so here I am.

So, that said, here’s the following details on how to reproduce:

STEP 1: Visit this particular link: https://mypastebin.com/shqLhDHR1YN2 and attempt to download the text file. It’s a file of the code that you see in the browser, so if you’re concerned about malicious code, this should allow you to preview it and decide whether or not to try downloading it.

STEP 2: If you succeed in downloading it, the file downloads fine but is apparently missing the last few lines of text of code inside the file. I am uncertain as to when this started to fail or if it did work at all but our customer indicated that it works locally, so something is clearly missing server-side. It is supposed to download a file named shqLhDHR1YN1.txt or get.php. If it downloads get.php, refresh page and attempt downloading again.

Relevant system information:

OS: CentOS 7 x64
HTTPD:

[root@helmsgate logs]# httpd -v
Server version: Apache/2.4.10 (CentOS)
Server built:   Apr  4 2016 10:23:24

PHP:


[root@helmsgate logs]# php -v
PHP 5.6.24 (cli) (built: Jul 21 2016 07:33:38)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.2, Copyright (c) 2002-2016, by ionCube Ltd.

Hi Kerio
Sounds rather strange.
Have you tried a simple download of a test text file from another domain, not using cloudflare
Your link just displays the attached pic, so no website is available
Also, have you tried disabling cloudflare on the domain, and tested
If the links do not work, they need removing or correcting though
I hope that helps
Many thanks
John

[QUOTE=d2d4j;28908]Hi Kerio
Sounds rather strange.
Have you tried a simple download of a test text file from another domain, not using cloudflare
Your link just displays the attached pic, so no website is available
Also, have you tried disabling cloudflare on the domain, and tested
If the links do not work, they need removing or correcting though
I hope that helps
Many thanks
John[/QUOTE]

I can download text files and the like from any other domain not using CloudFlare. I’ve also tested downloading a text file from a domain also using cloudflare. Also, try downloading http://mypastebin.com/iw-test.txt. Right click and save as. It should download just fine. It’ll say “derpaherp, this is a test.” This worked fine with CloudFlare and with CloudFlare disabled.

Regarding your attached image: That is very odd. It redirects to Google Chrome’s download page?

Here’s the screenshot

of the site in question.

Hi Kerio

Many thanks, and yes, I downloaded your iw-test.txt file without issue.
Please see the index.htm as a text file for http://mypastebin.com, which is still showing the same as my pic.
Your etf.mypastebin.com I think it was called, (game site) displays correct
I think the issue maybe connected with redirects then, as test downloads work fine, thereby confirming your apache and IW etc are working. If so, it is your client issue on their code
If you want me to test anything, please let me know
Many thanks
John

index.txt (46.9 KB)

[QUOTE=d2d4j;28910]Hi Kerio

Many thanks, and yes, I downloaded your iw-test.txt file without issue.
Please see the index.htm as a text file for http://mypastebin.com, which is still showing the same as my pic.
Your etf.mypastebin.com I think it was called, (game site) displays correct
I think the issue maybe connected with redirects then, as test downloads work fine, thereby confirming your apache and IW etc are working. If so, it is your client issue on their code
If you want me to test anything, please let me know
Many thanks
John[/QUOTE]

Hmm. That’s very strange. I’m not entirely sure what to say regarding the odd Google Chrome download page.

The ETF subdomain is indeed correct. I suspect something else is at play here with your hitting Google Chrome instead of the domain in question.

The .htaccess contains no code that’d redirect to Google, see below:


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /view.php?id=$1 [L,QSA]


RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


# END SSL config

I’ll let my customer know that it’s possibly related to code in the site that may be at issue. There was some errors but we’d worked through them in troubleshooting the exact cause. It is, however, possible that there may be something else in the code that isn’t quite working when uploaded to our server compared to their local copy… which reminds me, I should ask them for a copy of their php.ini and see if there’s any differences.

Hi kerio

Google chrome appears in IE11

I tried on opera and can see your website, which as you stated, does not start download

A refresh shows no file selected

So I think they have issues with IE and perhaps the download issue is no file selected for download

Many thanks

John

Hi Kerio

I tried to save as your link https://mypastebin.com/shqLhDHR1YN2 and it saved without issue, as attached. (please note to attach on forum, I had to change the .htm to .txt so it would attach, but it did download as shqLhDHR1YN2.htm)

When trying to access https://mypastebin.com/shqLhDHR1YN2.txt, it showed as No Such ID

I would have thought the download would have been shqLhDHR1YN2.txt

I hope that helps a little, and my above tests were using Opera

Many thanks

John

shqLhDHR1YN2.txt (33.1 KB)

[QUOTE=d2d4j;28913]Hi Kerio

I tried to save as your link https://mypastebin.com/shqLhDHR1YN2 and it saved without issue, as attached. (please note to attach on forum, I had to change the .htm to .txt so it would attach, but it did download as shqLhDHR1YN2.htm)

When trying to access https://mypastebin.com/shqLhDHR1YN2.txt, it showed as No Such ID

I would have thought the download would have been shqLhDHR1YN2.txt

I hope that helps a little, and my above tests were using Opera

Many thanks

John[/QUOTE]

It’s not supposed to be saved that way… but I digress. The customer set up the downloads of the text files to be done when one presses the Download button on the page in question. It’s supposed to download a text file containing the code as seen in that page.

It’s starting to sound like the code for downloading files is broken on the server in some way, shape or form.