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

Zip files larger than 4GB from NC 16.0.1 cannot be opened by anybody #15871

Closed
jfha73 opened this issue Jun 4, 2019 · 7 comments
Closed

Zip files larger than 4GB from NC 16.0.1 cannot be opened by anybody #15871

jfha73 opened this issue Jun 4, 2019 · 7 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity

Comments

@jfha73
Copy link

jfha73 commented Jun 4, 2019

Hey guys,

I installed NextCloud 16.0.1 on an Ubuntu 18.04, I shared a folder in it with some people, but when they download the zip file from NextCloud they cannot open it, when I reproduced the problem from Fedora 30 using unzip I get this:

End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.

Steps to reproduce

  1. Create a folder
  2. Copy files into the folder
  3. Share the folder
  4. Download the zip file for the folder.

Expected behaviour

Everybody should be able to open the zip file.

Actual behaviour

Nobody can open the file.

Server configuration

Operating system:
Ubuntu 18.04
Web server:
Apache 2.4
Database:
MySQL 5.7
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
16.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh Install
Where did you install Nextcloud from:
Zip file from nextcloud.com
Signing status:

Signing status

List of activated apps:

App list
Enabled:
  - accessibility: 1.2.0
  - activity: 2.9.1
  - admin_audit: 1.6.0
  - cloud_federation_api: 0.2.0
  - comments: 1.6.0
  - dav: 1.9.2
  - encryption: 2.4.0
  - federatedfilesharing: 1.6.0
  - federation: 1.6.0
  - files: 1.11.0
  - files_external: 1.7.0
  - files_pdfviewer: 1.5.0
  - files_rightclick: 0.13.0
  - files_sharing: 1.8.0
  - files_texteditor: 2.8.0
  - files_trashbin: 1.6.0
  - files_versions: 1.9.0
  - files_videoplayer: 1.5.0
  - gallery: 18.3.0
  - logreader: 2.1.0
  - lookup_server_connector: 1.4.0
  - nextcloud_announcements: 1.5.0
  - notifications: 2.4.1
  - oauth2: 1.4.2
  - password_policy: 1.6.0
  - privacy: 1.0.0
  - provisioning_api: 1.6.0
  - recommendations: 0.4.0
  - serverinfo: 1.6.0
  - sharebymail: 1.6.0
  - support: 1.0.0
  - survey_client: 1.4.0
  - systemtags: 1.6.0
  - theming: 1.7.0
  - twofactor_backupcodes: 1.5.0
  - updatenotification: 1.6.0
  - viewer: 1.0.0
  - workflowengine: 1.6.0
Disabled:
  - firstrunwizard
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "www.example.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "16.0.1.1",
        "overwrite.cli.url": "https:\/\/www.example.com\/nextcloud",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    },
    "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.9.1",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "logging"
        },
        "backgroundjob": {
            "lastjob": "17"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "0.2.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "logging"
        },
        "core": {
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "installedat": "1559574329.3531",
            "lastcron": "1559664456",
            "lastupdateResult": "[]",
            "lastupdatedat": "1559662412",
            "oc.integritycheck.checker": "[]",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "scss.variables": "17f1c16412cc4e01feb72c8a21c14811",
            "vendor": "nextcloud"
        },
        "dav": {
            "enabled": "yes",
            "installed_version": "1.9.2",
            "types": "filesystem"
        },
        "encryption": {
            "enabled": "yes",
            "installed_version": "2.4.0",
            "masterKeyId": "master_3bd4d32e",
            "publicShareKeyId": "pubShare_3bd4d32e",
            "recoveryKeyId": "recoveryKey_3bd4d32e",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.11.0",
            "types": "filesystem"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "yes",
            "installed_version": "0.13.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "yes",
            "installed_version": "2.8.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": "filesystem,dav"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "no",
            "installed_version": "2.5.0",
            "types": "logging"
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "18.3.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.1.0",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.4.1",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.4.2",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "0.4.0",
            "types": ""
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "filesystem"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "logging"
        },
        "theming": {
            "cachebuster": "12",
            "color": "#FFFFFF",
            "enabled": "yes",
            "installed_version": "1.7.0",
            "logoMime": "image\/png",
            "name": "Next Cloud",
            "slogan": "",
            "types": "logging",
            "url": "https:\/\/www.example.com\/nextcloud"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "updatenotification": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "",
            "update_check_errors": "0"
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "filesystem"
        }
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
Amazon S3
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

LDAP configuration (delete this part if not used)

LDAP config
</details>

### Client configuration
**Browser:**
Firefox, Google Chrome
**Operating system:**
Mac, Linux
### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>

Insert your webserver log here

</details>

#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>

"Could not find resource core/vendor/marked/marked.min.js to load"
"message":{"Exception":"OverflowException","Message":"Count64 object limited to 32 bit (overflow)""Code":0,"Trace":[{"file":"/var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php","line":236,"function":"add","class":"ZipStreamer\Count64_64","type":"->","args":[{"class":"ZipStreamer\Count64_64"}]},{"file":"/var/www/html/lib/private/Streamer.php","line":138,"function":"addFileFromStream","class":"ZipStreamer\ZipStreamer","type":"->","args":[null,"FOLDER/filename.ext",{"timestamp":1559578123,"comment":null,"compress":0,"level":1}]},{"file":"/var/www/html/lib/private/Streamer.php","line":112,"function":"addFileFromStream","class":"OC\Streamer","type":"->","args":[null,"FOLDER/filename.ext"...more like this for other files.

</details>

#### Browser log
<details>
<summary>Browser log</summary>


N/A

</details>
@jfha73 jfha73 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 4, 2019
@jfha73
Copy link
Author

jfha73 commented Jun 4, 2019

Here is more info:

Error no app in context OverflowException: Count64 object limited to 32 bit (overflow)/var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php - line 236:ZipStreamer\Count64_64->add(ZipStreamer\Count64_64 {})/var/www/html/lib/private/Streamer.php - line 138:ZipStreamer\ZipStreamer->addFileFromStream(null, "ProRes422 H ... v", { timestamp: ... 1})/var/www/html/lib/private/Streamer.php - line 112:OC\Streamer->addFileFromStream(null, "ProRes422 H ... v", 324004786, 1559578023)/var/www/html/lib/private/Streamer.php - line 115:OC\Streamer->addDirRecursive("/Cloud Stor ... t", "ProRes422 HQ/Airport/")/var/www/html/lib/private/legacy/files.php - line 191:OC\Streamer->addDirRecursive("/Cloud Stor ... Q")/var/www/html/apps/files_sharing/lib/Controller/ShareController.php - line 600:OC_Files::get("/Cloud Stor ... S", "ProRes422 HQ", { head: false})/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 166:OCA\Files_Sharing\Controller\ShareController->downloadShare("HrDJHdZMFHseesp", "ProRes422 HQ", "/", "g0twvegj0g")/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Sh ... {}, "downloadShare")/var/www/html/lib/private/AppFramework/App.php - line 126:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sh ... {}, "downloadShare")/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main("OCA\Files_ ... r", "downloadShare", OC\AppFramew ... {}, { token: "Hr ... "})<>OC\AppFramework\Routing\RouteActionHandler->__invoke({ token: "Hr ... "})/var/www/html/lib/private/Route/Router.php - line 297:call_user_func(OC\AppFramew ... {}, { token: "Hr ... "})/var/www/html/lib/base.php - line 975:OC\Route\Router->match("/s/HrDJHdZMFHseesp/download")/var/www/html/index.php - line 42:OC::handleRequest()

@leonklingele-work
Copy link

leonklingele-work commented Jun 11, 2019

Duplicate of #1707?

@jfha73
Copy link
Author

jfha73 commented Jun 12, 2019

I don't think it's a duplicate, that issue is closed and for an older version, this is happening on the latest and the server where it's running is fully 64-bit.

@kesselb
Copy link
Contributor

kesselb commented Jun 12, 2019

Mind to try #15367?

@stamepicmorg
Copy link

Mind to try #15367?

a have fully 64bit system and i was affected too. this PR fixed my issue.

thank you <3

@kesselb
Copy link
Contributor

kesselb commented Jan 27, 2020

Still an issue @jfha73 ?

@ghost
Copy link

ghost commented Feb 28, 2020

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Feb 28, 2020
@ghost ghost closed this as completed Mar 13, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

4 participants