owncloud / owncloud/core

files_external:list "Authentication Type" and "Auth" columns inconsistent

Open
#36,838 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type:Bug
Dominant language
PHP
Stars
8.8k
Forks
2.1k
Avg merge
20h 7m
Merged PRs (30d)
41

Description

Steps to reproduce
  1. as the admin, setup some local storage that provides files on the local server to the ownCloud users
  2. files_external:list
  3. files_external:list --short
Expected behaviour

Not sure - there is actually no "authentication" for this local storage (the local server just provides it to all users on the system). So "Authentication Type" "None" seems correct.

So what is the column "Auth" that has value "User" ?

Actual behaviour

The --short output has a column "Auth" which displays "User" as the value.
The default output has a column "Authentication Type" which displays "None" as the value.

$ php occ files_external:list --short
+----------+-------------+------------------+-------------------+------+-------+
| Mount ID | Mount Point | Applicable Users | Applicable Groups | Auth | Type  |
+----------+-------------+------------------+-------------------+------+-------+
| 22       | /zzz        | All              |                   | User | Admin |
+----------+-------------+------------------+-------------------+------+-------+
$ php occ files_external:list
+----------+-------------+---------+---------------------+------------------------------+---------+------------------+-------------------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration                | Options | Applicable Users | Applicable Groups |
+----------+-------------+---------+---------------------+------------------------------+---------+------------------+-------------------+
| 22       | /zzz        | Local   | None                | datadir: "\/home\/phil\/zzz" |         | All              |                   |
+----------+-------------+---------+---------------------+------------------------------+---------+------------------+-------------------+
Server configuration

Current core master github

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 with the files_external:list and files_external:list --short entry points and reproduce the differing values for a local storage. Trace how each output selects its authentication label, then verify that the two commands consistently describe local storage and add or update coverage for both output formats.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.