Skip to content

PosixFS. Empty personal space when opening a public link #755

Closed

Description

@v-scharf

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce

  1. create a local container on the main branch make -C opencloud dev-docker.
  2. run opencloud LOCAL_TEST=true STORAGE_DRIVER=posix make -C tests/acceptance/docker start-server.
  3. create the bob user
  4. create a project space
  5. create a public link for the project space
  6. under the name anonymus, open the public link
  7. log in as user bob on the public link page
  8. get all private spaces: GET https://opencloud-server:9200/graph/v1beta1/drives?%24orderby=name+asc&%24filter=driveType+eq+personal.

Expected behavior

only 1 personal space for bob

Actual behavior

there is one empty space

{
    "value": [
        {
            "driveAlias": "personal/",
            "driveType": "personal",
            "id": "9f1e0882-3363-406d-bb78-09cca586e598$92d8b7e5-39d6-4d2c-b373-3849def435a5",
            "lastModifiedDateTime": "2025-04-29T14:28:03.984931012Z",
            "name": "",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "56680130-92de-4390-a8f8-a99ec5c93bfc"
                }
            },
            "quota": {
                "remaining": 9223372036854775807,
                "state": "normal",
                "total": 0,
                "used": 0
            },
            "root": {
                "eTag": "\"4d2e639747d48a763012600acb26b279\"",
                "id": "9f1e0882-3363-406d-bb78-09cca586e598$92d8b7e5-39d6-4d2c-b373-3849def435a5",
                "webDavUrl": "https://opencloud-server:9200/dav/spaces/9f1e0882-3363-406d-bb78-09cca586e598$92d8b7e5-39d6-4d2c-b373-3849def435a5"
            },
            "webUrl": "https://opencloud-server:9200/f/9f1e0882-3363-406d-bb78-09cca586e598$92d8b7e5-39d6-4d2c-b373-3849def435a5"
        },
        {
            "driveAlias": "personal/admin",
            "driveType": "personal",
            "id": "9f1e0882-3363-406d-bb78-09cca586e598$357cd384-072f-4f97-960d-dafdeb31508e",
            "lastModifiedDateTime": "2025-04-29T14:15:42.016854001Z",
            "name": "Admin",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "fb1dc655-4770-4283-8e11-8de1ea2f65f2"
                }
            },
            "quota": {
                "remaining": 9223372036854775807,
                "state": "normal",
                "total": 0,
                "used": 0
            },
            "root": {
                "eTag": "\"47f20d8976fbc7cef101840e7cc8f287\"",
                "id": "9f1e0882-3363-406d-bb78-09cca586e598$357cd384-072f-4f97-960d-dafdeb31508e",
                "webDavUrl": "https://opencloud-server:9200/dav/spaces/9f1e0882-3363-406d-bb78-09cca586e598$357cd384-072f-4f97-960d-dafdeb31508e"
            },
            "webUrl": "https://opencloud-server:9200/f/9f1e0882-3363-406d-bb78-09cca586e598$357cd384-072f-4f97-960d-dafdeb31508e"
        },
        {
            "driveAlias": "personal/bob",
            "driveType": "personal",
            "id": "9f1e0882-3363-406d-bb78-09cca586e598$77af8ac6-7213-4ba1-8a67-2eff70a129c4",
            "lastModifiedDateTime": "2025-04-29T14:28:40.457615001Z",
            "name": "bob",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "ecf3c99f-3d7b-4a49-9e1a-a52e62592842"
                }
            },
            "quota": {
                "remaining": 9223372036854775807,
                "state": "normal",
                "total": 0,
                "used": 0
            },
            "root": {
                "eTag": "\"de6fc983dc866c39788a95eda9e5bad8\"",
                "id": "9f1e0882-3363-406d-bb78-09cca586e598$77af8ac6-7213-4ba1-8a67-2eff70a129c4",
                "webDavUrl": "https://opencloud-server:9200/dav/spaces/9f1e0882-3363-406d-bb78-09cca586e598$77af8ac6-7213-4ba1-8a67-2eff70a129c4"
            },
            "webUrl": "https://opencloud-server:9200/f/9f1e0882-3363-406d-bb78-09cca586e598$77af8ac6-7213-4ba1-8a67-2eff70a129c4"
        },
        {
            "driveAlias": "personal/bob",
            "driveType": "personal",
            "id": "9f1e0882-3363-406d-bb78-09cca586e598$298550e7-5866-4038-a9f5-be5659769ff7",
            "lastModifiedDateTime": "2025-04-29T14:28:40.457615001Z",
            "name": "bob",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "ecf3c99f-3d7b-4a49-9e1a-a52e62592842"
                }
            },
            "quota": {
                "remaining": 9223372036854775807,
                "state": "normal",
                "total": 0,
                "used": 0
            },
            "root": {
                "eTag": "\"d6ab731a31dbde5df770941ef1312fab\"",
                "id": "9f1e0882-3363-406d-bb78-09cca586e598$298550e7-5866-4038-a9f5-be5659769ff7",
                "webDavUrl": "https://opencloud-server:9200/dav/spaces/9f1e0882-3363-406d-bb78-09cca586e598$298550e7-5866-4038-a9f5-be5659769ff7"
            },
            "webUrl": "https://opencloud-server:9200/f/9f1e0882-3363-406d-bb78-09cca586e598$298550e7-5866-4038-a9f5-be5659769ff7"
        },
        {
            "driveAlias": "personal/bob",
            "driveType": "personal",
            "id": "9f1e0882-3363-406d-bb78-09cca586e598$894b407f-960b-4e10-aa93-9440c9cae00d",
            "lastModifiedDateTime": "2025-04-29T14:28:40.457615001Z",
            "name": "bob",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "ecf3c99f-3d7b-4a49-9e1a-a52e62592842"
                }
            },
            "quota": {
                "remaining": 9223372036854775807,
                "state": "normal",
                "total": 0,
                "used": 0
            },
            "root": {
                "eTag": "\"7bc74a393eede871e2ab63670e9056bb\"",
                "id": "9f1e0882-3363-406d-bb78-09cca586e598$894b407f-960b-4e10-aa93-9440c9cae00d",
                "webDavUrl": "https://opencloud-server:9200/dav/spaces/9f1e0882-3363-406d-bb78-09cca586e598$894b407f-960b-4e10-aa93-9440c9cae00d"
            },
            "webUrl": "https://opencloud-server:9200/f/9f1e0882-3363-406d-bb78-09cca586e598$894b407f-960b-4e10-aa93-9440c9cae00d"
        }
    ]
}

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

Activity

  1. moved this from Qualification to Prio 2 in OpenCloud Team Boardon Apr 29, 2025
  2. moved this from Prio 2 to Prio 1 in OpenCloud Team Boardon Apr 30, 2025
  3. changed the title [-]Duplicate and empty personal space when opening a public link[/-] [+]Empty personal space when opening a public link[/+] on Apr 30, 2025
  4. moved this from Prio 1 to Prio 2 in OpenCloud Team Boardon Apr 30, 2025
  5. added
    Priority:p2-high
    and removed
    Priority:p1-urgent
    on Apr 30, 2025
  6. changed the title [-]Empty personal space when opening a public link[/-] [+]PosixFS. Empty personal space when opening a public link[/+] on Apr 30, 2025
  7. v-scharf commented on Apr 30, 2025

    @v-scharf
    ContributorAuthor

    This bug can also be reproduced with tika. see here: https://ci.opencloud.eu/repos/3/pipeline/1461/178

    Steps:

    • run opencloud LOCAL_TEST=true STORAGE_DRIVER=posix make -C tests/acceptance/docker start-server.
    • log in as admin and create file.txt
    • get all spaces: GET https://opencloud-server:9200/graph/v1beta1/drives?%24orderby=name+asc&%24filter=driveType+eq+personal

    Actual: “driveAlias”: “personal/”, in the list. After deleting “personal/” and creating a new file - “personal/” is not created. This happens only on first startup or restart (in tests the wrapper restarts the server)

  8. moved this from Prio 2 to Prio <= 3 in OpenCloud Team Boardon May 2, 2025
  9. added
    Priority:p3-medium
    and removed
    Priority:p2-high
    on May 2, 2025
  10. aduffeck commented on May 5, 2025

    @aduffeck
    Member

    Duplicate of #636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions