- Mar 19, 2021
-
-
If we use default root (/), then we do not have to chroot to run scripts. Use APK_NO_CHROOT flag for this scenario to avoid the chroot. This helps with using apk with bwrap and OSTree. Closes #10736. [TT: backported to 2.12-stable]
-
Timo Teräs authored
The code assumed that when package is in world, it would be there by it's primary name. The code is now updated to properly print the package names that are actually present in world. fixes #10718
-
- Mar 16, 2021
-
-
Timo Teräs authored
fixes #10738
-
- Mar 13, 2021
-
-
If server redirects from http to https, libfetch detects this, but wrongly uses the old url scheme to determine the port. This subsequently leads to the following OpenSSL error: 139741541575496:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:331: Using the new scheme fixes this. This error message comes from trying to connect to port 80 with TLS, it can also be observed by issuing $ openssl s_client -connect alpinelinux.org:80 This bug was introduced in commit: 7158474f libfetch: keep http auth only if redirect is for the same host
-
- Feb 07, 2021
-
-
Timo Teräs authored
-
Timo Teräs authored
fixes #10737
-
Timo Teräs authored
-
Timo Teräs authored
Especially a newline can produce havoc in the database file as the filename is written there as-is. This hardenes the extraction to consider any control character as malicious. Additional hardening is added to database loading to better detect corrupt state and return proper error code about it. Reported-by:
Luca Weiss <luca@z3ntu.xyz>
-
While commit 18b0b45b (io: Handle long lines, Thu Jan 7 17:25:23 2021 +0100) did attempt to address this issue, the buffer really is still to small when dealing with big-big dependency lists. Lets make it sufficiently large for now, until the new APKINDEX format can support multi-line dependencies, making this not needed any more. [TT: Originally the buffer size was conservative to run on resource constrained embedded platforms. But since the available memory on those has also increased much, the adjustment to 128kB makes sense also to increase performance a little bit. Removing also the iolimit test.] Signed-off-by:
Olliver Schinagl <oliver@schinagl.nl>
-
Timo Teräs authored
It turns out inflate() can output zero bytes, even if it consumed data. This had the unfortunate side effect of returning zero bytes (end-of-file) condition before calling the boundary callbacks. This fixes the logic to not return zero reads on gzip boundary. In practice this fixes the seldom seen issues of apk reporting bad signature (when it was correct).
-
- Jan 19, 2021
-
-
Timo Teräs authored
-
Timo Teräs authored
Treat URLs with too long individual components as malformed instead of silently truncating that field. There might be unexpected results if hostname, username or password field gets truncated.
-
Timo Teräs authored
The connection pooling was broken in two ways: 1. The original URL was always used as the connection pool URL, resulting in duplicate connections to the proxy for http URLs (each http URL would get separate proxy connection) 2. The cache_url stored was always the socket level connect URL. In case of HTTPS, the lookup was done done with the real URL, but the proxy URL was stored as the "cache URL". Thus HTTPS CONNECT connections were never re-used. This fixes the code with following logic: 1. The cache key url is the real URL when no-proxy, or when HTTPS with proxy (the socket is connected to proxy, but logically it is connected to the real URL due to HTTP CONNECT request). And for HTTP with proxy, it's the proxy URL so same proxy connection can be reused for all requests going through it. 2. fetch_connect() now gets cache key URL separately, and it always gets the same value as the fetch_cache_get() calls.
-
Timo Teräs authored
fixes #10734
-
Instead of skipping just one line, properly parse the response headers. [TT: reworded commit message]
-
- Jan 17, 2021
-
-
Timo Teräs authored
This enables matching numeric hosts against CIDR style subnet matches in no_proxy environment variable. Based on work by Thermi. Co-authored-by:
Noel Kuntze <noel.kuntze@thermi.consulting>
-
Timo Teräs authored
Commit e4aae45f removed the short options. Update the documentation. Fixes #10733
-
- Jan 14, 2021
-
-
Regression introduced by 0fb0d304 which makes parsing a description a critical failure. [TT: Minor stylistic change. Fix also missing final line change from the earlier commit]
-
- Jan 11, 2021
-
-
As an APKINDEX can become arbitrarely long due to dependencies and other parameters, increasing the buffer size make this less likely to happens. Closes #10731.
-
In case of failure when loading an APKINDEX, no errors are propagated to the user which may uncorrectly interpret the current problem.
-
- Jan 08, 2021
-
-
Signed-off-by:
Mike Detwiler <det@shift5.io>
-
- Dec 29, 2020
-
-
- Nov 11, 2020
-
-
- Nov 10, 2020
-
-
- Oct 09, 2020
-
-
Timo Teräs authored
-
- Oct 07, 2020
-
-
Timo Teräs authored
-
- Oct 06, 2020
-
-
Timo Teräs authored
-
Timo Teräs authored
Document the version when changed. And print error with similar note if the given repositories-file cannot be read.
-
Timo Teräs authored
fixes #10688
-
On some systems the `/var/` dir is mounted in a tmpfs which is reseted after each reboot. For that reason no post-install script can handle the creation of the cache dir at `/var/cache/apk`. Check on database opnening if the folder is available, if not create it. Fixes #10715 Signed-off-by:
Paul Spooren <mail@aparcar.org>
-
- Oct 05, 2020
-
-
Timo Teräs authored
It used to be relative to the --root specified root, but that causes issues with relative command line filenames and is unintuitive. Update documentation accordingly. Fixes #10702.
-
Timo Teräs authored
fixes #10710
-
- Oct 03, 2020
-
-
Timo Teräs authored
fixes #10703
-
- Oct 01, 2020
-
-
Timo Teräs authored
-
- Sep 28, 2020
-
-
Timo Teräs authored
-
- Aug 29, 2020
-
-
Closes #10708.
-
-
- Aug 26, 2020
-
-
Timo Teräs authored
unintentional regression from commit edb45ae4 fixes #10707
-
- Aug 25, 2020
-
-
Timo Teräs authored
-
Timo Teräs authored
-