[SOLVED]Image upload not working / error reading the headers

j.koopmann

Joined: 2005-08-11
Posts: 5
Posted: Thu, 2005-08-11 10:45

Hi,

I managed to setup G2 and import my G1 albums. So far so good. But uploading new pictures does not work at all. Neither via GR nor via the Web Interface. GR tells me to set LimitRequestBody and memory_limit which both is set. Uploading via Web gives me an instantaneous "Document contains no data" with the following error in default-error.log on the server:

[Thu Aug 11 12:16:23 2005] [error] [client 213.157.2.234] request failed: error reading the headers, referer: http://www.nameofmygallery.de/gallery2/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=15

This happens on any image no matter the size. I turned on gallery-debugging and the moment I hit "Upload" for an image (Web-Upload) nothing is shown in that log. Only in the default-error.log. Therefore I am pretty sure this is some sort of Apache/PHP configuration error. But where to look?

What next? I am officially out of ideas. Any help would be greatly appreciated!!!

Regards,
JP

----

Gallery URL (optional):
Gallery version: 2.0RC1
Webserver (with version): Apache 2.0.54
Datatabase (with version): MySQL 4.0
PHP version (eg 4.2.1): 4.4.0
phpinfo URL (optional):
Graphics Toolkit(s): NetPM
Operating system: FreeBSD 4.10
Web browser/version: Firefox 1.6 / IE6
G1 version (for migration bugs):

 
j.koopmann

Joined: 2005-08-11
Posts: 5
Posted: Thu, 2005-08-11 10:56

Great... Right after posting the question I found the answer. It was the DeepInspection of our local NetScreen firewall.

It detected the upload like this:

Name: HTTP: Apache mod_php php_mime_split() Heap Overflow
Description: This signature detects heap overflow attempts against mod_php in Apache. Attackers may send a maliciously crafted HTTP POST request to execute arbitrary code on the server.

Great. Just what I needed...

Thanks anyways.

 
wbrunner

Joined: 2007-02-27
Posts: 1
Posted: Tue, 2007-02-27 07:57

Hi JP,

One of my clients has the same problems. But the error is really old. Does that mean, that my client did not update the firewall for years or is it necassery to change the firewall-configuration?

Regards,

Walter