Open ivdok opened 4 years ago
This issue also cannot be reproduced on Android, so that leaves only iOS app, which creates bogus request.
Contents of communication.log below:
2020-10-08 05:49:33 Clear log with level 2 Nextcloud Coherence for iOS 3.0.8.0 © 2020
2020-10-08 05:49:35 Network request started: PROPFIND https://cloud.domain.tld/remote.php/webdav/CRM
2020-10-08 05:49:35 Network request headers: ["Depth": "0", "Content-Type": "application/xml", "Authorization": "Basic cmFkbWluOms0ZkFoa2FZb2VMN3ZqNHV0NG03dmp3dmxYQndDeWxwWXdMbGV3dlNXdmZ6dVQ0OW1KSUNnTkNtU0oyRmJOOUJISGdwRkhUdQ==", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.8", "OCS-APIRequest": "true"]
2020-10-08 05:49:35 Network request body: <?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
</d:prop>
</d:propfind>
2020-10-08 05:49:36 Network request started: PROPFIND https://cloud.domain.tld/remote.php/webdav/CRM/
2020-10-08 05:49:36 Network request headers: ["User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.8", "Authorization": "Basic cmFkbWluOms0ZkFoa2FZb2VMN3ZqNHV0NG03dmp3dmxYQndDeWxwWXdMbGV3dlNXdmZ6dVQ0OW1KSUNnTkNtU0oyRmJOOUJISGdwRkhUdQ==", "Content-Type": "application/xml", "OCS-APIRequest": "true", "Depth": "1"]
2020-10-08 05:49:36 Network request body: <?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
</d:prop>
</d:propfind>
2020-10-08 05:49:36 Network response result: 2020-10-08 05:49:36 [Request]: PROPFIND https://cloud.domain.tld/remote.php/webdav/CRM
[Headers]:
Authorization: Basic cmFkbWluOms0ZkFoa2FZb2VMN3ZqNHV0NG03dmp3dmxYQndDeWxwWXdMbGV3dlNXdmZ6dVQ0OW1KSUNnTkNtU0oyRmJOOUJISGdwRkhUdQ==
Content-Type: application/xml
Depth: 0
OCS-APIRequest: true
User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.8
[Body]:
<?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
</d:prop>
</d:propfind>
[Response]:
[Status Code]: 207
[Headers]:
Cache-Control: no-store, no-cache, must-revalidate
content-security-policy: default-src 'none';
Content-Type: application/xml; charset=utf-8
Date: Thu, 08 Oct 2020 02:49:36 GMT
dav: 1, 3, extended-mkcol
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
referrer-policy: no-referrer
Server: nginx/1.19.0
Strict-Transport-Security: max-age=15768000; includeSubDomains;
Vary: Brief,Prefer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: none
x-xss-protection: 1; mode=block
[Body]:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><d:response><d:href>/remote.php/webdav/CRM/</d:href><d:propstat><d:prop><d:getlastmodified>Tue, 22 Sep 2020 12:53:31 GMT</d:getlastmodified><d:getetag>"5f7e7146c3864"</d:getetag><d:resourcetype><d:collection/></d:resourcetype><d:quota-available-bytes>-3</d:quota-available-bytes><d:quota-used-bytes>0</d:quota-used-bytes><oc:permissions>MGDNVCK</oc:permissions><oc:id>00004156oc6aex4wfg0j</oc:id><oc:fileid>4156</oc:fileid><oc:size>-1</oc:size><oc:favorite>0</oc:favorite><oc:share-types/><oc:owner-id>B6B75047-AD44-4AE2-BFC9-E4FF46AE4C29</oc:owner-id><oc:owner-display-name>activedirectoryuser</oc:owner-display-name><oc:comments-unread>0</oc:comments-unread><nc:is-encrypted>0</nc:is-encrypted><nc:has-preview>false</nc:has-preview><nc:mount-type>external</nc:mount-type></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/><nc:creation_time/><nc:upload_time/><nc:rich-workspace/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>
[Network Duration]: 1.2680379152297974s
[Serialization Duration]: 1.3999990187585354e-05s
[Result]: success(1172 bytes)
2020-10-08 05:49:36 Network response all headers: 2020-10-08 05:49:36 Optional([AnyHashable("x-download-options"): noopen, AnyHashable("x-content-type-options"): nosniff, AnyHashable("referrer-policy"): no-referrer, AnyHashable("x-robots-tag"): none, AnyHashable("Date"): Thu, 08 Oct 2020 02:49:36 GMT, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("Vary"): Brief,Prefer, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Strict-Transport-Security"): max-age=15768000; includeSubDomains;, AnyHashable("Server"): nginx/1.19.0, AnyHashable("x-frame-options"): SAMEORIGIN, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("dav"): 1, 3, extended-mkcol, AnyHashable("Pragma"): no-cache, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Expires"): Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate])
2020-10-08 05:49:36 Network request started: PROPFIND https://cloud.domain.tld/remote.php/webdav/CRM/
2020-10-08 05:49:36 Network request headers: ["User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.8", "Content-Type": "application/xml", "OCS-APIRequest": "true", "Depth": "1", "Authorization": "Basic cmFkbWluOms0ZkFoa2FZb2VMN3ZqNHV0NG03dmp3dmxYQndDeWxwWXdMbGV3dlNXdmZ6dVQ0OW1KSUNnTkNtU0oyRmJOOUJISGdwRkhUdQ=="]
2020-10-08 05:49:36 Network request body: <?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
</d:prop>
</d:propfind>
2020-10-08 05:49:37 Network response result: 2020-10-08 05:49:37 [Request]: PROPFIND https://cloud.domain.tld/remote.php/webdav/CRM/
[Headers]:
Authorization: Basic cmFkbWluOms0ZkFoa2FZb2VMN3ZqNHV0NG03dmp3dmxYQndDeWxwWXdMbGV3dlNXdmZ6dVQ0OW1KSUNnTkNtU0oyRmJOOUJISGdwRkhUdQ==
Content-Type: application/xml
Depth: 1
OCS-APIRequest: true
User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.8
[Body]:
<?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
</d:prop>
</d:propfind>
[Response]:
[Status Code]: 500
[Headers]:
Cache-Control: no-store, no-cache, must-revalidate
content-security-policy: default-src 'none';
Content-Type: application/xml; charset=utf-8
Date: Thu, 08 Oct 2020 02:49:37 GMT
dav: 1, 3, extended-mkcol
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
referrer-policy: no-referrer
Server: nginx/1.19.0
Strict-Transport-Security: max-age=15768000; includeSubDomains;
Vary: Brief,Prefer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: none
x-xss-protection: 1; mode=block
[Body]:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Icewind\SMB\Exception\ForbiddenException</s:exception>
<s:message>Invalid request for /CRM/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%20%D0%9C (ForbiddenException)</s:message>
</d:error>
[Network Duration]: 0.5034959316253662s
[Serialization Duration]: 2.6875000912696123e-05s
[Result]: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 500)))
2020-10-08 05:49:37 Network response all headers: 2020-10-08 05:49:37 Optional([AnyHashable("Date"): Thu, 08 Oct 2020 02:49:37 GMT, AnyHashable("x-robots-tag"): none, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("Strict-Transport-Security"): max-age=15768000; includeSubDomains;, AnyHashable("dav"): 1, 3, extended-mkcol, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("Pragma"): no-cache, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Server"): nginx/1.19.0, AnyHashable("x-download-options"): noopen, AnyHashable("Vary"): Brief,Prefer, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("Expires"): Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("x-content-type-options"): nosniff, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("x-frame-options"): SAMEORIGIN, AnyHashable("referrer-policy"): no-referrer])
2020-10-08 05:49:37 Network response result: 2020-10-08 05:49:37 [Request]: PROPFIND https://cloud.domain.tld/remote.php/webdav/CRM/
[Headers]:
Authorization: Basic cmFkbWluOms0ZkFoa2FZb2VMN3ZqNHV0NG03dmp3dmxYQndDeWxwWXdMbGV3dlNXdmZ6dVQ0OW1KSUNnTkNtU0oyRmJOOUJISGdwRkhUdQ==
Content-Type: application/xml
Depth: 1
OCS-APIRequest: true
User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.8
[Body]:
<?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
</d:prop>
</d:propfind>
[Response]:
[Status Code]: 500
[Headers]:
Cache-Control: no-store, no-cache, must-revalidate
content-security-policy: default-src 'none';
Content-Type: application/xml; charset=utf-8
Date: Thu, 08 Oct 2020 02:49:37 GMT
dav: 1, 3, extended-mkcol
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
referrer-policy: no-referrer
Server: nginx/1.19.0
Strict-Transport-Security: max-age=15768000; includeSubDomains;
Vary: Brief,Prefer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: none
x-xss-protection: 1; mode=block
[Body]:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Icewind\SMB\Exception\ForbiddenException</s:exception>
<s:message>Invalid request for /CRM/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%20%D0%9C (ForbiddenException)</s:message>
</d:error>
[Network Duration]: 1.161633014678955s
[Serialization Duration]: 3.754167119041085e-05s
[Result]: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 500)))
2020-10-08 05:49:37 Network response all headers: 2020-10-08 05:49:37 Optional([AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("x-robots-tag"): none, AnyHashable("x-frame-options"): SAMEORIGIN, AnyHashable("x-download-options"): noopen, AnyHashable("Pragma"): no-cache, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Strict-Transport-Security"): max-age=15768000; includeSubDomains;, AnyHashable("x-content-type-options"): nosniff, AnyHashable("Server"): nginx/1.19.0, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("Expires"): Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Vary"): Brief,Prefer, AnyHashable("referrer-policy"): no-referrer, AnyHashable("dav"): 1, 3, extended-mkcol, AnyHashable("Date"): Thu, 08 Oct 2020 02:49:37 GMT])
Hi, but in Android do you get the PROPFIND of https://cloud.domain.tld/remote.php/webdav//CRM/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%20%D0%9C
I have the same, with Version 20 of NC overall performance got better, like sometimes a pictue gets displayed, but still openign the pictures is a problem. FTP doesnt work at all.
Hi, but in Android do you get the PROPFIND of https://cloud.domain.tld/remote.php/webdav//CRM/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%20%D0%9C
@marinofaggiana I can't tell right now, as Android app would likely require to mess with logcat, which I'm not really comfortable to do right now. But I found the root cause of the bug and workaround for it.
It seems that iOS app for whatever reason tries to traverse the subfolders, and two of them are actually blocked off for AD connector for security reasons. Ticking "Verify ACLs when listing files" makes browsing and opening files work, but also absolutely TANKS the performace, we're talking 10-15 extra seconds to traverse. Android app and desktop web frontend don't exhibit this behaviour, and only traverse requested (root) directory.
I have the same, with Version 20 of NC overall performance got better, like sometimes a pictue gets displayed, but still openign the pictures is a problem. FTP doesnt work at all.
@dffvb Please don't hijack the thread. This has nothing to do with FTP, only Windows interoperability when using AD/SMB backends.
Not hijacking it, have the same problem with SMB on iPhone 7 / 7 Plus and iPad. I thought maybe my SMB setup was faulty and tried several FTP which also dont work, which could be NC problem itself. However with NC 20 it seems it changed (SMB opening), what I found stranged, sometimes it doenst show anything if I open the folder (like now), and this afternoon it showed thumbnails, but failed to open pictures...
Hi, but in Android do you get the PROPFIND of https://cloud.domain.tld/remote.php/webdav//CRM/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%20%D0%9C
That's the thing - iOS app should NOT request the PROPFIND. As I said in the 4th message, Nextcloud bind-account is explicitly forbidden from accessing these folders, and Web/Android apps respect that behavior by only listing parent directory content.
Hi, but in Android do you get the PROPFIND of https://cloud.domain.tld/remote.php/webdav//CRM/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%20%D0%9C
@marinofaggiana I can't tell right now, as Android app would likely require to mess with logcat, which I'm not really comfortable to do right now. But I found the root cause of the bug and workaround for it.
It seems that iOS app for whatever reason tries to traverse the subfolders, and two of them are actually blocked off for AD connector for security reasons. Ticking "Verify ACLs when listing files" makes browsing and opening files work, but also absolutely TANKS the performace, we're talking 10-15 extra seconds to traverse. Android app and desktop web frontend don't exhibit this behaviour, and only traverse requested (root) directory.
I have the same, with Version 20 of NC overall performance got better, like sometimes a pictue gets displayed, but still openign the pictures is a problem. FTP doesnt work at all.
@dffvb Please don't hijack the thread. This has nothing to do with FTP, only Windows interoperability when using AD/SMB backends.
@ivdok Do you have for me a test where create this issue, so I can look where is the exact point ?
Seems to be related to #1788
While the SMB External Storage was working, it seems like i am hitting this bug since the latest iOS app upgrade. The same configuration (albeit older versions) were working, i could browse and save files on the smb share using the iOS app.
I am running Nextcloud Hub 6 (27.1.3), there is a SMB Share configured which saves its login data in the database, per user. Logs of the failing operation are attached below, if this isnt an ios app issue but a server one i can open an issue over there.
The iOS app shows the following error in its communication.log.txt
2023-11-13 15:54:58 Network request started: PROPFIND https://nextcloud.domain.de/remote.php/dav/files/12345678-1234-1234-1234-123456789999
2023-11-13 15:54:58 Network request headers: ["Depth": "1", "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/4.9.1", "OCS-APIRequest": "true", "Accept": "application/json", "Authorization": "Basic (...)"]
2023-11-13 15:54:58 Network request body: <?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop><d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<d:quota-available-bytes />
<d:quota-used-bytes />
<permissions xmlns="http://owncloud.org/ns"/>
<id xmlns="http://owncloud.org/ns"/>
<fileid xmlns="http://owncloud.org/ns"/>
<size xmlns="http://owncloud.org/ns"/>
<favorite xmlns="http://owncloud.org/ns"/>
<share-types xmlns="http://owncloud.org/ns"/>
<owner-id xmlns="http://owncloud.org/ns"/>
<owner-display-name xmlns="http://owncloud.org/ns"/>
<comments-unread xmlns="http://owncloud.org/ns"/>
<checksums xmlns="http://owncloud.org/ns"/>
<downloadURL xmlns="http://owncloud.org/ns"/>
<data-fingerprint xmlns="http://owncloud.org/ns"/>
<creation_time xmlns="http://nextcloud.org/ns"/>
<upload_time xmlns="http://nextcloud.org/ns"/>
<is-encrypted xmlns="http://nextcloud.org/ns"/>
<has-preview xmlns="http://nextcloud.org/ns"/>
<mount-type xmlns="http://nextcloud.org/ns"/>
<rich-workspace xmlns="http://nextcloud.org/ns"/>
<note xmlns="http://nextcloud.org/ns"/>
<lock xmlns="http://nextcloud.org/ns"/>
<lock-owner xmlns="http://nextcloud.org/ns"/>
<lock-owner-editor xmlns="http://nextcloud.org/ns"/>
<lock-owner-displayname xmlns="http://nextcloud.org/ns"/>
<lock-owner-type xmlns="http://nextcloud.org/ns"/>
<lock-time xmlns="http://nextcloud.org/ns"/>
<lock-timeout xmlns="http://nextcloud.org/ns"/>
<system-tags xmlns="http://nextcloud.org/ns"/>
<file-metadata-size xmlns="http://nextcloud.org/ns"/>
<file-metadata-gps xmlns="http://nextcloud.org/ns"/>
<share-permissions xmlns="http://open-collaboration-services.org/ns"/>
<share-permissions xmlns="http://open-cloud-mesh.org/ns"/> </d:prop>
</d:propfind>
2023-11-13 15:54:58 Network response result: 2023-11-13 15:54:58 [Request]: PROPFIND https://nextcloud.domain.de/remote.php/dav/files/12345678-1234-1234-1234-123456789999
[Headers]:
Accept: application/json
Authorization: Basic (...)
Content-Type: application/x-www-form-urlencoded
Depth: 1
OCS-APIRequest: true
User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/4.9.1
[Body]: 1795 bytes
[Response]:
[Status Code]: 500
[Headers]:
Cache-Control: no-store, no-cache, must-revalidate
content-security-policy: default-src 'none';
Content-Type: application/xml; charset=utf-8
Date: Mon, 13 Nov 2023 14:54:58 GMT
dav: 1, 3, extended-mkcol, access-control, calendarserver-principal-property-search, nextcloud-checksum-update, nc-calendar-search, nc-enable-birthday-calendar
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
referrer-policy: no-referrer
Server: Apache
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload;
Vary: Brief,Prefer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: noindex, nofollow
x-xss-protection: 1; mode=block
[Body]:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>OCP\Files\GenericFileException</s:exception>
<s:message/>
</d:error>
[Network Duration]: 0.4314969778060913s
[Serialization Duration]: 9.125098586082458e-06s
[Result]: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 500)))
2023-11-13 15:54:58 Network response all headers: 2023-11-13 15:54:58 Optional([AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Date"): Mon, 13 Nov 2023 14:54:58 GMT, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("x-download-options"): noopen, AnyHashable("x-robots-tag"): noindex, nofollow, AnyHashable("x-content-type-options"): nosniff, AnyHashable("Server"): Apache, AnyHashable("referrer-policy"): no-referrer, AnyHashable("dav"): 1, 3, extended-mkcol, access-control, calendarserver-principal-property-search, nextcloud-checksum-update, nc-calendar-search, nc-enable-birthday-calendar, AnyHashable("Pragma"): no-cache, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Strict-Transport-Security"): max-age=15768000; includeSubDomains; preload;, AnyHashable("x-frame-options"): SAMEORIGIN, AnyHashable("Expires"): Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("Vary"): Brief,Prefer])
Meanwhile, the nextcloud.log shows:
{"reqId":"jzw7vyxtCq1pGE44MQpx","level":3,"time":"2023-11-13T14:58:17+00:00","remoteAddr":"11.22.33.44","user":"12345678-1234-1234-1234-123456789999","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/12345678-1234-1234-1234-123456789999","message":"","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.9.1","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php","line":119,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":95,"function":"OCA\\Text\\DAV\\{closure}","class":"OCA\\Text\\DAV\\WorkspacePlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php","line":117,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"propFind","class":"OCA\\Text\\DAV\\WorkspacePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":""}}
Thank you for your help, have a nice day, Michael
same problem only on iOS with SMB share
[webdav] Fehler: OCP\Files\GenericFileException: at <
PROPFIND /remote.php/dav/files/***** from 95.** by * at 2023-11-15T.....
communication log: 2023-11-15 Network response request: https://cloud-/remote.php/dav/files/*****, result: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 500)))
Expected behaviour
SMB folder opens just as on desktop
Actual behaviour
500: Internal server error
Steps to reproduce
Add SMB external storage, and attempt to use it from iOS app. It doesn't matter, UPN suffix or not, domain specified or not, authentication method - predefined or log-in, it fails all the same
Reasoning or why should it be changed/implemented?
Guess why
iOS version
Any
App version
3.0.8
Server configuration
Debian 10 + nginx + php7.4-fpm + Nextcloud 19.0.3.1
Log: