X Tutup
Skip to content

[QA] fix-encrypted-version prints weird output while doing nothing #256

@jnweiger

Description

@jnweiger

Seen with encryption 1.5.0RC1 in owncloud 10.7.0RC1

  • enable encryption.
  • setup an external SFTP drive and configure it without encryption.
  • move 'ownCloud Manual.pdf' into the SFTP folder.
  • inspect the contents of the FTP server manually. The pdf is unencrypted. OK
  • run
    occ encryption:fix-encrypted-version -p SFTP/ownCloud\ Manual.pdf admin
Verifying the content of file /admin/files/SFTP/ownCloud Manual.pdf
Attempting to fix the path: /admin/files/SFTP/ownCloud Manual.pdf
Increment the encrypted version to 2
Increment the encrypted version to 3
Increment the encrypted version to 4
Increment the encrypted version to 5
Increment the encrypted version to 6
  • inspect the contents of the FTP server manually. The pdf is still unencrypted. Okayish. (What did it do???)

The amount of output increases on each invocation. The file never changes:

occ encryption:fix-encrypted-version -p SFTP/ownCloud\ Manual.pdf admin

Verifying the content of file /admin/files/SFTP/ownCloud Manual.pdf
Attempting to fix the path: /admin/files/SFTP/ownCloud Manual.pdf
Decrement the encrypted version to 5
Decrement the encrypted version to 4
Decrement the encrypted version to 3
Decrement the encrypted version to 2
Decrement the encrypted version to 1
Increment the encrypted version to 7
Increment the encrypted version to 8
Increment the encrypted version to 9
Increment the encrypted version to 10
Increment the encrypted version to 11

occ encryption:fix-encrypted-version -p SFTP/ownCloud\ Manual.pdf admin

Verifying the content of file /admin/files/SFTP/ownCloud Manual.pdf
Attempting to fix the path: /admin/files/SFTP/ownCloud Manual.pdf
Decrement the encrypted version to 10
Decrement the encrypted version to 9
Decrement the encrypted version to 8
Decrement the encrypted version to 7
Decrement the encrypted version to 6
Decrement the encrypted version to 5
Decrement the encrypted version to 4
Decrement the encrypted version to 3
Decrement the encrypted version to 2
Decrement the encrypted version to 1
Increment the encrypted version to 12
Increment the encrypted version to 13
Increment the encrypted version to 14
Increment the encrypted version to 15
Increment the encrypted version to 16

These operations take progressively longer. Scary. What is it doing?
option -vvv does not reveal anything new.

Expected behaviour: Nothing is done. Just print The file /admin/files/SFTP/ownCloud Manual.pdf is: OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup