-
Notifications
You must be signed in to change notification settings - Fork 68
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
Invalid preferences format #53
Comments
That's very strange... the SHA-256 representation of a string shouldn't contain characters that strange. |
I happens with any kind of string, including the demo strings. Not sure if this might be an OS-related issue? I'm using Manjaro Linux. |
Might be OS related, I will have a look if I can reproduce this issue with Manjaro. |
Hi @ArvidNy Therefore, I implemented #55, in which I changed the encoding to be correct in all circumstances. |
Just checked this out and it seems to work now. I didn't get any warning saying that the keys would be migrated, just the previous warning saying it had an invalid preferences format, but after that it worked as expected. However, since no settings have been successfully stored before, no settings had to be migrated anyways. I supposed that's only relevant/valid for user without these issues. |
Thanks @ArvidNy! So did I understand this correctly, in subsequent launches after the initial error, everything worked fine? |
That's correct, @martinfrancois. |
Thanks! In this case, I will merge the changes. |
This needs to be fixed for JDK8 too. Can you please update. @ArvidNy |
@Adyel, this works for me with JDK8 now. If you still have issues, you should provide @martinfrancois and the other members of the project with more information about what you are experiencing and I'm sure they'll help you out when they get the chance. A way around it is to create your own store handler class where you could set it up to store the preferences any way you'd like, using this class as a foundation, and use that as the first variable before any other categories:
|
@ArvidNy He means this should be fixed in the JDK 8 branch of PreferencesFX. Apparently the fix has not been merged for that branch. For now I am using version 2.1.0 and the bug remains. |
For some reason, I get the above error each time I try to open previous settings. After some investigation, this seem to be because of characters that are stored that the preference file does not support. This is an example of a preference:
Note how it says e.g.

instead of the character it is supposed to show. Removing those characters made the preference file open again. Changing this line to the line below resolves the issue for me.return Base64.getEncoder().encodeToString(messageDigest.digest());
Has anyone else noticed this issue and would there be any other problems with changing the line to the above?
The text was updated successfully, but these errors were encountered: