Skip to content

Personal drive doesn't populate immediately after user creation on second time聽#3415

Description

@saw-jan

Describe the bug

While getting drives list after creating, deleting and agian creating the same user, sometimes the personal drive is missing.

馃憠 Also, file and folder creation results in 404 or 409.

Steps to reproduce

  1. Create a user
curl -XPOST https://localhost:9200/graph/v1.0/users -u admin:admin \
-d '{
  "onPremisesSamAccountName": "alice",
  "passwordProfile": {"password": "1234"},
  "displayName": "Alice Hansen",
  "mail": "alice@mail.test"
}' -k
  1. Get drives list by the new user
curl 'https://localhost:9200/graph/v1.0/drives' -u alice:1234 -k
  1. Delete the user
curl -X DELETE 'https://localhost:9200/graph/v1.0/users/%user_id%' -u admin:admin -k
  1. Repeat steps 1-2 and the response should only include the shares drive
{
  "value": [
     // no personal drive
    {
      "driveAlias": "virtual/shares",
      "driveType": "virtual",
      "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
      "name": "Shares",
      "root": {
        "eTag": "DECAFC00FEE",
        "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
        "webDavUrl": "https://localhost:9200/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668"
      },
      "webUrl": "https://localhost:9200/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668"
    }
  ]
}

Use this script to test it with ease: https://gist.github.com/saw-jan/b35afe7d9190e9c9796a63cf421c5ff4

鈩癸笍 To make this work, we need to wait about 9-10 seconds (before creating user second time or before listing drives on the second try)

Expected behavior

Expected to see personal drive

Actual behavior

No personal drive in the list

Setup

OpenCloud: 7.5.0

Note

This works consistently with OpenCloud 7.4.0

Activity

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