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

fix: Update KeysUtil.java #72

Merged
merged 13 commits into from
Jan 15, 2023
Merged

fix: Update KeysUtil.java #72

merged 13 commits into from
Jan 15, 2023

Conversation

TylerTrott
Copy link
Contributor

- What I did
Resolved issue #71

- How I did it
Change path

- How to verify it
Eyeball path, should be fine, nothing crazy

- Description for the changelog
Update Path for getKeysFile to look in ~/.atsign/keys

@TylerTrott TylerTrott changed the title Update KeysUtil.java fix: Update KeysUtil.java Nov 9, 2022
Copy link
Member

@JeremyTubongbanua JeremyTubongbanua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 21 must be edited to user.home too

@TylerTrott
Copy link
Contributor Author

Line 21 must be edited to user.home too

Good catch, updated accordingly

Copy link
Contributor

@gkc gkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure I understand the code changes completely ...

I think logic we want is:

  • loadKeys

    • check first if file exists at ~/.atsign/keys/$atSign_key.atKeys
    • if it does, load it
    • else
      • check if file exists at ./keys/$atSign_key.atKeys
      • If it does, load it but also log a warning saying "keys files found in deprecated location - please move to ~/.atsign/keys directory" or similar
  • saveKeys

    • save file to ~/.atsign/keys/$atSign_key.atKeys and log an info message stating the same

@JeremyTubongbanua
Copy link
Member

JeremyTubongbanua commented Nov 15, 2022

@TylerTrott Lots of UMass students are using at_java for their Android Studio projects

Another thing to consider is how the apps will access their .atKeys files

@gkc
Copy link
Contributor

gkc commented Nov 15, 2022 via email

Copy link
Contributor

@gkc gkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know once you've implemented the third test!

@gkc gkc dismissed JeremyTubongbanua’s stale review January 15, 2023 13:54

Changes requested were made

@gkc gkc merged commit 4c10116 into atsign-foundation:trunk Jan 15, 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.

3 participants