nextcloud / nextcloud/ios

Opening a folder with a # in the name throws up a 404 message

Open
#1,306 1 comment 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

Expected behaviour

All the files are displayed as with any other folder.

Actual behaviour

The app displays a 404 message. Only after a manual refresh do the files get loaded.

Steps to reproduce
  1. Create a directory structure like this:
    <nextcloud root>/Miles Morales Spider-Man (2018 - Present)/Miles Morales Spider-Man (2018) #6
    and put files in it.
  2. Try to access the folder in the iOS app. The app will throw a 404 error
  3. Manually drag to refresh
  4. The files are now there

On every subsequent opening of the folder, the app will throw up the 404 error again, even though the file list is cached and the app already knows there are files there

Screenshots

The list of directories:
IMG_2225

The 404 error in question:
IMG_2226

After a manual refresh:
IMG_2227

Reasoning or why should it be changed/implemented?

Should be self-evident, really

iOS version

13.5

App version

2.25.9.2

Server configuration

Operating system: Debian 10

Web server: nginx 1.19.0

Database: MariaDB 10.4.13

PHP version: PHP 7.3.18

Nextcloud version: 18.0.6

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

No source file, test, or entry point is named. Reproduce the issue in the iOS app with a folder containing #, then trace how that folder path is opened and refreshed; done means the folder loads normally on every opening without a manual refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.