-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[External storage - Google Drive] Owncloud doesn't handle special files and fails sync #24253
Comments
@Altyr mind providing the steps to create this special (map?) file ? |
We probably need to exclude these kind of files, it is unlikely that they can be synced as they would need to be exported in some way like docs/spreadsheet files are exported to ODF. |
@PVince81 of course.
|
Ah cool, thanks. I didn't know about this feature 😄 |
@PVince81 using https://developers.google.com/drive/v3/web/mime-types it's possible to detect and hide the files (tried a dirty hack). Obviously it would be much nicer to export the maps like it's done with google docs, but there doesn't seem to be any documentation on that. |
If you want to have a try fixing it yourself, check https://github.com/owncloud/core/blob/v9.0.1/apps/files_external/lib/google.php#L269. This is the loop that reads the file list from GDrive. It might be possible to check if the extension is the one to exclude and then just do |
I'll give it a try using ignore later today :) |
@PVince81 that pull-request seems to work for me. Other Google Docs files seem a little wonky too, but that might just be me. Updating the lib might be a good idea. |
Great stuff, thanks a lot! |
Your PR was merged, closing. Thanks ! |
@PVince81 and thank you for helping me make my first PR |
@Altyr well, and your second one which updated the library fixed even more than you thought, see #20481 (comment) |
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. |
Steps to reproduce
Expected behaviour
Sync folder contents or display file contents (even if it's just garbage or nothing at all)
Actual behaviour
Server configuration
Operating system:
Debian 8.4 Jessie
Web server:
Nginx 1.9.10
Database:
MariaDB 10.0.23
PHP version:
5.6.19
ownCloud version: (see ownCloud admin page)
9.0.1
Updated from an older ownCloud or fresh install:
Updated
Where did you install ownCloud from:
https://download.owncloud.org/download/repositories/stable/owncloud/
Signing status (ownCloud 9.0 and above):
No errors have been found.
List of activated apps:
Enabled:
Disabled:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
Dropbox and Google Drive
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Chromium 49.0.2623.108
Operating system:
Debian Stretch
Logs
Web server error log
None
ownCloud log (data/owncloud.log)
When trying to access the file using the webinterface:
Every time the sync client runs:
The text was updated successfully, but these errors were encountered: