https://bugzilla.redhat.com/show_bug.cgi?id=1226101
Bug ID: 1226101 Summary: $expected_checksum not correct in "Verifying checksums on Windows systems" Product: Fedora Documentation Version: devel Component: install-guide Assignee: pbokoc@redhat.com Reporter: iam@nnutter.com QA Contact: docs-qa@lists.fedoraproject.org CC: pbokoc@redhat.com, zach@oglesby.co
Created attachment 1031533 --> https://bugzilla.redhat.com/attachment.cgi?id=1031533&action=edit 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,
The "Verifying checksums on Windows systems" page is,
https://docs.fedoraproject.org/en-US/Fedora/22/html/Installation_Guide/sect-...
https://bugzilla.redhat.com/show_bug.cgi?id=1226101
dmpopof@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dmpopof@gmail.com
--- Comment #1 from dmpopof@gmail.com --- 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-... 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1226101
Pete Travis me@petetravis.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |me@petetravis.com Resolution|--- |DUPLICATE Assignee|pbokoc@redhat.com |me@petetravis.com Last Closed| |2016-02-02 09:30:10
--- Comment #2 from Pete Travis me@petetravis.com ---
*** This bug has been marked as a duplicate of bug 1175759 ***
docs-qa@lists.fedoraproject.org