Project

General

Profile

Actions

Defect #19621

closed

502 Bad Gateway when i upload files > 100kb

Defect #19621: 502 Bad Gateway when i upload files > 100kb

Added by Jean Beaurepaire over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
REST API
Target version:
-
Resolution:
Invalid
Affected version:

Description

Hello,

I use the REST Api with Json, and i use Java langage.
This is my code :

    File fileJeuxDonnees = new File("tryAgain.zip");
    InputStream content = new FileInputStream(fileJeuxDonnees);
        final HttpPost request = new HttpPost(uploadURI);
    final MultipartEntityBuilder multipartEntity =   MultipartEntityBuilder.create();

/* Content type required by a Redmine */
    multipartEntity.addBinaryBody("uploadFile", content, ContentType.APPLICATION_OCTET_STREAM , null);

    HttpEntity entity = multipartEntity.build();
        request.setEntity(entity);
        final HttpClient httpclient = new DefaultHttpClient();
    HttpResponse httpResponse = httpclient.execute((HttpUriRequest) request);

If i upload small zip file size (~10ko), it's ok, but if i try to upload a zip file of 1155Ko for example, the response of the server on the param

httpResponse
is :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at **************** Port 443</address>
</body></html>

My version of Redmine is 1.4.4 and i can't change.
What is the problem ?

Updated by Toshi MARUYAMA over 11 years ago Actions #1

  • Status changed from New to Closed
  • Resolution set to Invalid

1.4.4 is too old.
Current support version is 2.6 and 3.0.

"502 Bad Gateway" is proxy response.
Check your Redmine log.

Updated by Jean Beaurepaire over 11 years ago Actions #2

On the wiki, i can read than the Attachments was added in 1.4 and have a compability with 1.3..

And i didn't saw error trace on the Redmine log.

Actions

Also available in: PDF Atom