Project

General

Profile

Bug #25490

tmpfile on separate device fails to rename when factory writes tokens

Added by Dennis Box 2 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02/08/2021
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

glidefactoryEntry.py uses os.tempfile and util.file_tmp2final to safely read IDTOKENS and SCITOKENS sent from the frontend after decryption. Unfortunately, os.tmpfile can create files on a separate device than where the factory code is running, causing util.file_tmp2final to fail.

A way around this is to give os.tmpfile the 'dir=' keyword, ensuring that this directory is on the same device.

History

#1 Updated by Dennis Box 2 months ago

  • Assignee changed from Dennis Box to Marco Mambelli
  • Status changed from New to Feedback

#2 Updated by Dennis Box 2 months ago

  • Subject changed from tmpfile on seperate device fails to rename when factory writes tokens to tmpfile on separate device fails to rename when factory writes tokens

#3 Updated by Marco Mambelli 2 months ago

  • Assignee changed from Marco Mambelli to Dennis Box

OK to merge

#4 Updated by Dennis Box 2 months ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF