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

Missing protection for preferences.json and config.json #8

Open
ncduy0303 opened this issue Nov 3, 2023 · 0 comments
Open

Missing protection for preferences.json and config.json #8

ncduy0303 opened this issue Nov 3, 2023 · 0 comments

Comments

@ncduy0303
Copy link
Owner

The User Guide mentioned warnings about editting the data files (incorrect format will reset all the data), but did not warn users about editting the preferences.json and config.json files that are also generated.

If some users set the content of preferences.json into:

{
  "guiSettings" : {
    "windowWidth" : 740.0,
    "windowHeight" : 600.0,
    "windowCoordinates" : null
  },
  "addressBookFilePath" : null,
  "eventsFilePath" : null,
  "financeFilePath" : null
}

and the config.json into:

{
  "logLevel" : "INFO",
  "userPrefsFilePath" : null
}

Problem: The application will not be able to start. A possible approriate behaviour for the application is to reset these files into default correct values rather than not being able to start.

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

1 participant