Bug 1990599

Summary: zola fail to load data from URL
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: zolaAssignee: Rust SIG <rust-sig>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: decathorpe, igor.raits, rust-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: zola-0.12.2-7.fc34 zola-0.12.2-7.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-09 17:32:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael S. 2021-08-05 17:16:35 UTC
Description of problem:
zola build fail to request a URL.

Version-Release number of selected component (if applicable):
zola-0.12.2-4.fc34.x86_64

How reproducible:
each time

Steps to Reproduce:
1. write a template that use load_data
2. try to build the web site
3.

Actual results:
$ zola  build
Building site...
-> Creating 6 pages (0 orphan), 0 sections, and processing 0 images
Failed to build the site
Error: Failed to render page '/var/home/misc/checkout/git/test/content/test.md'
Reason: Failed to render 'test.html'
Reason: Function call 'load_data' failed
Reason: Could not get response status for url: https://osci.io/


Expected results:

a working build

Additional info:

it work if I self compile the v0.12.2 or HEAD on F34 with cargo build, so I suspect the issue is downstream.

The relevant line in the template is:

{% set data = load_data(url="https://osci.io/") %}


I tested on several servers, with or without https, etc. None work.

The code is here:
https://github.com/getzola/zola/blob/b2354c6cd8c44c99ab4978702915bdf9eddfa6f9/components/templates/src/global_fns/load_data.rs#L307

Comment 1 Michael S. 2021-08-05 21:24:46 UTC
Ok so the issue is caused by:
https://src.fedoraproject.org/rpms/zola/blob/rawhide/f/zola.spec#_51

sed -i -e 's/, "rustls-tls"//' components/{link_checker,templates}/Cargo.toml

removing rust-tls from reqwest is what make it fail, since it do not add native-tls back, since default-features=false is now false.

I will send a patch once I tested that.

Comment 3 Fedora Update System 2021-09-01 15:32:50 UTC
FEDORA-2021-c2ebbe0dac has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c2ebbe0dac

Comment 4 Fedora Update System 2021-09-01 15:33:08 UTC
FEDORA-2021-92b26ed23a has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-92b26ed23a

Comment 5 Fedora Update System 2021-09-01 19:27:47 UTC
FEDORA-2021-c2ebbe0dac has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c2ebbe0dac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c2ebbe0dac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-09-01 20:20:36 UTC
FEDORA-2021-92b26ed23a has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-92b26ed23a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-92b26ed23a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-09-09 17:32:14 UTC
FEDORA-2021-92b26ed23a has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-09-24 20:13:47 UTC
FEDORA-2021-c2ebbe0dac has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.