Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with oc 8.1.1 external storage google drive with encryption on? #18494

Closed
tygerlord opened this issue Aug 23, 2015 · 14 comments
Closed

Comments

@tygerlord
Copy link

Using external storage with encryption enabled seems not working correctly. I configure external storage to get my google drive access and I upload a file. The file is encrypted like it will be due to my configuration, I can have a look on google drive interface and see the file unreadable. Unfortunatly the file stay encrypted when I try to read it under my owncloud interface....

@karlitschek
Copy link
Contributor

Can you please open a bug report using the issue template ?
https://github.com/owncloud/core/blob/master/CONTRIBUTING.md
@schiesbn

@tygerlord
Copy link
Author

Ah yes of cours, sorry.:

Steps to reproduce

  1. Configure External storage google and use server default encryption
  2. Use ownCloud Android APP 1.7.2 and upload a file (for example an image) into google external storage
  3. Open owncloud on computer with firefox
  4. Try to download the image file

Expected behaviour

The file should be decrypted and readable

Actual behaviour

File stay encrypted
(on other way if you upload file from computer, Android APP 1.7.2 can correctly
download it)

Server configuration

Operating system: Linux otenty 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux

Web server: Apache/2.2.22 (Debian)

Database: mysql Ver 14.14 Distrib 5.5.43, for debian-linux-gnu (x86_64) using readline 6.2

PHP version: PHP 5.4.41-0+deb7u1

ownCloud version: ownCloud 8.1.1 (stable)

Updated from an older ownCloud or fresh install: update from 8.0.5.2

List of activated apps:

Enabled:

  • activity: 2.0.1
  • documents: 0.8.2
  • encryption: 1.0.0
  • external: 1.2
  • files: 1.1.10
  • files_external: 0.2.3
  • files_locking:
  • files_pdfviewer: 0.7
  • files_sharing: 0.6.2
  • files_texteditor: 0.4
  • files_trashbin: 0.6.3
  • files_versions: 1.0.6
  • firstrunwizard: 1.1
  • provisioning_api: 0.2
  • updater: 0.6
  • user_external: 0.4
    Disabled:
  • admin_dependencies_chk
  • bookmarks
  • calendar
  • contacts
  • files_encryption
  • files_videoviewer
  • gallery
  • search_lucene
  • tasks
  • templateeditor
  • user_ldap
  • user_webdavauth

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system --public
from within your ownCloud installation folder

[InvalidArgumentException]                                
  There are no commands defined in the "config" namespace. 

$CONFIG = array (
'instanceid' => '523acc78037f0',
'passwordsalt' => 'xxxxxxxxxxxxxx',
'datadirectory' => '/home/xxxxxxxxxxxxx',
'dbtype' => 'mysql',
'version' => '8.1.1.3',
'dbname' => 'odrive',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxxxxxxxxxx',
'dbpassword' => 'xxxxxxxxxxxxxx',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'xxxxxxxxxxxxxxxxx',
'mail_smtpport' => 587,
'mail_smtpauth' => true,
'mail_smtpauthtype' => 'xxxxxxxxxx',
'mail_smtpname' => 'xxxxxxxxxxxxx',
'mail_smtppassword' => 'xxxxxxx',
'mail_smtpsecure' => '',
'theme' => '',
'maintenance' => false,
'ldapIgnoreNamingRules' => false,
'force_ssl' => true,
'forcessl' => true,
'trusted_domains' =>
array (
0 => 'xxxxxxxxxxxxxxxxxxx',
),
'secret' => 'xxxxxxxxxxxxxxxxxxxxxx',
'forceSSLforSubdomains' => true,
'enable_preview' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'loglevel' => 0,
'singleuser' => false,
);

Are you using external storage, if yes which one: google drive

Are you using encryption: yes

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 40

Operating system: Windows 10 And Ubuntu 15.04

Logs

Web server error log

ownCloud log (data/owncloud.log)

{"reqId":"IJH/t5KVzUxcmSfBHw/e","remoteAddr":"86.215.7.40","app":"files_locking","message":"INFO: Incrementing lock type 1 count for /home/odrive-datas/files_encryption/keys/files/GoogleDrive/Screenshot_2015-05-14-21-17-20.jpeg/OC_DEFAULT_MODULE/francois.shareKey","level":0,"time":"2015-08-25T07:51:28+00:00","method":"GET","url":"/index.php/apps/files_texteditor/ajax/loadfile?filename=Screenshot_2015-05-14-21-17-20.jpeg&dir=%2FGoogleDrive"}
{

Browser log

@PVince81
Copy link
Contributor

Can you try temporarily disabling the "files_locking" app and see if it solves the issue ?

@tygerlord
Copy link
Author

Well see!!
It seems working with File Locking plugin disabled...

@PVince81
Copy link
Contributor

Okay, I also see that you have 8.1.1, you might want to try upgrading to 8.1.3 to get the latest fixes.

@tygerlord
Copy link
Author

Oupps

Sorry It's not working in fact, I've made a bad test... File still encrypted if put in google drive with
owncloud android application and read with web navigator...

For 8.1.3 release the interface don't says that this new release is here:
À jour. Dernière vérification : 17 septembre 2015 15:06:19 UTC+2

@PVince81
Copy link
Contributor

yeah, if you're using the updater app it might be lagging behind a bit...

@tygerlord
Copy link
Author

Another things I feel amazing the configuration of google drive for an user, I expect to have a validation screen from google (like connect via google) and give right to use drive apis for my account,
instead I need to register to google like a service provider and report credentials in owncloud...

So I think I don't do the right thing, because no developers users will don't do this...

I ask myself if what I say is clear...

@PVince81
Copy link
Contributor

Yes I know what you mean. Unfortunately it is not possible to provide global keys or a global app for everyone out there as it is likely that there are API usage quotas.

Did 8.1.3 appear in the update ?

@tygerlord
Copy link
Author

Not yet.

Quotas will apply by owncloud instance and limits should be managed by system administrator of the instance...

@PVince81
Copy link
Contributor

No, API quota is not the same as data quota. API quota is what the Google API allows to be used. Some services don't let you call their API more than 10000 times (or another value) within a certain time. If every OC user in the world would use the same keys/app, the API quota will be reached very quickly.

@tygerlord
Copy link
Author

For an instance of owncloud (my company for exemple the administrator provide an owncloud service), my administrateur must create a google app and get credentials for this app. He puts this credentials in administration. So credentials are for one instance of owncloud and not every instance and so quota applies to this instance.

@PVince81
Copy link
Contributor

PVince81 commented Mar 2, 2016

Please upgrade to 8.2.2 where GDrive should work fine with encryption. 8.2.3 will have even more fixes.

Regarding user API rate quota limit, see #20481

@PVince81 PVince81 closed this as completed Mar 2, 2016
@DeepDiver1975 DeepDiver1975 changed the title Problem with oc 8.1.1 external storage google drive with encryption on? Problem with oc 8.1.1 external storage google drive with encryption on? Mar 2, 2016
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants