Description of problem:
The Prometheus HTTP server returns HTTP 500 when requesting /favicon.ico
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. oc port-forward prometheus-k8s-0 9090:localhost:9090
2.curl -v http://localhost:9090/favicon.ico
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Tue, 21 Jun 2022 08:59:24 GMT
< Content-Length: 18
seeker can't seek
HTTP 200 OK
Fixed upstream in https://github.com/prometheus/prometheus/pull/10888 and v2.36.2.
tested with 4.11.0-0.nightly-2022-06-21-151125, followed the steps in comment 0, response code is 200
# curl -v http://localhost:9090/favicon.ico
* About to connect() to localhost port 9090 (#0)
* Trying ::1...
* Connected to localhost (::1) port 9090 (#0)
> GET /favicon.ico HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:9090
> Accept: */*
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Content-Length: 15086
< Content-Type: image/x-icon
< Date: Wed, 22 Jun 2022 02:01:27 GMT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.