LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 05-22-2023, 09:30 PM   #1
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 371

Rep: Reputation: 172Reputation: 172
Exclamation Curl patch level 8.1.0 breaks all-numeric hostnames


After applying the recommended security update Curl 8.1.0 to Slackware-64 15.0, some well-formed URLs cannot be parsed by the curl command, which throws a parse error:

Code:
$ curl --version
curl 8.1.0 (x86_64-pc-linux-gnu) libcurl/8.1.0 OpenSSL/1.1.1t zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 c-ares/1.19.1 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.46.0
Release-Date: 2023-05-17
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
$ curl https://123.anydomain.com/
curl: (3) URL using bad/illegal format or missing URL
As an example of expected behavior, here is curl 7.86:

Code:
$ curl --version
curl 7.86.0 (x86_64-pc-linux-gnu) libcurl/7.86.0 OpenSSL/1.1.1t zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 c-ares/1.19.1 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.46.0
Release-Date: 2022-10-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
$ curl https://123.anydomain.com/
curl: (6) Could not resolve host: 123.anydomain.com
Maybe it needs to be said that the problem is not limited to hostnames that cannot be resolved, as in the example above. All purely numeric hostnames I've tried, whether resolvable or not, exhibit this behavior.

My specific issue is that Zabbix uses curl when given a URL to monitor, and can no longer monitor a URL of the form https://999999.app.netsuite.com/ which is how we check end-to-end connectivity to the Oracle NetSuite accounting application.

Maybe it also needs to be said that purely numeric hostnames have been part of the hostname standards for more than twenty years.
 
Old 05-22-2023, 09:44 PM   #2
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 371

Original Poster
Rep: Reputation: 172Reputation: 172
This problem is an acknowledged regression in Curl 8.1, and an 8.1.1 is "now due to ship on May 23" per: https://github.com/curl/curl/issues/11129
 
Old 05-23-2023, 11:57 AM   #3
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 371

Original Poster
Rep: Reputation: 172Reputation: 172
Curl 8.1.1 was released.
 
Old 05-26-2023, 03:52 PM   #4
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 371

Original Poster
Rep: Reputation: 172Reputation: 172
Curl 8.1.1 patched in Slackware-64 15.0 and the problem has gone away.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
non numeric number to numeric DoME69 Programming 8 06-19-2015 07:13 AM
[SOLVED] [Solved] spamassassin error: Argument perl_version isn't numeric in numeric ge (>=) carltm CentOS 12 12-02-2014 08:23 AM
How to patch my redhat Enterprise Linux 5.1 to the latest patch level? shaybery Red Hat 4 10-05-2008 02:04 AM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 03:31 AM
Is There a ~/.hosts ? or anything in user level to aliasing hostnames ? cartridge Linux - Networking 2 01-12-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration