Renaming encrypted file with Sharing enabled fails - share key not renamed
Steps to reproduce
- Enable encryption
- Enable sharing
- Upload document (.docx in my tests)
- Click rename on the document
- Type a new name and hit enter
- View error popup

- Note that this is not a shared document
- Refresh page
- Note the name actually changed
- Attempt to download document by clicking it

- See failure to decrypt
Expected behaviour
Files should be able to be renamed and then opened.
Actual behaviour
Files are successfully renamed but cannot be opened because the sharekey file for the cooresponding document is not renamed.
Server configuration
Operating system: Windows Server 2008R2 Web server: IIS 7.5 Database: MySql PHP version: 5.5.12 ownCloud version: (see ownCloud admin page) ownCloud 6.0.3 (stable) Updated from an older ownCloud or fresh install: Fresh install List of activated apps: Activity Deleted Files Documents Encryption First Run Wizard Full Text Search PDF Viewer Share Files Versions Video Viewer The content of config/config.php:
'removed', 'passwordsalt' => 'removed', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'myDomainIp', 2 => 'myDomain', ), 'datadirectory' => 'E:\datadirector', 'logdateformat' => 'F d, Y H:i:s', 'log_authfailip' => true, 'logtimezone' => 'America/New_York', 'dbtype' => 'mysql', 'version' => '6.0.3.1', 'dbname' => 'ownclouddbname', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'aUser', 'dbpassword' => 'removed', 'installed' => true, 'mail_smtpdebug' => false, 'mail_domain' => 'mail_domain', 'mail_smtpmode' => 'smtp', 'mail_smtphost' => 'ip', 'mail_smtpport' => port, 'mail_smtptimeout' => 50, 'mail_smtpsecure' => 'tls', 'mail_smtpauth' => true, 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpname' => 'no-reply', 'knowledgebaseenabled' => true, '‘enable_avatars’' => true, 'maintenance' => false, 'mail_smtppassword' => 'aPassword', 'forcessl' => true, ); **Are you using external storage, if yes which one:** local only **Are you using encryption:** Yes ### Client configuration Chrome Win 7 ### Logs #### Web server error log Nothing of interest #### ownCloud log (data/owncloud.log) Nothing of interest #### Browser log NA
It's worth noting that if I manually rename the share key file to match the renamed file, I am able to download the file.
Please report in the core repository (https://github.com/owncloud/core/issues/new). This is a server bug.