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

Users download empty File when trying to Access Folder (dirty fix) #5403

Closed
Orilcious opened this issue Jun 14, 2017 · 2 comments
Closed

Users download empty File when trying to Access Folder (dirty fix) #5403

Orilcious opened this issue Jun 14, 2017 · 2 comments

Comments

@Orilcious
Copy link

Orilcious commented Jun 14, 2017

WARNING:

The downside of this fix is that all the shares from that resource are gone afterwards and have to be redone.

Steps to reproduce

Not sure how to reproduce this

Steps to solve

Admin > External storages > Click the Config button next to the storage thats buggy > Untick "Enable Sharing" > Tick "Enable sharing" again

Expected behaviour

The user can access a folder

Actual behaviour

The user downloads an empty file with the folder name when trying to access it in the browser.
Same issue for win/mac/linux and different browsers

Server configuration

Operating system:
Ubuntu 16.04 LTS

Web server:
Apache

Database:
SQL

PHP version:
PHP 7.0.15-0

Nextcloud version: (see Nextcloud admin page)
12.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 11

Where did you install Nextcloud from:
https://nextcloud.com/install/

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
IEnabled:
  - activity: 2.5.2
  - bruteforcesettings: 1.0.2
  - comments: 1.2.0
  - dav: 1.3.0
  - federatedfilesharing: 1.2.0
  - federation: 1.2.0
  - files: 1.7.2
  - files_external: 1.3.0
  - files_pdfviewer: 1.1.1
  - files_sharing: 1.4.0
  - files_texteditor: 2.4.1
  - files_trashbin: 1.2.0
  - files_versions: 1.5.0
  - files_videoplayer: 1.1.0
  - firstrunwizard: 2.1
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.1
  - notifications: 2.0.0
  - oauth2: 1.0.5
  - password_policy: 1.2.2
  - provisioning_api: 1.2.0
  - serverinfo: 1.2.0
  - sharebymail: 1.2.0
  - survey_client: 1.0.0
  - systemtags: 1.2.0
  - theming: 1.3.0
  - twofactor_backupcodes: 1.1.1
  - updatenotification: 1.2.0
  - user_ldap: 1.2.1
  - workflowengine: 1.2.0
Disabled:
  - admin_audit
  - encryption
  - gallery
  - user_external

Are you using external storage, if yes which one: local/smb/sftp/...
Windows Server SMB mounted in /etc/fstab
//192.168.0.201/sharename /mnt/mountpoint/ cifs auto,uid=33,user=user,REPLACED=REPLACED 0 0

Then I add external storage of type 'local' and point to the mountpoint.

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Active Directory

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 |                                                                                                                                                                                                                  |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                                                                                                                |
| hasPagedResultSupport         |                                                                                                                                                                                                                  |
| homeFolderNamingRule          |                                                                                                                                                                                                                  |
| lastJpegPhotoLookup           | 0                                                                                                                                                                                                                |
| ldapAgentName                 | REPLACED                                                                                                                                                                                                        |
| ldapAgentPassword             | ***                                                                                                                                                                                                              |
| ldapAttributesForGroupSearch  |                                                                                                                                                                                                                  |
| ldapAttributesForUserSearch   |                                                                                                                                                                                                                  |
| ldapBackupHost                |                                                                                                                                                                                                                  |
| ldapBackupPort                |                                                                                                                                                                                                                  |
| ldapBase                      | dc=REPLACED,dc=REPLACED                                                                                                                                                                                                     |
| ldapBaseGroups                | dc=REPLACED,dc=REPLACED                                                                                                                                                                                                    |
| ldapBaseUsers                 | dc=REPLACED,dc=REPLACED                                                                                                                                                                                                    |
| ldapCacheTTL                  | 600                                                                                                                                                                                                              |
| ldapConfigurationActive       | 1                                                                                                                                                                                                                |
| ldapDefaultPPolicyDN          |                                                                                                                                                                                                                  |
| ldapDynamicGroupMemberURL     |                                                                                                                                                                                                                  |
| ldapEmailAttribute            | mail                                                                                                                                                                                                             |
| ldapExperiencedAdmin          | 0                                                                                                                                                                                                                |
| ldapExpertUUIDGroupAttr       |                                                                                                                                                                                                                  |
| ldapExpertUUIDUserAttr        |                                                                                                                                                                                                                  |
| ldapExpertUsernameAttr        | sAMAccountName                                                                                                                                                                                                   |
| ldapGidNumber                 | gidNumber                                                                                                                                                                                                        |
| ldapGroupDisplayName          | cn                                                                                                                                                                                                               |
| ldapGroupFilter               | (&(|(objectclass=group))(|(cn=Owncloud User)))                                                                                                                                                                   |
| ldapGroupFilterGroups         | REPLACED                                                                                                                                                                                                    |
| ldapGroupFilterMode           | 0                                                                                                                                                                                                                |
| ldapGroupFilterObjectclass    | group                                                                                                                                                                                                            |
| ldapGroupMemberAssocAttr      | uniqueMember                                                                                                                                                                                                     |
| ldapHost                      | REPLACED                                                                                                                                                                                                    |
| ldapIgnoreNamingRules         |                                                                                                                                                                                                                  |
| ldapLoginFilter               | (&(&(|(objectclass=person)(objectclass=user))(|(|(memberof=CN=REPLACED User,OU=REPLACED,OU=REPLACED,DC=REPLACED,DC=REPLACED)(primaryGroupID=REPLACED))))(|(samaccountname=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid))(|(cn=%uid)))) |
| ldapLoginFilterAttributes     | cn                                                                                                                                                                                                               |
| ldapLoginFilterEmail          | 1                                                                                                                                                                                                                |
| ldapLoginFilterMode           | 0                                                                                                                                                                                                                |
| ldapLoginFilterUsername       | 1                                                                                                                                                                                                                |
| ldapNestedGroups              | 0                                                                                                                                                                                                                |
| ldapOverrideMainServer        |                                                                                                                                                                                                                  |
| ldapPagingSize                | 500                                                                                                                                                                                                              |
| ldapPort                      | 389                                                                                                                                                                                                              |
| ldapQuotaAttribute            |                                                                                                                                                                                                                  |
| ldapQuotaDefault              |                                                                                                                                                                                                                  |
| ldapTLS                       | 0                                                                                                                                                                                                                |
| ldapUserDisplayName           | displayname                                                                                                                                                                                                      |
| ldapUserDisplayName2          |                                                                                                                                                                                                                  |
| ldapUserFilter                | (&(|(objectclass=person)(objectclass=user))(|(|(memberof=CN=REPLACED ,OU=REPLACED,OU=REPLACED,DC=REPLACED,DC=REPLACED)(primaryGroupID=REPLACED))))                                                                               |
| ldapUserFilterGroups          | REPLACED                                                                                                                                                                                                    |
| ldapUserFilterMode            | 0                                                                                                                                                                                                                |
| ldapUserFilterObjectclass     | person;user                                                                                                                                                                                                      |
| ldapUuidGroupAttribute        | auto                                                                                                                                                                                                             |
| ldapUuidUserAttribute         | auto                                                                                                                                                                                                             |
| turnOffCertCheck              | 0                                                                                                                                                                                                                |
| turnOnPasswordChange          | 0                                                                                                                                                                                                                |
| useMemberOfToDetectMembership | 1                                                                                                                                                                                                                |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Client configuration

Browser:
All
Operating system:
All

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
[Among tons of warnings of some clients spamming the old url I found this]

Error	PHP	Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/nextcloud/lib/private/Files/Filesystem.php:806 Stack trace: #0 /var/www/nextcloud/lib/private/Files/View.php(2018): OC\Files\Filesystem::normalizePath('/Admin.Rauh/fil...') #1 /var/www/nextcloud/lib/private/Files/View.php(1156): OC\Files\View->unlockFile('/ oc_sus_dc01/A...', 1) #2 [internal function]: OC\Files\View->OC\Files\{closure}() #3 /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown at /var/www/nextcloud/lib/private/Files/Filesystem.php#806	2017-06-13T11:29:51+0200

Browser log

Browser log
-
@Orilcious Orilcious changed the title Solved: Users download empty File when trying to Access Folder Users download empty File when trying to Access Folder (dirty fix) Jun 14, 2017
@MorrisJobke
Copy link
Member

I don't know which folder is downloaded how, because those steps are missing in the issue here.

But it looks like #5543

@codeclinic
Copy link

I get this issue with the latest NextCloud version and the above "fix" doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants