Your message dated Fri, 21 Apr 2023 22:19:20 +0000
with message-id <[email protected]>
and subject line Bug#382174: fixed in elinks 0.16.0-1
has caused the Debian Bug report #382174,
regarding elinks: sends wrong Accept: HTTP header
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
382174: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=382174
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: elinks
Version: 0.11.1-1
Severity: normal
Tags: upstream

Hello,

Elinks sends wrong Accept: header to http servers and breaks content
negotiation. For example: I have file named a.xml with source of some
webpage and a.xhtml with result (created with xsltproc or xalan). When
I request http://server/a (without extension), elinks sends
Accept: */*. Webserver send smaller file (probably a.xml), which elinks
can't understand, since elinks doesn't speak xml.

How does it work for other browsers?
====================================

First Opera 8, which also doesn't support xml:

#v+
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686; en) Opera 8.54
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, 
image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
#v-

It prefers text/html and application/xhtml+xml over application/xml and
*/*.

Elinks sends:

#v+
User-Agent: ELinks/0.11.1 (textmode; Linux 2.6.16-ck11 i686; 128x48)
Accept: */*
Accept-Encoding: gzip
Accept-Language: pl
#v-

With obviously wrong Accept: (since it doesn't support every format
equally).

Lynx (also not supporting xml):

#v+
Accept: text/html, text/plain, application/x-java-jnlp-file, 
application/x-bittorrent, application/x-troff-man, audio/mpeg, video/x-msvideo, 
video/mpeg, video/quicktime, video/x-ms-asf, video/x-ms-wmv, application/x-tar, 
application/x-gtar
Accept: application/ogg, application/x-msdos-program, image/*, video/x-mpeg, 
video/mpeg-system, video/x-mpeg-system, audio/x-wav, video/mpeg4, 
audio/mpegurl, audio/x-mp3, audio/mpeg4, application/mpeg4-iod, 
application/mpeg4-muxcodetable
Accept: application/x-ogg, application/x-ms-asf-plugin, application/x-mplayer2, 
application/wordperfect5.1, application/x-applix-word, 
application/x-palm-database, text/*, application/x-debian-package, audio/basic, 
*/*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: po,en
User-Agent: Lynx/2.8.5rel.1 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/1.0.16
#v-

It lists text/html explictly and lowers priority of */*. (It sends
wrong Language, but it's another bug ;-)

Even MS IE works correctly (by supporting xml ;-)

Other browsers headers in attachment.

How fix it?
===========

It will be rather easy, because wrong header is hardcoded in source:
file src/protocol/http/http.c, line 715.

You may set it to something like:
Accept: text/html, application/xhtml+xml;q=0.9, text/plain;q=0.8, text/*;q=0.7, 
*/*;q=0.1
The */* part is needed, because we want to download and save on disc
other types.

Not attaching patch, because I'm not sure if it's correct (but I think
so ;-) and because You (or Upstream) may prefer other Accept (but
please change it, the current one is wrong).

Thanks,
Jarek Kamiński


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-ck11
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) (ignored: LC_ALL set to 
pl_PL)

Versions of packages elinks depends on:
ii  debconf                       1.5.2      Debian configuration management sy
ii  libbz2-1.0                    1.0.3-3    high-quality block-sorting file co
ii  libc6                         2.3.6-16   GNU C Library: Shared libraries
ii  libexpat1                     1.95.8-3.2 XML parsing C library - runtime li
ii  libgnutls13                   1.4.1-1    the GNU TLS library - runtime libr
ii  libgpmg1                      1.19.6-22  General Purpose Mouse - shared lib
ii  libidn11                      0.6.5-1    GNU libidn library, implementation
ii  liblua50                      5.0.2-6    Main interpreter library for the L
ii  liblualib50                   5.0.2-6    Extension library for the Lua 5.0 
ii  libperl5.8                    5.8.8-6    Shared Perl library
ii  zlib1g                        1:1.2.3-13 compression library - runtime

elinks recommends no packages.

-- no debconf information

-- 
    Linux jest darmowy, jeśli twój czas nie przedstawia żadnej wartości.
    Jeśli jest coś warty(czas), Linux jest po prostu tańszy od innych.
        Jarek Kamiński
        gg# 453620
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, */*
Accept-Language: pl
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)

Accept: text/html, text/plain, application/x-java-jnlp-file, 
application/x-bittorrent, application/x-troff-man, audio/mpeg, video/x-msvideo, 
video/mpeg, video/quicktime, video/x-ms-asf, video/x-ms-wmv, application/x-tar, 
application/x-gtar
Accept: application/ogg, application/x-msdos-program, image/*, video/x-mpeg, 
video/mpeg-system, video/x-mpeg-system, audio/x-wav, video/mpeg4, 
audio/mpegurl, audio/x-mp3, audio/mpeg4, application/mpeg4-iod, 
application/mpeg4-muxcodetable
Accept: application/x-ogg, application/x-ms-asf-plugin, application/x-mplayer2, 
application/wordperfect5.1, application/x-applix-word, 
application/x-palm-database, text/*, application/x-debian-package, audio/basic, 
*/*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: po,en
User-Agent: Lynx/2.8.5rel.1 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/1.0.16

Accept: text/plain,text/html,*/*;q=0.3
Accept-Encoding: deflate
User-Agent: W3CLineMode/5.4.0 libwww/5.4.0

User-Agent: ELinks/0.11.1 (textmode; Linux 2.6.16-ck11 i686; 128x48)
Accept: */*
Accept-Encoding: gzip
Accept-Language: pl

User-Agent: Opera/9.01 (X11; Linux i686; U; pl)
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, 
image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: pl,en;q=0.9,de;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0

User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.8.0.6) Gecko/20060728 
Firefox/1.5.0.6 (Debian-1.5.dfsg+1.5.0.6-1)
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686; en) Opera 8.54
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, 
image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0

Attachment: pgpizRVHy3pbc.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: elinks
Source-Version: 0.16.0-1
Done: أحمد المحمودي (Ahmed El-Mahmoudy) <[email protected]>

We believe that the bug you reported is fixed in the latest version of
elinks, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
أحمد المحمودي (Ahmed El-Mahmoudy) <[email protected]> (supplier 
of updated elinks package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 21 Apr 2023 23:39:09 +0200
Source: elinks
Architecture: source
Version: 0.16.0-1
Distribution: experimental
Urgency: medium
Maintainer: أحمد المحمودي (Ahmed El-Mahmoudy) 
<[email protected]>
Changed-By: أحمد المحمودي (Ahmed El-Mahmoudy) 
<[email protected]>
Closes: 382174 1023831
Changes:
 elinks (0.16.0-1) experimental; urgency=medium
 .
   [ أحمد المحمودي (Ahmed El-Mahmoudy) ]
   * New upstream version 0.16.0
     + Confgurable Accept headers (Closes: #382174)
   * Updated upstream links
   * d/watch: updaten& add uversionmangle for pre & RC releases
   * Remove watch file in contrib as it confuses uscan
   * d/u/metadata: remove Homepage field
   * d/control:
     + updated standards version to 4.6.2
     + Add dblatex to build deps
   * Refreshed patches.
   * Removed patches:
     + 16_POST_BUFFER_SIZE.diff patch, applied upstream
     + 1[01]-reproducible-build.diff patches, replaced by
       CONFIG_REPRODUCIBLE option
   * Update changelog for 0.16.02-1~3.gbp4122c2 release
   * d/elinks-data.examples: update filename of w3m2links.awk script
   * d/control: update build-deps
     libidn11-dev -> libidn-dev, libncurses5-dev -> libncurses-dev
   * Remove d/elinks.lintian-overrides, no longer needed
   * d/source.lintian-overrides: add overrides for HTML files reported to be
     without source.
     See: #1019980
   * Enable Spidermonkey javascript support
   * d/rules:
     + Enable reproducible builds, set source-date-epoch to latest changelog
       entry epoch.
     + Split each configure option in a separate line
     + Set source epoch to timestamp of last changelog entry
     + Enable Gopher protocol
     + Enable Gemini protocol
     + Use system gettext
     + Disable dh_auto_test till upstream fixes it.
   * Build with zlib support (Closes: #1023831)
   * Enable Brotli compression
 .
   [ Lucas Kanashiro ]
   * debian/tests/{control,basic-usage}: add basic test case
Checksums-Sha1:
 213414916f09b49583d7021b846bdfc49439091a 2036 elinks_0.16.0-1.dsc
 80cfe9395c76cc78b4ba312e35f2ad08630003d7 3937345 elinks_0.16.0.orig.tar.gz
 869aef39a929bd3aeaf252e326dbb39f32db87ae 24664 elinks_0.16.0-1.debian.tar.xz
 984404843f12583dc097cb074be2b56fd03c2610 7093 elinks_0.16.0-1_source.buildinfo
Checksums-Sha256:
 51ed2a78e92018548ab556d0a61b2b3885314ba4ff7dddddea54aa70cea1522d 2036 
elinks_0.16.0-1.dsc
 5494a73737eeb182fe2333b74e9b6192170f583c7722a0650dcd14ef088b9dfb 3937345 
elinks_0.16.0.orig.tar.gz
 fab84f705751835105eac8a61c6579d0472115bfe160e210ae542f1ee220dbee 24664 
elinks_0.16.0-1.debian.tar.xz
 bef697b91ac7af9b76a0772c38885b7a1212aeb77d00ce52ece2e3088a35cfb5 7093 
elinks_0.16.0-1_source.buildinfo
Files:
 506c12a2c52d870c51b5c86636e87530 2036 web optional elinks_0.16.0-1.dsc
 da6c60b582f6e607651eded754ce0374 3937345 web optional elinks_0.16.0.orig.tar.gz
 fd7428afb166453a5a2798ec2bd9d738 24664 web optional 
elinks_0.16.0-1.debian.tar.xz
 0cf80f35459d69a1fdb5beeaf9d4bd22 7093 web optional 
elinks_0.16.0-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQFWBAEBCgBAFiEEggahliCEfm0N+LF2vBlqlO3dobcFAmRDBCsiHGFlbG1haG1v
dWR5QHVzZXJzLnNvdXJjZWZvcmdlLm5ldAAKCRC8GWqU7d2ht20FB/4/r0TMDXgC
DOkP1LtODmLV0VZgy6RGIuI40LrNgbsBnhTj9HXIgadjBQ6dU5JLfdwMCLOwo+Kr
VK1XZaeKvH2+R9DNXvMdFtU4QD10okpbYpqDqYACuXJ4Regw3TnF+dyGAyfqPdH+
bRHaNNeE4J6olrRLwJP0ys5y6nSE+XdzhLQe+ORyMLu9S3/jQ9nyZ+d2yvVbZxBk
7gPND4FKNbYb35BcC6H/Ik2foQlOGJ+peszEj+cFEThcBDXWtAnU3MVaNCvnsMhs
ZcTf0bHKE6dyunJTTk5aE3e63vgxkbp0F1Ox6IvAFacqCalgCaSYGYlpQjvRcvqN
9xNqT6vYVeGN
=DAxr
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to