Bug 8255 - sa-update calls GET /MIRRORED.BY%20https://spamassassin.apache.org/updates/MIRRORED.BY HTTP/1.1
Summary: sa-update calls GET /MIRRORED.BY%20https://spamassassin.apache.org/updates/MI...
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: sa-update (show other bugs)
Version: 4.0.0
Hardware: PC Linux
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2024-05-22 16:53 UTC by Dilyan Palauzov
Modified: 2024-05-22 16:56 UTC (History)
1 user (show)

Attachment Type Modified Status Actions Submitter/CLA Status
Output of strace -s2048 -f sa-update -D --httputil wget application/zstd None Dilyan Palauzov [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Dilyan Palauzov 2024-05-22 16:53:36 UTC
Attached is the output of strace -s2048 -f sa-update -D --httputil wget . It is executed on Debian Bookworm (actually docker.io/library/debian:bookworm) image.  This is version 4.0.0 (not 4.0.1) with perl 5.36.0.  In Debian terms this is actually version 4.0.0-6. 

The strace output contains (with many skipped lines):

sendto(3, "\16F\1\0\0\1\0\0\0\0\0\0\7mirrors\7updates\fspamassassin\3org\0\0\20\0\1", 50, 0, {sa_family=AF_INET, sin_port=htons(53), sin
_addr=inet_addr("")}, 16) = 50
recvfrom(3, "\16F\201\200\0\1\0\1\0\0\0\0\7mirrors\7updates\fspamassassin\3org\0\0\20\0\1\7mirrors\7updates\fspamassassin\3org\0\0\20\0\1\0\0\0\0\0b-http://sa-update.spamassassin.org/MIRRORED.BY3https://spamassassin.apache.org/updates/MIRRORED.BY", 512, 0, {sa_family=AF_I

[pid 32379] execve("/usr/bin/wget", ["/usr/bin/wget", "-q", "--max-redirect=2", "--tries=3", "--dns-timeout=20", "--connect-timeout=30", "--read-timeout=300", "-O", "MIRRORED.BY", "-U", "sa-update/4.0.0 / svn1900642/4.0.0", "--", "http://sa-update.spamassassin.org/MIRRORED.BY https://spamassassin.apache.org/updates/MIRRORED.BY"], 0x55be2543f8a0 /* 16 vars */) = 0

[pid 32379] write(4, "GET /MIRRORED.BY%20https://spamassassin.apache.org/updates/MIRRORED.BY HTTP/1.1\r\nHost: sa-update.spamassassin.org\r\nUser-Agent: sa-update/4.0.0 / svn1900642/4.0.0\r\nAccept: */*\r\nAccept-Encoding: identity\r\nConnection: Keep-Alive\r\n\r\n", 229) = 229

So obviously  GET /MIRRORED.BY%20https://spamassassin.apache.org/updates/MIRRORED.BY is not going to work and there is something wrong.
Comment 1 Dilyan Palauzov 2024-05-22 16:56:43 UTC
Created attachment 5955 [details]
Output of strace -s2048 -f sa-update -D --httputil wget

The attachment is zstd-compressed.