Nextcloud Folder on iOS App is empty - HTTP/1.1 404 Not Found
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Actual behaviour
A Folder inside the iOS Nextcloud App is empty.
Refreshing will not change the context (still empty).
Indeed there are files & folders in it.
The Web Application and the Windows 10 Nextcloud Agent - both will show files & folders properly.
no behave change on:
- Restarting the iOS App
- connect via Wifi or other networks
Other Directories (including their files) do work.
Increased Log verbosity on iOS App:
- Status code 404 seeen
(normally - 404 means, that the ressource cannot be found (dead links).
Steps to reproduce
- not seen before
- for that moment, single event for this directory
some Side Information
- for this folder (with issues) - the offline availability was choosen once
- Some weeks ago, an attempt was made to access this folder while the cloud was completely down, while the Flag "make available offline" was already enabled for this folder.
- disabling the "make available offline" flag does not bring the desired effect. The folder remains empty.
- BUT: set the "make available offline" Flag again in one of the empty folders, brings the files back and after unsetting
the flag "make availabe offline" the files are staying at their place.
Expected behaviour
- Sync agents should be up2date with their contents (Core-Cloud)
Server configuration details
Version: Intel(R) Xeon(R) E-2136 CPU @ 3.30GHz Max Speed : 4300 MHz Current Speed: 3300 MHz
Memory: 16GB
Operating System: CentOS Linux release 8.3.2011
Upstream OS : Derived from Red Hat Enterprise Linux 8.3
Webserver: Apache/2.4.37 (centos)
Database: mysql 10.3.27-MariaDB,
PHP version: PHP Version => 7.4.16
[PHP Modules] apcu bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv igbinary imagick intl json ldap libsmbclient libxml mbstring memcached msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session shmop SimpleXML smbclient sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache
Nextcloud: - version: 21.0.1.1
Nextcloud Coherence Version: 3.4.0.29
IOS: 14.4.2
Updated from an older Nextcloud/ownCloud or fresh install:
Upgrade from NC 20.0.6
Where did you install Nextcloud from:
Origin NC Source
Signing status:
Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
{
"system": {
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis",
"memcache.local": "\OC\Memcache\APCu",
"filelocking.enabled": true,
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"timeout": 1.5,
"password": "REMOVED SENSITIVE VALUE"
},
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"htaccess.RewriteBase": "/",
"overwriteprotocol": "https",
"dbtype": "mysql",
"version": "21.0.1.1",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"maintenance": false,
"theme": "",
"loglevel": 2,
"auth.bruteforce.protection.enabled": true,
"check_for_working_htaccess": true,
"updater.release.channel": "stable",
"logfile": "/media/log/nextcloud.log",
"instanceid": "REMOVED SENSITIVE VALUE",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "tls",
"mail_smtpauth": 1,
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"session_lifetime": 1200,
"session_keepalive": false,
"default_phone_region": "CH",
"knowledgebaseenabled": false,
"log_rotate_size": 3145728,
"mail_sendmailmode": "smtp",
"app_install_overwrite": [
"passman",
Enabled:
accessibility: 1.7.0
activity: 2.14.3
analytics: 3.4.1
announcementcenter: 5.0.0
apporder: 0.12.0
audioplayer: 3.1.0
audioplayer_editor: 0.3.0
audioplayer_sonos: 1.2.0
bookmarks: 4.1.0
bruteforcesettings: 2.1.0
calendar: 2.2.0
circles: 0.21.0
cloud_federation_api: 1.4.0
cms_pico: 1.0.15
comments: 1.11.0
contacts: 3.5.1
contactsinteraction: 1.2.0
cookbook: 0.8.4
cospend: 1.3.0
dashboard: 7.1.0
data_request: 1.8.0
dav: 1.17.1
deck: 1.4.0
dicomviewer: 1.2.2
documentserver_community: 0.1.9
drawio: 1.0.0
event_update_notification: 1.2.0
extract: 1.3.1
federatedfilesharing: 1.11.0
federation: 1.11.0
files: 1.16.0
files_automatedtagging: 1.11.0
files_downloadactivity: 1.10.0
files_external: 1.12.0
files_external_onedrive: 1.1.0
files_markdown: 2.3.3
files_mindmap: 0.0.24
files_pdfviewer: 2.1.0
files_photospheres: 1.21.0
files_rightclick: 1.0.0
files_sharing: 1.13.1
files_trashbin: 1.11.0
files_versions: 1.14.0
files_videoplayer: 1.10.0
firstrunwizard: 2.10.0
flow_notifications: 1.1.0
forms: 2.2.4
gpxmotion: 0.1.0
gpxpod: 4.2.8
groupfolders: 9.0.0
impersonate: 1.8.0
integration_discourse: 1.0.0
integration_dropbox: 1.0.0
integration_github: 1.0.0
integration_gitlab: 1.0.0
integration_google: 1.0.0
integration_jira: 1.0.0
integration_mastodon: 1.0.0
integration_moodle: 1.0.0
integration_onedrive: 1.0.0
integration_openproject: 1.0.0
integration_reddit: 0.0.11
integration_suitecrm: 0.0.4
integration_twitter: 1.0.0
integration_whiteboard: 0.0.14
integration_zammad: 1.0.0
logreader: 2.6.0
lookup_server_connector: 1.9.0
maps: 0.1.8
nextcloud_announcements: 1.10.0
notes: 4.0.4
notifications: 2.9.0
oauth2: 1.9.0
onlyoffice: 6.3.0
passman: 2.3.7
password_policy: 1.11.0
photos: 1.3.0
polls: 1.8.1
privacy: 1.5.0
provisioning_api: 1.11.0
quicknotes: 0.7.1
quota_warning: 1.10.0
rainloop: 7.1.2
ransomware_protection: 1.10.0
recommendations: 1.0.0
serverinfo: 1.11.0
settings: 1.3.0
sharebymail: 1.11.0
social: 0.4.2
spreed: 11.1.2
support: 1.4.0
suspicious_login: 4.0.0
systemtags: 1.11.0
tasks: 0.13.6
text: 3.2.0
theming: 1.12.0
timemanager: 0.1.8
twofactor_backupcodes: 1.10.0
twofactor_totp: 6.0.0
updatenotification: 1.11.0
user_status: 1.1.1
video_converter: 1.0.1
viewer: 1.5.0
weather_status: 1.1.0
welcome: 0.0.5
workflow_ocr: 1.21.0
workflow_pdf_converter: 1.6.0
workflow_script: 1.6.0
workflowengine: 2.3.0
Disabled:
admin_audit
breezedark
drop_account
encryption
end_to_end_encryption
external
files_3d
files_accesscontrol
files_antivirus
files_fulltextsearch
flowupload
fulltextsearch
fulltextsearch_elasticsearch
gpxedit
health
issuetemplate
joplin
ojsxc
passwords
registration
side_menu
socialsharing_diaspora
socialsharing_email
socialsharing_facebook
socialsharing_googleplus
socialsharing_twitter
survey_client
talk_matterbridge
terms_of_service
user_ldap
weather
iOS detailed Log entries
2021-04-23 20:21:40 Network response result: 2021-04-23 20:21:40 [Request]: PROPFIND https://www.xxx/remote.php/webdav/Documents/xxxxx/xxxxx
[Headers]:
Authorization: Basic xxxxx==
Content-Type: application/xml
Depth: 0
OCS-APIRequest: true
User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.4.0
[Body]:
<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: Fri, 23 Apr 2021 18:21:39 GMT
dav: 1, 3, extended-mkcol
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
referrer-policy: no-referrer
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubdomains
Vary: Brief,Prefer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-powered-by: PHP/7.4.16
x-robots-tag: none
x-xss-protection: 1; mode=block
[Body]:
<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/Documents/xxxxx)/xxxxxx/</d:href><d:propstat><d:prop><d:getlastmodified>Mon, 09 Nov 2020 22:34:53 GMT</d:getlastmodified><d:getetag>"xxxxx"
</d:getetag><d:resourcetype><d:collection/></d:resourcetype><d:quota-available-bytes>35302534886</d:quota-available-bytes><d:quota-used-bytes>27071641
</d:quota-used-bytes>oc:permissionsRGDNVCK</oc:permissions>oc:id01084515ocnudqtqmhau</oc:id>oc:fileid1084515</oc:fileid>oc:size27071641</oc:size>oc:favorite0</oc:favorite>oc:share-types/oc:owner-id
xxxx</oc:owner-id>oc:owner-display-namexxxx</oc:owner-display-name>oc:comments-unread0</oc:comments-unread>nc:is-encrypted0</nc:is-encrypted>nc:has-previewfalse
</nc:has-preview>nc:mount-type</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]: 0.1949249505996704s
[Serialization Duration]: 1.9416678696870804e-05s
[Result]: success(1210 bytes)
2021-04-23 20:21:40 Network response all headers: 2021-04-23 20:21:40 Optional([AnyHashable("x-download-options"): noopen, AnyHashable("Pragma"): no-cache, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Strict-Transport-Security"):
max-age=63072000; includeSubdomains, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Date"): Fri, 23 Apr 2021 18:21:39 GMT, AnyHashable("x-frame-options"):
SAMEORIGIN, AnyHashable("Vary"): Brief,Prefer, AnyHashable("Server"): Apache, AnyHashable("referrer-policy"): no-referrer, AnyHashable("dav"): 1, 3, extended-mkcol,
AnyHashable("x-powered-by"): PHP/7.4.16, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("Expires"):
Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("x-robots-tag"): none, AnyHashable("x-content-type-options"): nosniff])
2021-04-23 20:21:45 Network request started: PROPFIND https://www.xxxxxxx/remote.php/webdav/Documents/xxxxxx
2021-04-23 20:21:45 Network request headers: ["OCS-APIRequest": "true", "Authorization": "Basic xxxxxxxxxx==", "Depth": "0", "Content-Type": "application/xml", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/3.4.0"]
2021-04-23 20:21:45 Network request body:
<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>
2021-04-23 20:21:45 Network response result: 2021-04-23 20:21:45 [Request]: PROPFIND https://www.xxxxx/remote.php/webdav/Documents/xxxxx
[Headers]:
Authorization: Basic xxxxx==
Content-Type: application/xml
Depth: 0
OCS-APIRequest: true
User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.4.0
[Body]:
<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: Fri, 23 Apr 2021 18:21:45 GMT
dav: 1, 3, extended-mkcol
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
referrer-policy: no-referrer
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubdomains
Vary: Brief,Prefer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-powered-by: PHP/7.4.16
x-robots-tag: none
x-xss-protection: 1; mode=block
[Body]:
<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/Documents/xxxxxx/</d:href><d:propstat><d:prop><d:getlastmodified>Wed,
21 Apr 2021 09:36:17 GMT</d:getlastmodified><d:getetag>"607ff21168b39"</d:getetag><d:resourcetype><d:collection/></d:resourcetype><d:quota-available-bytes>35302534886</d:quota-available-bytes><d:quota-used-bytes>194655617</d:quota-used-bytes>
oc:permissionsRGDNVCK</oc:permissions>oc:id00298209ocnudqtqmhau</oc:id>oc:fileid298209</oc:fileid>oc:size194655617</oc:size>oc:favorite0</oc:favorite>oc:share-types/oc:owner-id
xxxx</oc:owner-id>oc:owner-display-namexxxxx</oc:owner-display-name>oc:comments-unread0</oc:comments-unread>nc:is-encrypted0</nc:is-encrypted>nc:has-previewfalse</nc:has-preview>nc:mount-type</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]: 0.118988037109375s
[Serialization Duration]: 8.333357982337475e-06s
[Result]: success(1187 bytes)
2021-04-23 20:21:45 Network response all headers: 2021-04-23 20:21:45 Optional([AnyHashable("x-download-options"): noopen, AnyHashable("referrer-policy"): no-referrer, AnyHashable("x-robots-tag"):
none, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Date"): Fri, 23 Apr 2021 18:21:45 GMT, AnyHashable("x-powered-by"):
PHP/7.4.16, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("Server"): Apache, AnyHashable("Expires"):
Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Strict-Transport-Security"): max-age=63072000; includeSubdomains, AnyHashable("x-content-type-options"):
nosniff, AnyHashable("Vary"): Brief,Prefer, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("dav"): 1, 3, extended-mkcol, AnyHashable("Pragma"): no-cache, AnyHashable("x-frame-options"): SAMEORIGIN])
2021-04-23 20:22:10 Start session with level 2 Nextcloud Coherence for iOS 3.4.0.29 © 2021
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the iOS detailed log and the PROPFIND request to the affected WebDAV folder. Compare the successful 207 response with its property-level HTTP/1.1 404 entry, then reproduce the empty-folder behavior if possible using the stated offline-availability sequence. Done means the affected folder and its contents display correctly without requiring the offline flag to be toggled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100