nextcloud / nextcloud/ios

Search times out

Open
#1,824 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce
  1. Enter any search term in the iOS app
Expected behaviour

Search results should be returned

Actual behaviour

After 60 seconds, the search times out. "No result" is shown.

Screenshots

IMG_5094
IMG_5095

Logs
Apache logs

When searching from the web browser:

127.0.0.1 68.42.76.56, 172.70.126.191 - - [17/Dec/2021:12:27:13 -0500] "GET /ocs/v2.php/search/providers/files/search?term=flowchart&from=%2Fapps%2Fdashboard%2F HTTP/1.0" 200 1255 "https://[REDACTED]/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15"

When searching from the iOS app, after a significant delay:

127.0.0.1 68.42.76.56, 172.70.126.39 - - [17/Dec/2021:12:30:44 -0500] "SEARCH /remote.php/dav HTTP/1.0" 207 107500 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0
iOS logs

communication.log

Reasoning or why should it be changed/implemented?
Environment data

iOS version: 15.2

Nextcloud iOS app version: 4.1.0.17 @ 2021

Server operating system: Ubuntu 20.04.3

Web server: Apache with nginx reverse proxy

Database: MySQL 8.0.27

PHP version: 8.0.13

Nextcloud version: 22.2.3 (snap version)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked communication.log and comparing the iOS request to the successful web search request in the Apache logs. Trace the SEARCH /remote.php/dav request and the app's search path; done means entering a term in the iOS app returns results without a 60-second timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
backend, mobile, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.