Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downlink files are placed in /tmp/<username>/fprime-downlink #128

Merged
merged 2 commits into from
May 8, 2023

Conversation

gjwatney
Copy link
Contributor

@gjwatney gjwatney commented May 5, 2023

Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

Downlinked files are placed in /tmp//fprime-downlink

Rationale

This fixes the problem described in nasa/fprime#1970

Testing/Review Recommendations

Let different users try and download files. The GDS should not throw a Permission Error

Future Work

Note any additional work that will be done relating to this issue.

@thomas-bc
Copy link
Collaborator

thomas-bc commented May 5, 2023

@gjwatney I'm not sure I understand the reason you're choosing /tmp/username here. Are you expecting the permissions to be different there than in /tmp ? I'm thinking this might be specific to your system.
As was mentioned in #1970 a good approach could be to handle the case where a permission error occurs and keep the process going instead of crashing.

@LeStarch
Copy link
Collaborator

LeStarch commented May 8, 2023

The primary issue is if multiple users run on one shared GDS box, then their instances of the GDS will collide.

@LeStarch
Copy link
Collaborator

LeStarch commented May 8, 2023

@thomas-bc for now I like this fix. We at some point should consider the following:

  1. A better place to log: temp directory from "tempfile" package. This will work, but is hard to find. "logs/downlink" to keep it with the other gds logs.
  2. Fix the permissions error in-case. However, fixing it here would not help the root issue as the file would not downlink.

@LeStarch LeStarch self-requested a review May 8, 2023 16:13
@LeStarch LeStarch merged commit 5e6499d into nasa:devel May 8, 2023
12 checks passed
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.

None yet

3 participants