Skip to content

Use DecryptedPath for E2EE Files #14473

Open
@alperozturk96

Description

@alperozturk96

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();
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions