Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1226101

Summary: $expected_checksum not correct in "Verifying checksums on Windows systems"
Product: [Retired] Fedora Documentation Reporter: Nathaniel Nutter <iam>
Component: install-guideAssignee: Pete Travis <me>
Status: CLOSED DUPLICATE QA Contact: Fedora Docs QA <docs-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: develCC: dmpopof, me, pbokoc, zach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-02 14:30:10 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:
Attachments:
Description Flags
Fedora-Workstation-22-x86_64-CHECKSUM none

Description Nathaniel Nutter 2015-05-29 02:16:48 UTC
Created attachment 1031533 [details]
Fedora-Workstation-22-x86_64-CHECKSUM

Description of problem:

When following the steps in "Verifying checksums on Windows systems" the value of the `$expected_checksum` is 'sha256' because it is splitting the line and grabbing the first word.

Version-Release number of selected component (if applicable): 22, full URL in "Additional info".

How reproducible: 100%

Steps to Reproduce:

1. Download Fedora-Live-Workstation-x86_64-22-3.iso.
2. Download Fedora-Workstation-22-x86_64-CHECKSUM.txt.
3. Follow PowerShell instruction from "Verifying checksums on Windows systems".

Actual results:

`$expected_checksum` equals 'sha256'.

PS C:\Users\...\Downloads> $checksum_file = "Fedora-Workstation-22-x86_64-CHECKSUM.txt"
PS C:\Users\...\Downloads> $image = "Fedora-Live-Workstation-x86_64-22-3.iso"
PS C:\Users\...\Downloads> $expected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[0].ToLower()
PS C:\Users\...\Downloads> $expected_checksum
sha256

Expected results:

`$expected_checksum` equals '615abfc89709a46a078dd1d39638019aa66f62b0ff8325334f1af100551bb6cf'.

PS C:\Users\...\Downloads> $expected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[3].ToLower()
PS C:\Users\...\Downloads> $expected_checksum
615abfc89709a46a078dd1d39638019aa66f62b0ff8325334f1af100551bb6cf

Additional info:

I've attached the "Fedora-Workstation-22-x86_64-CHECKSUM.txt" since it is not very large but it's from,

https://getfedora.org/verify

The "Verifying checksums on Windows systems" page is,

https://docs.fedoraproject.org/en-US/Fedora/22/html/Installation_Guide/sect-verifying-images.html

Comment 1 dmpopof 2015-12-07 08:57:28 UTC
The same situation with Server 23 Documentation verifying images page. 
Page with same error is https://docs.fedoraproject.org/en-US/Fedora/23/html/Installation_Guide/sect-verifying-images.html
checksum_file was formed from https://getfedora.org/static/checksums/Fedora-Server-23-x86_64-CHECKSUM

Fixing index to "3" does the script work.
I propose to correct this error in all project documentation once.

Comment 2 Pete Travis 2016-02-02 14:30:10 UTC

*** This bug has been marked as a duplicate of bug 1175759 ***