Diffusion Ark 3a21006fa55c

Handle locked RAR archives

Authored by rthomsen on Apr 7 2019, 5:34 PM.

Description

Handle locked RAR archives

RAR archives can have a "locked" property essentially making them
readonly. Currently, Ark doesn't handle this properly and fails silently
if the user tries to modify the archive (e.g. adding files).

This diff adds a virtual method ReadOnlyArchiveInterface::isLocked()
with a default implementation returning false. The method is overridden
by the RAR plugin which checks if the archive is locked when listing.
ReadWriteArchiveInterface::isReadOnly() checks isLocked() when
determining the readonly status of the archive.

BUG: 368851
FIXED-IN: 19.04.0
Differential Revision: D20122

Details

Committed
rthomsenApr 7 2019, 5:34 PM
Differential Revision
D20122: Properly handle locked RAR archives
Parents
R36:45fc55b914b8: clirar: Remove double backslashes in isPasswordPrompt()
Branches
Unknown
Tags
Unknown