Skip to content

Conversation

@marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Dec 15, 2025

Summary

When running long running tasks in background jobs or unit tests the temp dir may be cleaned up and is then no longer available.

Checklist

@marcelklehr marcelklehr requested a review from a team as a code owner December 15, 2025 14:04
@marcelklehr marcelklehr requested review from Altahrim, ArtificialOwl, CarlSchwan and icewind1991 and removed request for a team December 15, 2025 14:04
@marcelklehr marcelklehr added the 3. to review Waiting for reviews label Dec 15, 2025
@marcelklehr marcelklehr added this to the Nextcloud 33 milestone Dec 15, 2025
@marcelklehr marcelklehr force-pushed the fix/file-sequence-temp-dir branch from 53759d5 to 934ad51 Compare December 15, 2025 14:21
@marcelklehr marcelklehr changed the title fix(FileSequence): Do not cache temp dir but use ITempManager directly fix(FileSequence): Check whether temp dir still exists before using it Dec 15, 2025
Copy link
Collaborator

@Altahrim Altahrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized getTemporaryFolder have a random part so two processes will have different directory and the generator will probably generate non unique sequence numbers.

I hope this PR will fix the issue: #57094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants