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

shared-state creates an unnecesary file when doing get #533

Closed
nicopace opened this issue Jun 17, 2019 · 2 comments
Closed

shared-state creates an unnecesary file when doing get #533

nicopace opened this issue Jun 17, 2019 · 2 comments
Assignees

Comments

@nicopace
Copy link
Member

nicopace commented Jun 17, 2019

Expected behaviour: for the get to be read-only
Actual behaviour: I called shared-state with a typo (one mispelled letter), and it created a file in /tmp/shared-state/data with that mispelled typo.

# shared-state get Dnsmasq-hosts.json
[]
# ls /tmp/shared-state/data/
... Dnsmasq-hosts.json ...
@stale
Copy link

stale bot commented Jun 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Jun 7, 2020
@ilario
Copy link
Member

ilario commented Mar 3, 2023

Maybe it gets created here, I did not check in order to confirm:

self.storageFD = nixio.open(
self.dataFile, nixio.open_flags("rdwr", "creat") )

Due to the lack of documentation (#492) I have no idea if this is a bug or not.
@G10h4ck or @spiccinini could know.
For now, as it is not clearly a bug and its impact seems minimal, I am going to close this. Feel free to re-open.

@ilario ilario closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants