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 DecryptedPath for E2EE Files #14473

Open
alperozturk96 opened this issue Jan 28, 2025 · 0 comments
Open

Use DecryptedPath for E2EE Files #14473

alperozturk96 opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@alperozturk96
Copy link
Collaborator

alperozturk96 commented Jan 28, 2025

Some screens still use an encrypted path for an encrypted folder. In the user interface, only the decrypted path should be used. Encrypted path is not meaningful for the user and the UI.

For instance, instead of the path “Abc/IrsB2QWwzF4i6neM8kcT6A==”, the path “Abc/my_folder,” should be displayed.

public String getDecryptedPath(OCFile file) {
    FileEntity entity = fileDao.getFileById(file.getFileId());
    if (entity == null) {
        return file.getDecryptedRemotePath();
    }

    return entity.getPathDecrypted();
}
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