Project

General

Profile

Actions

Bug #13086

open

repository hipster fails with 400 on valid request from pkg application

Added by matt farnsworth over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

The issue appears to occur at the web server. More specifically the sites serving of files, rather than the content of html documents.

There does not seem to be a problem with the file requested (firefox can fetch it). I don't see any problem with the request (other then keep-alive is missing, and the stream contains multiple requests {number of requests varies}, I think the response is strange.

Impact: the server returns 400 bad request, pkg aborts with Unknown error code, can not upate or image-update.

The url associated with the error is not consistent. It is not clear if number of prior requests in the connection or timing is involved. It is difficult to confirm that pkg client can eventually get the file, that previously caused the error, but this does seem to be the case, even though hundreds of retries are required to make progress (or the appearance of progress). Maybe there are many servers in a cluster and one has a problem, or some have problems that others don't?

Is it possible the server has multiple versions of the file tagged with an encoding (see sample below)? (unlikely), if so redirect to pkg maintainer.

The server may reply with 400 error, even when no request can be identified (previous request was handled???). DoS issue?

End-of-life for 2.2.34 was announced in 2018, maybe migrate to Apache 2.4 httpd?

--- tcpdump ---
GET /hipster/openindiana.org/file/1/b2d32c546bebbd4662772faef73a76cdc5069274 HTTP/1.1
Host: pkg.openindiana.org
User-Agent: pkg/a6bfc17b (sunos i86pc; 5.11 illumos-c00e8e9ee0; full; pkg)
Accept: */*
X-IPkg-UUID: 47014a02-4a37-11e8-aca5-92dc8bd41209

HTTP/1.1 400 Bad Request
Date: Mon, 31 Aug 2020 14:27:12 GMT
Server: Apache/2.2.34 (Unix)
Vary: Accept-Encoding
Content-Length: 309
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.2.34 (Unix) Server at pkg.openindiana.org Port 80</address>
</body></html>

--- end attachment --

No data to display

Actions

Also available in: Atom PDF