Skip to content

GZIP header warnings #132

@bpinsard

Description

@bpinsard

Testing the new validator, I do get these new warnings on BIDS generated with heudiconv/dcm2niix:

	[WARNING] GZIP_HEADER_MTIME The gzip header contains a non-zero timestamp.
This may leak sensitive information or indicate a non-reproducible conversion process.

		/sub-01/ses-001/anat/sub-01_ses-001_rec-norm_T2w.nii.gz
		/sub-01/ses-001/anat/sub-01_ses-001_T2w.nii.gz

		17 more files with the same issue

	Please visit https://neurostars.org/search?q=GZIP_HEADER_MTIME for existing conversations about this issue.

	[WARNING] GZIP_HEADER_FILENAME The gzip header contains a non-empty filename.
This may leak sensitive information or indicate a non-reproducible conversion process.

		/sub-01/ses-001/anat/sub-01_ses-001_rec-norm_T2w.nii.gz
		/sub-01/ses-001/anat/sub-01_ses-001_T2w.nii.gz

		17 more files with the same issue

	Please visit https://neurostars.org/search?q=GZIP_HEADER_FILENAME for existing conversations about this issue.

I think the "sensitive information leak" warning might make some people freak-out.
I guess that such header info are not necessarily sensitive (time of compression? path to uncompressed file), but could be if BIDS conversion is automated after acquisition.

I also see the value of being able to get identical files when running dcm2niix at different times.
Are there GZIP /pigz options to not ship such info in the gzip header? And a way for dcm2niix to use that option?
@neurolabusc ?
If so, we could maybe set heudiconv (@yarikoptic ) /dcm2bids (@arnaudbore) ... to use such options ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions