ctfcli icon indicating copy to clipboard operation
ctfcli copied to clipboard

Sync ignore checksum

Open JPaja opened this issue 8 months ago • 4 comments

Option to ignore file checksum in case physical files gets removed while file cache still exists in database

JPaja avatar May 03 '25 09:05 JPaja

Just to make sure the intention for this is to force a reupload of the file to the server right?

ColdHeat avatar Dec 16 '25 22:12 ColdHeat

Okay I assume that this is for a situation where the file reference in the database is correct but the file itself needs to be reuploaded. I think this is okay but I imagine a better solution would be something like --force

ColdHeat avatar Dec 16 '25 22:12 ColdHeat

Yeah. I think issue i had was that I cleaned my s3 bucket but ctfd assumed that I still had the files uploaded.

JPaja avatar Dec 16 '25 22:12 JPaja

@JPaja looks like I don't have permissions to edit your branch. Here's what I think this change should look like:

                        # Allow users to specify sha1sum in ignore to force reuploads
                        if "sha1sum" not in ignore:
                            if local_file_sha1sum == remote_file_sha1sum:
                                continue

ColdHeat avatar Dec 16 '25 22:12 ColdHeat