Dear Maintainer, httpie makes a request to packages.httpie.io every time you start it. It does this presumably to check for a newer version, which is irrelevant in debian. It also smells like a policy violation, though I didn't find an exact paragraph that covers this. This can be seen in the source code here: https://sources.debian.org/src/httpie/3.2.1-1/httpie/internal/update_warnings.py/?hl=16#L16 Upstream has some documentation here: https://httpie.io/docs/cli/update-warnings Please remove this update check, not only is it irrelevant in debian, but it also causes a mess in logs due to unintended DNS requests. thanks
Further testing with help of people on IRC revealed the following information:
If you simply install httpie, and don't create any config directories, it will perform the version check every single time you run httpie.
If you create the directory ~/.config/httpie/ then httpie will download the file https://packages.httpie.io/latest.json and save it in ~/.config/httpie/version_info.json
If you delete ~/.config/httpie/version_info.json and create the file ~/.config/httpie/config.json with this content:
{
"disable_update_warnings": true
}
then the version checks stop and ~/.config/httpie/version_info.json stops being created. This is poorly documented upstream.
I don't know if it is a permanent solution, or if it only temporarily stops this. I'm providing this as a workaround before it is fixed in the debian package.
In any case, this behavior should be patched out in httpie as distributed by debian.
First of all package can't modify files in users' home directories which makes this bug unfixable without patching upstream somehow. Any volounteers with patch disabling version check completely? regards Bartosz Fenski
quick patch attached
Dear Maintainer,
I've worked on this package doing the following updates:
* d/control:
- Bump Standards-Version to 4.6.2.
- Declare Vcs-* fields under debian salsa group.
- Declare Rules-Requires-Root to no.
- Replace debhelper with debhelper-compat.
- Removed trailing whitespaces.
* d/copyright:
- Add Arthur Diniz.
- Update format URL.
* d/changelog: Removed trailing whitespaces.
* d/compat: Removed.
* d/patches: Patch to disable update checks. (Closes: #1041792)
* d/upstream/metadata: Created.
* d/gbp.conf: Created.
A repo has been created in Salsa: https://salsa.debian.org/debian/httpie
The package now can be cloned and tested.
I'm available for any extra fixes and/or updates before uploading.
The changelog is with the label UNRELEASED, if no changes required we can
just change to unstable and do the upload.
---
I'm currently seeking new packages to work and adopt, if you have plans to
orphan httpie I'm available.
Cheers,
Arthur Diniz
Dear maintainer, Upload done with a delay of 7 days. Kind Regards, Arthur Diniz
We believe that the bug you reported is fixed in the latest version of
httpie, 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 1041792@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Arthur Diniz <arthurbdiniz@gmail.com> (supplier of updated httpie 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 05 Oct 2023 19:09:08 +0100
Source: httpie
Architecture: source
Version: 3.2.1-2
Distribution: unstable
Urgency: high
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Arthur Diniz <arthurbdiniz@gmail.com>
Closes: 1041792
Changes:
httpie (3.2.1-2) unstable; urgency=high
.
* d/control:
- Add Bartosz Fenski as principal uploader.
- Add Arthur Diniz as secondary uploader.
- Change maintainer to Debian Python Team.
- Bump Standards-Version to 4.6.2.
- Declare Vcs-* fields under python salsa group.
- Declare Rules-Requires-Root to no.
- Replace debhelper with debhelper-compat.
- Removed trailing whitespaces.
* d/copyright:
- Add Arthur Diniz.
- Update format URL.
* d/changelog: Removed trailing whitespaces.
* d/compat: Removed.
* d/patches: Patch to disable update checks. (Closes: #1041792)
* d/upstream/metadata: Created.
* d/gbp.conf: Created.
Checksums-Sha1:
40bfc67c83b837c9c44c3a9fd2b51719afd25317 2056 httpie_3.2.1-2.dsc
4f2d05d46c47d31666ae8f5a6158098f09d12a07 7148 httpie_3.2.1-2.debian.tar.xz
950c57a09893c62fc394476b8179d017793e4a6c 7005 httpie_3.2.1-2_amd64.buildinfo
Checksums-Sha256:
6712bf28e2bdb06f0e50353e37040bfecac5b9265ede73627526c58c2512d890 2056 httpie_3.2.1-2.dsc
d8d1a9a6b9ad29b3c6677edb196a03be5b6420f04dd3aad8ac29727c0ba8233f 7148 httpie_3.2.1-2.debian.tar.xz
5b7dbac2b3e6e331a2c48be2af1a66940516a9ff86686bb098f517ab54b78fcb 7005 httpie_3.2.1-2_amd64.buildinfo
Files:
461921833a74da706cc0860a72e12c7f 2056 web optional httpie_3.2.1-2.dsc
efba154f5bd70a99c9ee62505a144e33 7148 web optional httpie_3.2.1-2.debian.tar.xz
22ba2aa454ade0a1b1bb5fad2fdb768f 7005 web optional httpie_3.2.1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEBdtqg34QX0sdAsVfu6n6rcz7RwcFAmUfSCkACgkQu6n6rcz7
Rwe7ERAAhFMtP/yqwEp1zf3IIImJ+WbJU3fy2dBKgiGT3lWdm6d+7jtgKo3SOojn
ZBXBKoE4YS89dE8XZ9SAnE/jLogPYf6YtLKFsDR/m49chK8u8f/J4p/e2szwmx0n
+A4+onO6mXsHAafuGvUbdxdH1YSS4A2E0jviwTL1NTFg+bVtWbNLX9NdWAyDLeF4
F4mmou1MdMH5ae+my+0L3cOCM71wsQ7FDLR5MuZidAMRtZ8tir0hIZJslo3oFRIM
QRH9eVSj/ga59ZPXbvMA5Yi4IdqDOc4GSvKmYPDBATJgu+/e2idVpkuFWlLJQH5y
EatUByfubMur3UELdH6DVYvugCmg7sN/eXqRvCr3m/zAwuGfggBe0lDFEwkXGO6T
ExUPUjlJVnALVOggxxfu0JdKglHpI/usSWizp9ycZyJoayGvgfsb9PCgoLva365X
fxZtJG9Q0FdrJpNMdGru6SRMIkgtCK9SI3lqC0kztSeZrSYzHP9PJoSzW2NY+iya
hAOtN7odxa/tSjP+AFYL5An1a75c1hrud4a93tvMkaK1OCEvTBQg5MBIaYJ3Ojim
fSf5bsBNUU+lo2cuuvKk9UG/Cba1feRD+OdRS9f14TFf1uD4q/dfUzirgGMEnk+3
tBSO9HUVHxH4zoZDxfzqiV2Lq2CTgJlKE8MvUS0FDQNAu+vZ9mM=
=8Q/s
-----END PGP SIGNATURE-----