Backup fails when encrypted file copied from NTFS to FAT

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Backup fails when encrypted file copied from NTFS to FAT

Post by admin »

PeterH wrote:
admin wrote:
Tamil wrote:Backup fails when encrypted file from NTFS is copied to FAT file system.
Fixed. Thanks!
That means? If you cannot store it encrypted (i.e. on FAT) you store it decrypted? And if so: do you give info to the user?
Yes, I currently went for the quick seamless ( :wink: ) version: no questions, just copy (decrypted). Thinking: if you select "Backup" you want to back them up all.

I'm ready to receive feedback now. So you'd say, ask what to do when the first encrypted file is met? Or, have a checkbox in Config: "Decrypt encrypted files when copying to FAT" or so...?

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

Hard to say, there will be different wishes.
But as a simple default, I think: copy file (do not drop) and give a message.
Other: for first encrypted file ask for "CopyAll, CopyUnencrypted (and maybe Cancel)"

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

PeterH wrote:Hard to say, there will be different wishes.
But as a simple default, I think: copy file (do not drop) and give a message.
Other: for first encrypted file ask for "CopyAll, CopyUnencrypted (and maybe Cancel)"
When in doubt, follow Explorer. But in this case Explorer's message box (at least in German) is confusing. It says the file cannot be copied without losing the encryption. Then it offers a button "Ignore". Now, what does ignore mean: "skip" (ignore the file) or "copy anyway" (ignore the decryption)? Well, I tried it and it means "Copy anyway".

I would like to see these buttons:

Copy
Copy all encrypted files
Skip
Skip all encrypted files
Cancel

OTOH, this might be a bit overdone...

Other opinions out there?

Tamil
Posts: 129
Joined: 10 Sep 2006 14:30
Location: .in
Contact:

Re: Backup fails when encrypted file copied from NTFS to FAT

Post by Tamil »

admin wrote:
Tamil wrote:Backup fails when encrypted file from NTFS is copied to FAT file system.
Fixed. Thanks!
Thanks.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Backup fails when encrypted file copied from NTFS to FAT

Post by admin »

admin wrote:
PeterH wrote:
admin wrote:
Tamil wrote:Backup fails when encrypted file from NTFS is copied to FAT file system.
Fixed. Thanks!
That means? If you cannot store it encrypted (i.e. on FAT) you store it decrypted? And if so: do you give info to the user?
Yes, I currently went for the quick seamless ( :wink: ) version: no questions, just copy (decrypted). Thinking: if you select "Backup" you want to back them up all.
BTW, according to the MS docs, this (how it works now in XY under all OSs) has always been the (official, Explorer) behavior under Win2000:
Windows 2000: When CopyFile is used to copy an encrypted file, the function attempts to encrypt the destination file with the default keys. No attempt is made to encrypt the destination file with the keys used in the encryption of the source file. If it cannot be encrypted, CopyFile completes the copy operation without encrypting the destination file.

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Post by mwb1100 »

admin wrote: I would like to see these buttons:

Copy
Copy all encrypted files
Skip
Skip all encrypted files
Cancel

OTOH, this might be a bit overdone...
I'd agree with this except to make it simpler, boil it down to:

Code: Select all

Copy encrypted files
Skip encrypted files
Cancel
I think it would be rare for a user to start a multi-file operation, then decide that only one encrypted file should be copied and others handled differently, so why have that option cluttering up the dialog? If the user is dealing with multiple files but just wants one encrypted to copy over, then he should cancel and rethink what he's doing.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

mwb1100 wrote:... boil it down to:

Code: Select all

Copy encrypted files
Skip encrypted files
Cancel
I think it would be rare for a user to start a multi-file operation, then decide that only one encrypted file should be copied and others handled differently, so why have that option cluttering up the dialog? If the user is dealing with multiple files but just wants one encrypted to copy over, then he should cancel and rethink what he's doing.
Okay, I agree. Could you give me the English text of the respective Shell message box ("The file blahblah can't be copied.... encryption is lost." or so), or a better text if you have one. Or how do you like my own attempt:

The file "blahblah" is encrypted. If you copy or move an encrypted file to a FAT or FAT32 drive, the file is automatically decrypted before being copied or moved.

Buttons:
Copy encrypted files (DEFAULT)
Skip encrypted files
Cancel

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Post by mwb1100 »

The Explorer message is:
The file 'test.txt' cannot be copied or moved without losing its encryption.
With your buttons, that message is short, to the point, and not confusing.

I think you should avoid mentioning FAT or FAT32 as the destination may be webdav or some other network thing that has nothing to do with FAT but still does not support encryption.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

mwb1100 wrote:The Explorer message is:
The file 'test.txt' cannot be copied or moved without losing its encryption.
With your buttons, that message is short, to the point, and not confusing.

I think you should avoid mentioning FAT or FAT32 as the destination may be webdav or some other network thing that has nothing to do with FAT but still does not support encryption.
Yep, perfect.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

...not reading for some hours.
Just want to say: full agree to current ideas!
But a small problem: what means cancel? If part of work is done, it will be left incomplete? In this case, again: please give a note...

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

PeterH wrote:...not reading for some hours.
Just want to say: full agree to current ideas!
But a small problem: what means cancel? If part of work is done, it will be left incomplete? In this case, again: please give a note...
Thís is how the Shell does it. It's the standard for Cancel anywhere, or?

BTW, I won't have the time to built this in before the release of 6.50.

Post Reply