Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space quota is not being duplicated #10123

Closed
ScharfViktor opened this issue Dec 6, 2023 · 3 comments · Fixed by #10139
Closed

Space quota is not being duplicated #10123

ScharfViktor opened this issue Dec 6, 2023 · 3 comments · Fixed by #10139
Assignees
Labels
Priority:p3-medium Normal priority Type:Bug Something isn't working

Comments

@ScharfViktor
Copy link
Contributor

ocis 5.0.0-alpha.3+62afc6e9b
web 8.0.0-alpha.11

Steps:

  • create space s1
  • increase the quota to 10 GB and upload more than 1 GB of data into the space.
  • try to duplicate the space

Actual:
first request POST https://host.docker.internal:9200/graph/v1.0/drives creates space with 1Gb default quota so not all data is copied to new space

image

Expected: web copies space with same quota (10Gb in my case)
body: {"name":"s2 (1)","description":"try to duplicate me","quota":{"total":value}}:

@ScharfViktor ScharfViktor added the Type:Bug Something isn't working label Dec 6, 2023
@JammingBen JammingBen changed the title space cannot be correct duplicated if its size exceeds 1 GB Space quota is not being duplicated Dec 7, 2023
@JammingBen JammingBen added the Priority:p3-medium Normal priority label Dec 7, 2023
@JammingBen
Copy link
Collaborator

Whoever is taking action here: we need to check if a quota can be passed to createDrive. If not, we need to update the drive's quota manually in such case.

@JammingBen
Copy link
Collaborator

@jacob-nv Could you please have a look here? useSpaceActionsDuplicate is the relevant action for this.

@jacob-nv jacob-nv self-assigned this Dec 7, 2023
@AlexAndBear
Copy link
Contributor

@jacob-nv sorry I already started with that :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p3-medium Normal priority Type:Bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants