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

Use empty username when username is not present in snapshot. #7

Merged
merged 2 commits into from
Mar 18, 2023

Conversation

Enrico204
Copy link
Contributor

@Enrico204 Enrico204 commented Feb 6, 2023

This MR is fixing a crash when the snapshot has no username field in JSON. The missing username is replaced with a space.

(I have snapshots of my smartphone where the username key is missing)

in snapshot.

This commit is fixing a crash when the snapshot has
no username field in JSON. The missing username is
replaced with a space.
@ngosang
Copy link
Owner

ngosang commented Feb 10, 2023

Thank you. Could you check in restic cli if there is something in the user column. I'm ok with an empty value but maybe "unknown" or some value is more useful.

@Enrico204
Copy link
Contributor Author

The JSON produced by the restic snapshots --json has no "username" field for my smartphone snapshots, while a snapshot from a Linux host correctly contains that field.

Without the --json flag, there is no "username" column for both. I don't know if there is any flag to show that column.

@ngosang
Copy link
Owner

ngosang commented Mar 14, 2023

Thank you. I will merge it and publish a new release this weekend.

@ngosang ngosang merged commit 26bab7b into ngosang:main Mar 18, 2023
@ngosang
Copy link
Owner

ngosang commented Mar 18, 2023

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.

2 participants