owncloud / owncloud/android

[BUG] External storage 'SFTP' is shown multiple times

Open
#4,223 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

File list p3-medium
Dominant language
Kotlin
Stars
4.2k
Forks
3.1k
Avg merge
1d 12h
Merged PRs (30d)
7

Description

Actual behaviour

An exterrnal storage appears multiple times.
Only the first entry works, all other entries are empty folders.

Expected behaviour

A storage should appear exactly once.

Steps to reproduce

Reproducable with a freshly installed server 10.13.3-rc.2 (and also 10.13.2 - not a regression):

  1. admin user creates an external storage "SFTP" avialable for all users.
  2. admin user creates the same external storage with same config again, this time named "SFTPalice"
  3. connect android client to the server (e.g. https://oc10133rc2-20231120.jw-qa.owncloud.works/)
  4. log in as user alice
  5. the toplevel folder list shows both, SFTP and SFTPalice, but SFTP is shown multiple times:

photo_2023-11-20_19-51-07

Extra inputs:

  • it is also reproducable with 10.13.2 - so 10.13.3 is definitly innocent.
  • the multiple entries of SFTP appear, as soon as the same external storage is mounted a second time with a new name.
  • the issue only happens, when exactly the same path is used in both configs. If one is a subfolder of the other, no issue.

Can this problem be reproduced with the official owncloud server?
(url: https://demo.owncloud.org, user: test, password: test)
No. It depends on the setup of a second (personal) external storage.

I still consider this an android specific issue, as classic and new web UI, and desktop client show 'SFTP' exactly once.
Reproducable also with server 1.13.2

Environment data

Android version: 11

Device model: motorola g9 play

Stock or customized system:

ownCloud app version: 4.1.1

ownCloud server version: 10.13.3-rc.2

Logs
Web server error log
Insert your webserver log here

owncloud.log.zip
apache.log.zip

ownCloud log (data/owncloud.log)
Insert your ownCloud log here

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 reproducing the issue with two identical SFTP external-storage paths, using the listed Android and ownCloud server versions and the supplied environment details. Compare the Android top-level folder list with the classic and new web UIs and desktop client. Done means the storage appears exactly once while a second storage with the same path and a different name remains configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.