"read error" with BLAKE3 CRC because of space in front of filename

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
WillyK
Junior Member
Junior Member
Posts: 2
Joined: 2022-08-25, 09:30 UTC

"read error" with BLAKE3 CRC because of space in front of filename

Post by *WillyK »

When I have a space as first character (either file or directory) and make a CRC with BLAKE3, it shows on check "read error.
If I remove the first space in the file or directory, the checksum can still be performed with the already existing BLAKE3 CRC file.
(Both TCMD 10.50 and TCMD 10.51RC3)

With checksums such as SHA256, md5, ... I don't have that problem.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *ghisler(Author) »

That's because the SHA256 list file format has a * in front of the file name, so TC knows that there is a space at the start of the name. The Blake3 format doesn't have that *, so TC just skips the spaces between checksum and name characters. I'm sorry but I don't see a solution here.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *Usher »

ghisler(Author) wrote: 2022-08-25, 17:06 UTC TC just skips the spaces
TC just adds TWO spaces so it should skip TWO spaces.
Andrzej P. Wozniak
Polish subforum moderator
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *Galizza »

 
Will this bug affect this Total planned feature?, thanks

ghisler(Author) wrote: 2022-06-01, 16:08 UTC Compare by content does not use hashes, it compares the two files directly.

I plan to use blake3 for the verify option when copying, and for the duplicate file finder.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *ghisler(Author) »

TC just adds TWO spaces so it should skip TWO spaces.
Other programs may add 1 or 3 spaces, I cannot know that. But I have checked what b3sum_windows_x64_bin.exe does, the official blake3 sum tool - it also adds exactly 2 spaces. So what I will do is ignore 1 or 2 spaces and keep the rest.
Will this bug affect this Total planned feature?, thanks
No, because it does not create a hash file.
Author of Total Commander
https://www.ghisler.com
WillyK
Junior Member
Junior Member
Posts: 2
Joined: 2022-08-25, 09:30 UTC

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *WillyK »

Thanks in advance from Antwerp, Belgium.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *ghisler(Author) »

This should be fixed in RC4, could someone please test it?
1. Rename a file with Shift+F6 by adding one or more spaces at the start
2. Select the file
3. Choose menu Files - Create CRC checksums
4. Create a BLAKE3 checksum
5. Select the BLAKE3 checksum file
6. Choose menu Files - Verify checksums
Step 6 did return a file not found error in RC3 and older.

26.08.22 Fixed: Verify checksums: Only skip 2 spaces between checksum and file name (unless the name starts with *) and consider the rest as being part of the file name (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: "read error" with BLAKE3 CRC because of space in front of filename

Post by *Horst.Epp »

Fix confirmed for RC4
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Post Reply