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

Error rename a file #2596

Closed
lthoa opened this issue Feb 14, 2023 · 4 comments
Closed

Error rename a file #2596

lthoa opened this issue Feb 14, 2023 · 4 comments

Comments

@lthoa
Copy link

lthoa commented Feb 14, 2023

image

@sbwalker
Copy link
Member

@lthoa can you please provide the exact steps to reproduce - I am unable to duplicate the problem using the current code in Dev branch.

@lthoa
Copy link
Author

lthoa commented Feb 15, 2023

@sbwalker error occurred when renaming files in the 'My Folder' folder

image

@sbwalker
Copy link
Member

Thank you for clarifying... I will try to reproduce the issue locally.

@sbwalker
Copy link
Member

So it turns out that this issue had nothing to do with renaming a file. The differentiating factor between "My Folder" and other folders is that "My Folder" has the Capacity property set by default. When the Capacity property is set the framework needs to calculate the total size of the files in the folder to determine if the Capacity has been exceeded. This calculation logic was causing the list of files to be tracked in EF Core - which resulted in a tracking error during update.

sbwalker added a commit that referenced this issue Feb 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix #2596 - fix EF Core tracking error when updating a file in a folder which has a Capacity specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants