Skip to content

[BUG] bug: /fs/list API returns "unknown" when storage type is WebDAV in v4.2.3 #2732

Description

@nu1lkali

Please confirm the following
[x] I have read and agree to AGPL-3.0 Section 15.

[x] I have read and agree to AGPL-3.0 Section 16.

[x] I confirm my description is clear, polite, helps developers quickly locate the issue, and complies with community rules.

[x] I have read the OpenList documentation.

[x] I confirm there are no duplicate issues or discussions.

[x] I confirm this is an OpenList issue, not caused by other reasons (such as network, dependencies, or operation).

[x] I believe this issue must be handled by OpenList and not by a third party.

[x] I confirm this issue is not fixed in the latest version.

OpenList Version (required)
v4.2.3

Storage Driver Used (required)
WebDAV

Bug Description (required)
When calling the /fs/list API endpoint, if the underlying storage driver is configured as WebDAV, the "provider" field in the response JSON unexpectedly returns "unknown" instead of the actual storage driver name.

Response Metadata / Logs (required)
Here is the partial response data from the /fs/list API:

JSON
{
"thumb": "",
"type": 4,
"hashinfo": "null",
"hash_info": null
}
],
"total": 896,
"readme": "",
"header": "",
"write": true,
"write_content_bypass": true,
"provider": "unknown"
}
Expected behavior
The "provider" field should correctly return "WebDAV" (or the corresponding storage type string) instead of "unknown".

Reproduction Link (optional)
No response

AI Generated Content (optional)
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvalidInvalid Content/Cannot Reproduce

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions