-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Uploading zero byte length file via webdav to s3 primary or external storage files (deleting files fails, too) #14192
Comments
Additional Config Infos Server configuration detail Operating system: Linux 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 Webserver: Apache (fpm-fcgi) Database: mysql 10.2.14 PHP version: 7.2.14 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, json, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mcrypt, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, apcu, igbinary, imagick, smbclient, zip, redis, libsmbclient, Zend OPcache Nextcloud version: 15.0.4 - 15.0.4.0 Updated from an older Nextcloud/ownCloud or fresh install: Where did you install Nextcloud from: unknown Signing statusArray ( ) List of activated appsEnabled:
Configuration (config/config.php){ Are you using external storage, if yes which one: Array ( [0] => \OC\Files\Storage\Local [1] => \OCA\Files_External\Lib\Storage\FTP [2] => \OC\Files\Storage\DAV [3] => \OCA\Files_External\Lib\Storage\OwnCloud [4] => \OCA\Files_External\Lib\Storage\SFTP [5] => \OCA\Files_External\Lib\Storage\AmazonS3 [6] => \OCA\Files_External\Lib\Storage\Swift [7] => \OCA\Files_External\Lib\Storage\SFTP [8] => \OCA\Files_External\Lib\Storage\SMB [9] => \OCA\Files_External\Lib\Storage\SMB ) Are you using encryption: no Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... LDAP configuration (delete this part if not used)With access to your command line run e.g.: Without access to your command line download the data/owncloud.db to your local Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0 |
Steps to reproduce
Expected behaviour
Empty file should be uploaded
Actual behaviour
The following error is shown, and file does not turn up
[webdav] Fatal: Sabre\DAV\Exception: An exception occurred while completing a multipart upload: Error executing "CompleteMultipartUpload" on "https://crgw.itc.global.mahle/nextcloudcluster/urn%3Aoid%3A3099037?uploadId=2~Ok8YksG_8OK2jnjSoe0EyMQawpoq3PX"; AWS HTTP error: Client error:
POST https://crgw.itc.global.mahle/nextcloudcluster/urn%3Aoid%3A3099037?uploadId=2~Ok8YksG_8OK2jnjSoe0EyMQawpoq3PX
resulted in a400 Bad Request
response:MalformedXML
nextcloudclusterMalformedXML (client): -MalformedXML
nextcloudclustertx000000000000000103796-005c651fb6-b261918-destb261918-dest-de at <>convertToSabreException(Aws\S3\Exception ... {})
put(null)
createFile("New Text Document.txt", null)
createFile("Photos/New Text Document.txt", null, null)
httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
emit("method:PUT", [Sabre\HTTP\Requ ... }])
invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
exec()
require_once("/var/www/html/n ... p")
PUT /remote.php/webdav/Photos/New%20Text%20Document.txt
from 10.145.60.164 by 27EB840B-643D-495C-A770-1B7CB954E14E at 2019-02-14T07:58:46+00:00
Server configuration
Operating system:
CentOS Linux release 7.6.1810 (Core)
Web server:
httpd-2.4.6-88.el7.centos.x86_64
Database:
mariadb cluster
PHP version:
php7.2
Nextcloud version: (see Nextcloud admin page)
15.004
Updated from an older Nextcloud/ownCloud or fresh install:
15.02
Where did you install Nextcloud from:
standard update repo
Signing status:
Signing status
No errors have been found.List of activated apps:
App list
Accessibility
1.1.0
Official
Activity
2.8.2
Official
Auditing / Logging
1.5.0
Official
Circles
0.16.0
Official
Collaborative tags
1.5.0
Official
Comments
1.5.0
Official
Deleted files
1.5.0
Official
External storage support
1.6.0
Official
Federation
1.5.0
Official
File access control
1.5.0
Official
File sharing
1.7.0
Official
Files automated tagging
1.5.0
Official
First run wizard
2.4.0
Official
Gallery
18.2.0
Official
LDAP user and group backend
1.5.0
Official
Log Reader
2.0.0
Official
Markdown Editor
2.0.5
Monitoring
1.5.0
Official
Nextcloud announcements
1.4.0
Official
Notifications
2.3.0
Official
Password policy
1.5.0
Official
PDF viewer
1.4.0
Official
README.md
1.0.1
Share by mail
1.5.0
Official
Support
1.0.0
Official
Text editor
2.7.0
Official
Theming
1.6.0
Official
Update notification
1.5.0
Official
Usage survey
1.3.0
Official
Versions
1.8.0
Official
Video player
1.4.0
Official
Default encryption module
2.3.0
Official
Workflow external scripts
Nextcloud configuration:
Are you using external storage, if yes which one: local/smb/sftp/...
S3
Are you using encryption:
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP AD connect
LDAP configuration (delete this part if not used)
LDAP config
+-------------------------------+-------------------------------------------------------------------------------+ | Configuration | | +-------------------------------+-------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 1 | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | cn=S0002190,ou=system,ou=users,ou=st,ou=de,ou=mahle,DC=itc,DC=global,DC=mahle | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | mail;givenname;sn | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | DC=global,DC=mahle | | ldapBaseGroups | DC=global,DC=mahle | | ldapBaseUsers | DC=global,DC=mahle | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapDefaultPPolicyDN | | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | Mail | | ldapExperiencedAdmin | 1 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | | | ldapExpertUsernameAttr | | | ldapGidNumber | gidNumber | | ldapGroupDisplayName | cn | | ldapGroupFilter | | | ldapGroupFilterGroups | | | ldapGroupFilterMode | 1 | | ldapGroupFilterObjectclass | | | ldapGroupMemberAssocAttr | member | | ldapHost | ldaps://10.200.95.191 | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(|(objectclass=person)(objectclass=user))(samaccountname=%uid)) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 1 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 0 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 3269 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserAvatarRule | default | | ldapUserDisplayName | mail | | ldapUserDisplayName2 | | | ldapUserFilter | (&(|(sAMAccountType=805306368))) | | ldapUserFilterGroups | | | ldapUserFilterMode | 1 | | ldapUserFilterObjectclass | person | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | turnOnPasswordChange | 0 | | useMemberOfToDetectMembership | 1 | +-------------------------------+-------------------------------------------------------------------------------+ ```Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
No relevant entriesNextcloud log (data/nextcloud.log)
Nextcloud log
[webdav] Fatal: Sabre\DAV\Exception: An exception occurred while completing a multipart upload: Error executing "CompleteMultipartUpload" on "https://crgw.itc.global.mahle/nextcloudcluster/urn%3Aoid%3A3099037?uploadId=2~Ok8YksG_8OK2jnjSoe0EyMQawpoq3PX"; AWS HTTP error: Client error: `POST https://crgw.itc.global.mahle/nextcloudcluster/urn%3Aoid%3A3099037?uploadId=2~Ok8YksG_8OK2jnjSoe0EyMQawpoq3PX` resulted in a `400 Bad Request` response:MalformedXML
nextcloudclusterMalformedXML
nextcloudclustertx000000000000000103796-005c651fb6-b261918-destb261918-dest-de at <>convertToSabreException(Aws\S3\Exception ... {})
put(null)
createFile("New Text Document.txt", null)
createFile("Photos/New Text Document.txt", null, null)
httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
emit("method:PUT", [Sabre\HTTP\Requ ... }])
invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
exec()
require_once("/var/www/html/n ... p")
PUT /remote.php/webdav/Photos/New%20Text%20Document.txt
from 10.145.60.164 by 27EB840B-643D-495C-A770-1B7CB954E14E at 2019-02-14T07:58:46+00:00
Browser log
Browser log
N/aThe text was updated successfully, but these errors were encountered: