X Tutup
Skip to content

Changing metadata updates a resource's modified time#1984

Merged
joachimvh merged 1 commit intomainfrom
fix/metadata-modified-time
Jan 30, 2025
Merged

Changing metadata updates a resource's modified time#1984
joachimvh merged 1 commit intomainfrom
fix/metadata-modified-time

Conversation

@joachimvh
Copy link
Member

📁 Related issues

Discussed in matrix. Problem was that updating metadata did not change the last modified time of a resource, causing the ETag to not update. This was especially a problem for contains whose representation is partially generated by their metadata.

✍️ Description

This now updates the last modified time of a resource when the metadata is modified. Since the FileDataAccessor uses mtime from disk, there we have to take the max of the mtime for both the resource itself and its metadata.

@joachimvh joachimvh merged commit cbd04c4 into main Jan 30, 2025
37 checks passed
@joachimvh joachimvh deleted the fix/metadata-modified-time branch January 30, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup