artifactory icon indicating copy to clipboard operation
artifactory copied to clipboard

Add support for overriding Created and Last-Modified dates on deploy

Open capyvara opened this issue 2 years ago • 3 comments

On migration/mirroring use cases, it's useful to be able to change the Created and Last Modified dates of the deployed artifacts, this PR allows to pass up an optional datetime override for both fields.

This is done by adding the X-Artifactory-Created and X-Artifactory-Last-Modified fields

capyvara avatar Mar 03 '22 17:03 capyvara

can you please add link to JFrog the documentation in PR description add info to the changelog and fix pre-commit issues

beliaev-maksim avatar Mar 04 '22 07:03 beliaev-maksim

@beliaev-maksim I don't think this is documented, I stole it from their nexus migration code: https://github.com/jfrog/nexus2artifactory/blob/master/nex2art/core/Upload.py

Do you think it's a problem?

capyvara avatar Mar 06 '22 00:03 capyvara

@capyvara @beliaev-maksim May be we can add the hack somewhere in the FAQ section in the readme.md ?

I'm not sure that we need to have dedicated parameters for the case, people use it rarely, but we should document this especially because official Artifactory Docs doesn't have the headers.

What do you think?

allburov avatar Mar 09 '22 03:03 allburov