server icon indicating copy to clipboard operation
server copied to clipboard

Configure the maximum version value to try with "occ encryption:fix-encrypted-version"

Open danxuliu opened this issue 3 years ago • 0 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe. When an encrypted file is marked as not encrypted (oc_filecache.encrypted = 0 in database) occ encryption:fix-encrypted-version can be used to fix the value. However, right now it only tries to increment the version up to 5 and then gives up. The encrypted version is incremented whenever the file is written, so in frequently written files that limit can be too low and the version may not be fixed, even if it would if a higher value was tried.

Describe the solution you'd like Extend occ encryption:fix-encrypted-version to configure the upper limit of the version to try.

Additional context Follow up to #31874

danxuliu avatar Dec 27 '22 13:12 danxuliu