Bugzilla – Bug 1200043
tumbleweed-cli get latest fails when HTTP Redirect is received because curl does not follow redirects by default
Last modified: 2022-05-30 22:07:17 UTC
When tumbleweed-cli is installed and you issue 'tumbleweed latest' or 'tumbleweed status' you will sometimes get a blank value for latest. This occurs when an HTTP Redirect occurs as demonstrated here: GET /history/latest HTTP/1.1 Host: download.opensuse.org User-Agent: curl/7.83.1 Accept: */* Mark bundle as not supporting multiuse HTTP/1.1 302 Found Date: Sun, 29 May 2022 21:44:28 GMT Server: Apache content-length: 0 location: http://mirrorcache-eu.opensuse.org/history/latest When the HTTP Redirect occurs 'tumbleweed latest' or 'tumbleweed status' fails because curl does not follow redirects by default. To fix the issue all calls to curl should also specify the -L option which allows it to follow the 'Location:' header.
This has been resolved in https://progress.opensuse.org/issues/111788
(In reply to Andrii Nikitin from comment #1) > This has been resolved in https://progress.opensuse.org/issues/111788 Thanks Andril! Might still be a good idea to use curl -L in tumbleweed-cli so that if load balancing is enabled again it will just work.