Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11837

YUM repo response header wrong charset

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • None
    • Installation (I)

      When performing a GET request to the YUM repository response header Content-Type includes a wrong charset value UTF-8* (the character * seems to be the problem).

      It couses problems, for example, when trying to mirror the repo using tools such as Artifactory.

      Here an example:

      $ curl -v 'http://repo.zabbix.com/zabbix/3.0/rhel/'
      * Hostname was NOT found in DNS cache
      *   Trying 162.243.159.138...
      * Connected to repo.zabbix.com (162.243.159.138) port 80 (#0)
      > GET /zabbix/3.0/rhel/ HTTP/1.1
      > User-Agent: curl/7.35.0
      > Host: repo.zabbix.com
      > Accept: */*
      > 
      < HTTP/1.1 200 OK
      < Date: Wed, 22 Feb 2017 13:56:23 GMT
      * Server Apache/2.4.10 (Debian) is not blacklisted
      < Server: Apache/2.4.10 (Debian)
      < Vary: Accept-Encoding
      < Content-Length: 841
      < Connection: close
      < Content-Type: text/html;charset=UTF-8*
      < 
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
      <html>
       <head>
        <title>Index of /zabbix/3.0/rhel</title>
       </head>
       <body>
      <h1>Index of /zabbix/3.0/rhel</h1>
      <pre><img src="/icons/blank.gif" alt="Icon "> <a href="?C=N;O=D">Name</a>                    <a href="?C=M;O=A">Last modified</a>      <a href="?C=S;O=A">Size</a>  <a href="?C=D;O=A">Description</a><hr><img src="/icons/back.gif" alt="[PARENTDIR]"> <a href="/zabbix/3.0/">Parent Directory</a>                             -   
      <img src="/icons/folder.gif" alt="[DIR]"> <a href="5/">5/</a>                      2016-02-20 12:53    -   
      <img src="/icons/folder.gif" alt="[DIR]"> <a href="6/">6/</a>                      2016-12-22 08:38    -   
      <img src="/icons/folder.gif" alt="[DIR]"> <a href="7/">7/</a>                      2016-02-15 09:11    -   
      <hr></pre>
      </body></html>
      * Closing connection 0
      

            Unassigned Unassigned
            nvellon Nicolás Vellón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: