Share link file drop gets "Could not upload ..."
Steps to reproduce
- Create "new folder"
- Create "share link" with setting "file drop (upload only)"
- Visit created link and select or drop a file
Expected behaviour
File gets uploaded to the shared folder. Activity shows "Created by file upload" or something similar.
Actual behaviour
File gets uploaded to the shared folder, BUT uploader gets a "Could not upload "DSC_0452.jpg"" notification and icon in "uploaded files" is changed to error.svg.
Server configuration detail
Operating system: Linux 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64
Webserver: Apache/2.4.38 (Debian) (apache2handler)
Database: pgsql PostgreSQL 13.0 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit
PHP version:
7.4.11 Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, session, posix, Reflection, standard, SimpleXML, pdo_sqlite, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache
Nextcloud version: 20.0.0 - 20.0.0.9
Updated from an older Nextcloud/ownCloud or fresh install: 18.04 -> 19.10 -> 20
Where did you install Nextcloud from: unknown
Signing status
Array ( )
List of activated apps
Enabled:
- accessibility: 1.6.0
- activity: 2.13.1
- bruteforcesettings: 2.0.1
- cloud_federation_api: 1.3.0
- comments: 1.10.0
- contactsinteraction: 1.1.0
- dashboard: 7.0.0
- dav: 1.16.0
- federatedfilesharing: 1.10.1
- federation: 1.10.1
- files: 1.15.0
- files_pdfviewer: 2.0.1
- files_rightclick: 0.17.0
- files_sharing: 1.12.0
- files_trashbin: 1.10.1
- files_versions: 1.13.0
- files_videoplayer: 1.9.0
- firstrunwizard: 2.9.0
- issuetemplate: 0.7.0
- logreader: 2.5.0
- lookup_server_connector: 1.8.0
- nextcloud_announcements: 1.9.0
- notifications: 2.8.0
- oauth2: 1.8.0
- password_policy: 1.10.1
- photos: 1.2.0
- privacy: 1.4.0
- provisioning_api: 1.10.0
- recommendations: 0.8.0
- serverinfo: 1.10.0
- settings: 1.2.0
- sharebymail: 1.10.0
- support: 1.3.0
- survey_client: 1.8.0
- systemtags: 1.10.0
- text: 3.1.0
- theming: 1.11.0
- twofactor_backupcodes: 1.9.0
- updatenotification: 1.10.0
- viewer: 1.4.0
- workflowengine: 2.2.0
Disabled:
- admin_audit
- encryption
- files_external
- user_ldap
- user_status
- weather_status
Configuration (config/config.php)
{
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.laettere.ch"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "20.0.0.9",
"overwrite.cli.url": "http:\/\/nextcloud.laettere.ch",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"theme": "",
"loglevel": 2,
"maintenance": false
}
Are you using external storage, if yes which one: no
Are you using encryption:
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
Operating system: Windows 10
Logs
Web server error log
Nextcloud log
[PHP] Error: Error: Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/html/apps/dav/lib/Connector/Sabre/File.php#691 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError(2, "Cannot modify h ... )", "/var/www/html/a ... p", 691, {string: "X-Hash ... "})
1. /var/www/html/apps/dav/lib/Connector/Sabre/File.php line 691
header("X-Hash-MD5: ced ... f")
2. /var/www/html/apps/dav/lib/Connector/Sabre/File.php line 189
OCA\DAV\Connector\Sabre\File->header("X-Hash-MD5: ced ... f")
3. <<closure>>
OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
4. /var/www/html/lib/private/Files/Stream/HashWrapper.php line 71
call_user_func(Closure {}, "*** sensitive parameter replaced ***")
5. <<closure>>
OC\Files\Stream\HashWrapper->stream_close()
6. /var/www/html/3rdparty/icewind/streams/src/Wrapper.php line 132
fclose(null)
7. /var/www/html/lib/private/Files/Stream/HashWrapper.php line 75
Icewind\Streams\Wrapper->stream_close()
8. <<closure>>
OC\Files\Stream\HashWrapper->stream_close()
9. /var/www/html/3rdparty/icewind/streams/src/Wrapper.php line 132
fclose(null)
10. /var/www/html/lib/private/Files/Stream/HashWrapper.php line 75
Icewind\Streams\Wrapper->stream_close()
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 319
OC\Files\Stream\HashWrapper->stream_close()
12. /var/www/html/apps/dav/appinfo/v1/publicwebdav.php line 113
Sabre\DAV\Server->exec()
13. /var/www/html/public.php line 81
require_once("/var/www/html/a ... p")
PUT /public.php/webdav/DSC_0452.jpg
from 85.195.235.52 at 2020-10-13T15:23:18+00:00