Skip to content

Update ChangeVersion2 to handle permission changes#249

Closed
chris-believer wants to merge 5 commits into
DanEngelbrecht:mainfrom
chris-believer:cm/perm-update
Closed

Update ChangeVersion2 to handle permission changes#249
chris-believer wants to merge 5 commits into
DanEngelbrecht:mainfrom
chris-believer:cm/perm-update

Conversation

@chris-believer

Copy link
Copy Markdown
Contributor

Fixes #248

My initial attempt at adding a SetPermissions call in RetainPermissions caused the VersionDiff test to fail due to an a trailing slash on the full_path. Checking version_storage_api->IsDir did not return true, potentially due to the trailing slash as well? I added a check to strip the trailing slash in RetainPermissions, but if this is due to something in the test setup it may be better fixed there.

The call to RetainPermissions when block_write_infos == 0 feels mostly unnecessary in practice, but seems correct if the version_diff could produce any diffs that do not also include block writes.

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

Successfully merging this pull request may close these issues.

Permissions issues with ChangeVersion2

1 participant