Repository navigation
Description
Steps to reproduce
Don't know how to reproduce. This appeared already in 7.0.4 version. Now we upgraded to 8.0.2 but the problem is still there
Expected behaviour
Browsing ownCloud files over web interface should show all the files.
Actual behaviour
Lot of files are not visible when browsing one web folder. At the beginning of the folder there are lots of folders and files visible, then there is lot of empty space and in the end there is like one file visible again. When hovering over empty space links are shown in URL bar - if you click on link of this file the file can be downloaded.
Server configuration
Operating system:
Debian 7.8
Web server:
NGINX (1.2.1-2.2)
Database:
MySQL (5.5.43-0)
PHP version:
PHP (5.4.4-14)
ownCloud version:
ownCloud 8.0.2 (stable)
Updated from an older ownCloud or fresh install:
Updated
List of activated apps:
Activity, Deleted files, External storage support, First Run Wizard, LDAP user and group backend, Mail Template Editor, PDF Viewer, Pictures, Server-side Encryption, Share Files, Text Editor, Versions, Video Viewer
The content of config/config.php:
$CONFIG = array (
'instanceid' => 'instanceid',
'passwordsalt' => '',
'trusted_domains' =>
array (
0 => '1.1.1.5',
1 => 'oc',
),
'datadirectory' => '/var/ownclouddata/',
'dbtype' => 'mysql',
'version' => '8.0.2.0',
'dbname' => 'dbname',
'dbhost' => 'localhost',
'dbtableprefix' => 'prefix',
'dbuser' => 'dbuser',
'dbpassword' => '',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'forcessl' => true,
'loglevel' => '0',
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'smtphost',
'mail_smtpport' => '25',
'logtimezone' => 'Europe',
'theme' => '',
'share_folder' => '/Shared',
'maintenance' => false,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'secret' => '',
);
Are you using external storage, if yes which one: local/smb/sftp/...
owncloud
Are you using encryption: yes/no
yes
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
AD
LDAP configuration (delete this part if not used)
|appid|configkey|configvalue|
|user_ldap|cleanUpJobOffset|600|
|user_ldap|enabled|yes|
|user_ldap|has_memberof_filter_support|1|
|user_ldap|home_folder_naming_rule||
|user_ldap|installed_version|0.5.0|
|user_ldap|last_jpegPhoto_lookup|0|
|user_ldap|ldap_agent_password||
|user_ldap|ldap_attributes_for_group_search||
|user_ldap|ldap_attributes_for_user_search||
|user_ldap|ldap_backup_host||
|user_ldap|ldap_backup_port||
|user_ldap|ldap_base|DC=example,DC=local|
|user_ldap|ldap_base_groups|DC=example,DC=local|
|user_ldap|ldap_base_users|DC=example,DC=local|
|user_ldap|ldap_cache_ttl|600|
|user_ldap|ldap_configuration_active|1|
|user_ldap|ldap_display_name|displayname|
|user_ldap|ldap_dn|CN=Comp-Ownc,OU=COM,OU=Company,DC=example,DC=local|
|user_ldap|ldap_email_attr|mail|
|user_ldap|ldap_experienced_admin|0|
|user_ldap|ldap_expert_username_attr|sAMAccountName|
|user_ldap|ldap_expert_uuid_group_attr||
|user_ldap|ldap_expert_uuid_user_attr||
|user_ldap|ldap_group_display_name|cn|
|user_ldap|ldap_group_filter|(&(|(objectclass=group))(|(cn=Dev)(CN=Comp-Ownc)(cn=Comp-admis)))|
|user_ldap|ldap_group_filter_mode|0|
|user_ldap|ldap_group_member_assoc_attribute|member|
|user_ldap|ldap_groupfilter_groups|Comp-DevComp-Owncloud Comp-admis|
|user_ldap|ldap_groupfilter_objectclass|group|
|user_ldap|ldap_host|dc300|
|user_ldap|ldap_login_filter|(&(&(|(objectclass=person))(|(memberof=CN=Comp-Ownc,OU=DL,OU=Company,DC=example,DC=local)(memberof=CN=Comp-Dev,OU=DL,OU=Company,DC=example,DC=local)(memberof=CN=Comp-admis,OU=DL,OU=Company,DC=example,DC=local)))(samaccountname=%uid))|
|user_ldap|ldap_login_filter_mode|0|
|user_ldap|ldap_loginfilter_attributes||
|user_ldap|ldap_loginfilter_email|0|
|user_ldap|ldap_loginfilter_username|1|
|user_ldap|ldap_nested_groups|0|
|user_ldap|ldap_nocase|1|
|user_ldap|ldap_override_main_server|0|
|user_ldap|ldap_paging_size|500|
|user_ldap|ldap_port|389|
|user_ldap|ldap_quota_attr||
|user_ldap|ldap_quota_def||
|user_ldap|ldap_tls|0|
|user_ldap|ldap_turn_off_cert_check|1|
|user_ldap|ldap_user_filter_mode|1|
|user_ldap|ldap_userfilter_groups||
|user_ldap|ldap_userfilter_objectclass||
|user_ldap|ldap_userlist_filter|(&(|(objectclass=person))(|(memberof=CN=Comp-Ownc,OU=DL,OU=Company,DC=example,DC=local)(memberof=CN=Comp-Dev,OU=DL,OU=Company,DC=example,DC=local)(memberof=CN=Comp-SystemAdministrators,OU=DL,OU=Company,DC=example,DC=local)))|
|user_ldap|ocsid|166061|
|user_ldap|types|authentication|
Client configuration
Browser:
Any (chrome, ff, opera)
Operating system:
OpenSUSE 13.2 64-bit
Logs
Web server error log
Adding log entries a about this directory
access.log
1.1.1.2 - - [24/Apr/2015:12:12:49 +0300] "GET /index.php/apps/files/ajax/list.php?dir=%2FDocuments%2Fsecurity&sort=name&sortdirection=asc HTTP/1.1" 200 10471 "https://URL2ownCloud.com/index.php/apps/files/?dir=%2FDocuments%2Fsecurity" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
1.1.1.2 - - [24/Apr/2015:12:12:49 +0300] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2FDocuments%2Fsecurity HTTP/1.1" 200 155 "https://URL2ownCloud.com/index.php/apps/files/?dir=%2FDocuments%2Fsecurity" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
1.1.1.2 - - [24/Apr/2015:12:12:59 +0300] "GET /index.php/apps/files/?dir=%2FDocuments%2Fsecurity HTTP/1.1" 200 4976 "https://URL2ownCloud.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
1.1.1.2 - - [24/Apr/2015:12:13:56 +0300] "GET /core/vendor/jquery/dist/jquery-migrate.min.map HTTP/1.1" 404 47 "https://URL2ownCloud.com/index.php/apps/files/?dir=%2FDocuments%2Fsecurity" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
1.1.1.2 - - [24/Apr/2015:12:15:42 +0300] "GET /index.php/apps/files/ajax/download.php?dir=%2FDocuments%2Fsecurity&files=raman.xls HTTP/1.1" 200 72704 "https://URL2ownCloud.com/index.php/apps/files/?dir=%2FDocuments%2Fsecurity" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
error.log
2015/04/24 12:13:56 [error] 7760#0: *34187 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 1.1.1.2, server: URL2ownCloud.com, request: "GET /core/vendor/jquery/dist/jquery-migrate.min.map HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "URL2ownCloud.com", referrer: "https://URL2ownCloud.com/index.php/apps/files/?dir=%2FDocuments%2Fsecurity"
ownCloud log (data/owncloud.log)
I'm adding log entries that have related to one file that is not visible but through link the file is accessible
{"reqId":"552b73a87fc56","app":"files_encryption","message":"delShareKey: delete share key: \/user_owner\/files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_1.shareKey","level":0,"time":"2015-04-13T10:43:36+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}
{"reqId":"552b73ab1a1a5","app":"files_encryption","message":"delShareKey: delete share key: \/user_owner\/files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_2.shareKey","level":0,"time":"2015-04-13T10:43:39+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}
{"reqId":"552b73b4d5eb5","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files_encryption\/keyfiles\/Documents\/security\/pp_v02-1.docx.key' !!! \ncache: Array\n(\n [fileid] => 48812\n [storage] => home::user_owner\n [path] => files_encryption\/keyfiles\/Documents\/security\/pp_v02-1.docx.key\n [parent] => 48596\n [name] => pp_v02-1.docx.key\n [mimetype] => application\/x-iwork-keynote-sffkey\n [mimepart] => application\n [size] => 244\n [mtime] => 1411549988\n [storage_mtime] => 1411549988\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 544ed3d1d30a3\n [permissions] => 27\n)\n \ndata: Array\n(\n [mimetype] => application\/x-iwork-keynote-sffkey\n [mtime] => 1428911030\n [size] => 244\n [etag] => 552b73b65be27\n [storage_mtime] => 1428911030\n [permissions] => 27\n [parent] => 48596\n)\n","level":0,"time":"2015-04-13T10:43:50+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}
{"reqId":"552b73b4d5eb5","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_owner.shareKey' !!! \ncache: Array\n(\n [fileid] => 49575\n [storage] => home::user_owner\n [path] => files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_owner.shareKey\n [parent] => 49204\n [name] => pp_v02-1.docx.user_owner.shareKey\n [mimetype] => application\/octet-stream\n [mimepart] => application\n [size] => 512\n [mtime] => 1411549988\n [storage_mtime] => 1411549988\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 544ed3d63bb57\n [permissions] => 27\n)\n \ndata: Array\n(\n [mimetype] => application\/octet-stream\n [mtime] => 1428911030\n [size] => 512\n [etag] => 552b73b6621b0\n [storage_mtime] => 1428911030\n [permissions] => 27\n [parent] => 49204\n)\n","level":0,"time":"2015-04-13T10:43:50+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}
{"reqId":"552b73bd4a570","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files_encryption\/keyfiles\/Documents\/security\/pp_v02-1.docx.key' !!! \ncache: Array\n(\n [fileid] => 48812\n [storage] => home::user_owner\n [path] => files_encryption\/keyfiles\/Documents\/security\/pp_v02-1.docx.key\n [parent] => 48596\n [name] => pp_v02-1.docx.key\n [mimetype] => application\/x-iwork-keynote-sffkey\n [mimepart] => application\n [size] => 244\n [mtime] => 1428911030\n [storage_mtime] => 1428911030\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 552b73b65be27\n [permissions] => 27\n)\n \ndata: Array\n(\n [mimetype] => application\/x-iwork-keynote-sffkey\n [mtime] => 1428911038\n [size] => 244\n [etag] => 552b73bed5a58\n [storage_mtime] => 1428911038\n [permissions] => 27\n [parent] => 48596\n)\n","level":0,"time":"2015-04-13T10:43:58+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}
{"reqId":"552b73bd4a570","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_owner.shareKey' !!! \ncache: Array\n(\n [fileid] => 49575\n [storage] => home::user_owner\n [path] => files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_owner.shareKey\n [parent] => 49204\n [name] => pp_v02-1.docx.user_owner.shareKey\n [mimetype] => application\/octet-stream\n [mimepart] => application\n [size] => 512\n [mtime] => 1428911030\n [storage_mtime] => 1428911030\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 552b73b6621b0\n [permissions] => 27\n)\n \ndata: Array\n(\n [mimetype] => application\/octet-stream\n [mtime] => 1428911038\n [size] => 512\n [etag] => 552b73bedd64e\n [storage_mtime] => 1428911038\n [permissions] => 27\n [parent] => 49204\n)\n","level":0,"time":"2015-04-13T10:43:58+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}
{"reqId":"552b73bd4a570","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_2.shareKey' !!! \ncache: Array\n(\n [fileid] => 151499\n [storage] => home::user_owner\n [path] => files_encryption\/share-keys\/Documents\/security\/pp_v02-1.docx.user_2.shareKey\n [parent] => 49204\n [name] => pp_v02-1.docx.user_2.shareKey\n [mimetype] => application\/octet-stream\n [mimepart] => application\n [size] => 512\n [mtime] => 1428911030\n [storage_mtime] => 1428911030\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 552b73b669c72\n [permissions] => 27\n)\n \ndata: Array\n(\n [mimetype] => application\/octet-stream\n [mtime] => 1428911038\n [size] => 512\n [etag] => 552b73bee3420\n [storage_mtime] => 1428911038\n [permissions] => 27\n [parent] => 49204\n)\n","level":0,"time":"2015-04-13T10:43:58+03:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php"}

Activity
eagles051387 commentedon Apr 25, 2015
I can confirm I have the same issue but my install is on ubuntu 14.04 with the package of OC8.0 at the time from the open suse build system. Mine was not an upgrade but a clean installation.
PVince81 commentedon Apr 27, 2015
Did you guys disable "Share API" in the admin page ? If you wanted to disable sharing, then please also deactivate the "Sharing" app.
Do you see any Javascript errors when trying to scroll down in that folder ?
kalletabur commentedon Apr 27, 2015
I haven't disabled it. Sharing API is enabled and we use sharing.
No javascript errors while scrolling.
PVince81 commentedon Apr 27, 2015
@kalletabur can you use the browser's DOM inspector on the white space to see if the elements exist there ? It could be some kind of weird rendering problem
atroxix commentedon Apr 27, 2015
When looking at Elements under Chrome's developer tools it can be seen tha at some point all lines forward are created with some transparent class:
I also see 2 errors:
PVince81 commentedon Apr 27, 2015
The transparent class is set on the rows to create an animation by removing it.
But something is preventing the JS code to do its work.
@atroxix you too confirm that you didn't disable "Share API" in the admin page ? (because that's a known issue: #15186)
Are you able to get the stack trace of that "toString" error ? (maybe with the debugger)
atroxix commentedon Apr 30, 2015
BTW, Kalle was reporting my error, so I just took over debugging my system myself ;)
So yes, haven't disabled "Share API".
About "toString" error - you mean this?
PVince81 commentedon Apr 30, 2015
@atroxix ok so the error happens here: https://github.com/owncloud/core/blob/v8.0.2/apps/files_sharing/js/share.js#L164
I guess maybe the attribute "data-share-owner" is missing on some rows in the list.
But it might not be the core issue, because if other JS are interrupted due to an error, they wouldn't get a chance to add that attribute.
Does this stack appear when reloading the file list page (complete reload of the web page) ?
Also, do you see any failing (red) calls in the network console ?
atroxix commentedon Apr 30, 2015
The error does not appear right away after reload, but when I start scrolling (not even hovering over any of this empty area).
Under Network I see 1 red line:
PVince81 commentedon Apr 30, 2015
Would you guys mind posting the content of your "oc_appconfig" table ? Make sure to censor private data, if applicable. It might help to find out config variations which might help reproduce the issue.
atroxix commentedon Apr 30, 2015
Here's the info from SQL dump (I hope I managed to get rid of all sensitive values there):
PVince81 commentedon Apr 30, 2015
Okay, the things you guys have in common so far:
@atroxix I see you enforced expire date and link password (which is a nice thing 😉) and disabled reshares. Let me try this locally.
PVince81 commentedon Apr 30, 2015
Just noticed that @kalletabur has nginx. @atroxix how about you ? (just to find more common stuff)
atroxix commentedon Apr 30, 2015
Kalle first created the issue on behalf of me, so we are speaking about the same issue ;)
30 remaining items
PVince81 commentedon Jul 2, 2015
AHA got it reproduced by creating a share at first, and the disallowing sharing for that group.
Steps will follow.
PVince81 commentedon Jul 2, 2015
Steps to reproduce
Expected result
List appears after scroll
Actual result
The list stops right before the file that was shared before the share interdiction.
JS console says:
So basically there is a contradiction: the user still has an existing share but is now not allowed to share any more.
PVince81 commentedon Jul 2, 2015
Raised #17346 for the issue about stray "forbidden" shares.
I'll provide a quickfix to make sure the JS code isn't confused by such situations.
PVince81 commentedon Jul 2, 2015
Quickfix here: #17349
atroxix commentedon Jul 2, 2015
That quickfix indeed fixes my issue at least on our test server with OwnCloud 8.0.2.
atroxix commentedon Jul 7, 2015
It seems the same root cause also causes the sync client in other computers to fail synchronization. Is there any other issue about this?
PVince81 commentedon Jul 7, 2015
Not that I'm aware of. The JS fix wouldn't help with this.
Mind opening a new ticket and post the owncloud.log matching the problem ?
atroxix commentedon Jul 7, 2015
OK: #17444
PVince81 commentedon Jul 7, 2015
@atroxix thanks a lot