Skip to content

Share brokes with empty (0 byte) files in Subfolders #7269

@Peac

Description

@Peac

Empty (0 byte) files in Subfolders of a shared folder cause all files below this empty one will remain enrypted.

Steps to reproduce

  1. Create a Folder Test (via Webinterface or local doesn't matter)
  2. Create 2 Subfolders (e.g. A and B)
  3. Create a (local) empty txt file, upload it into Subfolder A
  4. Create a (local) filled txt file, upload it into Subfolder B
  5. Share the Test Folder via Link or with another user.

Expected behaviour

The share (via Webinterface or on a client) should view both directories and both files.

Actual behaviour

The filled txt file isn't shown. Instead it shows the message: "Die Datei kann nicht entschlüsselt werden, da die Datei möglicherweise eine geteilte Datei ist. Bitte frage den Datei-Besitzer, dass er die Datei nochmals mit Dir teilt. "
A local syncclient (version 1.5.1) shows a "Error302".

If you Share a lot of Subfolder like this:
Share:
->Subfolder A
--->Document A1 (not empty)
->Subfolder B
--->Document B1 (0 byte, can also be a pdf or a jpg)
--->Document B2 (not empty)
->Subfolder C
--->Document C1 (not empty)
Then you see Document A1 like it should, without an error.
But the documents B2 and C1 produce the error above.

Server configuration

Operating system:
Ubuntu 12.04
Web server:
Apache2 2.2.22
Database:
MySQL 5.5.35
PHP version:
PHP5 5.3.10
ownCloud version:
6.0.1 (stable)
Updated from an older ownCloud or fresh install:
Updated from an older ownCloud

List of activated apps:
Calendar
Contacts
Deleted files
Documents
Encryption
ownCloud dependencies info
PDF Viewer
Pictures
Share Files
Versions
Video Viewer
Mozilla Sync

The content of config/config.php:

'xxx', 'passwordsalt' => 'xxx', 'datadirectory' => '/var/www/owncloud/data', 'dbtype' => 'mysql', 'version' => '6.0.0.16', 'dbname' => 'xxx', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'xxx', 'dbpassword' => 'xxx', 'installed' => true, 'forcessl' => true, 'maxZipInputSize' => 0, 'allowZipDownload' => true, 'loglevel' => '2', 'theme' => '', 'maintenance' => false, ); **Are you using encryption:** yes/no yes ### Client configuration **Browser:** Firefox 27.0.1 **Operating system:** Windows 7 Ultimate 64bit ### Logs #### Web server error log Warning PHP Undefined index: isPreviewAvailable at /var/www/owncloud/apps/files/templates/part.list.php#21 Error hook error while running hook (OCA\Encryption\Hooks::postShared): Cannot mutliKeyEncrypt empty plain content #### ownCloud log (data/owncloud.log) {"app":"hook","message":"error while running hook (OCA\Encryption\Hooks::postShared): Cannot mutliKeyEncrypt empty plain content","level":3,"time":"2014-02-18T17:21:32+00:00"} {"app":"PHP","message":"Undefined index: isPreviewAvailable at \/var\/www\/owncloud\/apps\/files\/templates\/part.list.php#21","level":2,"time":"2014-02-18T17:21:35+00:00"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions