client icon indicating copy to clipboard operation
client copied to clipboard

Renaming encrypted file with Sharing enabled fails - share key not renamed

Open JasonEades opened this issue 12 years ago • 2 comments

Steps to reproduce

  1. Enable encryption
  2. Enable sharing
  3. Upload document (.docx in my tests)
  4. Click rename on the document
  5. Type a new name and hit enter
  6. View error popup image
  7. Note that this is not a shared document
  8. Refresh page
  9. Note the name actually changed
  10. Attempt to download document by clicking it image
  11. 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

JasonEades avatar Jun 06 '14 16:06 JasonEades

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.

JasonEades avatar Jun 06 '14 19:06 JasonEades

Please report in the core repository (https://github.com/owncloud/core/issues/new). This is a server bug.

danimo avatar Jun 06 '14 19:06 danimo