Skip to content

Fixed Azure.Storage.Blobs Read-only file system exception bug#10001

Merged
seanmcc-msft merged 2 commits intoAzure:masterfrom
seanmcc-msft:features/storage/fileStreamOpen
Feb 18, 2020
Merged

Fixed Azure.Storage.Blobs Read-only file system exception bug#10001
seanmcc-msft merged 2 commits intoAzure:masterfrom
seanmcc-msft:features/storage/fileStreamOpen

Conversation

@seanmcc-msft
Copy link
Copy Markdown
Member

Resolves #9820

@seanmcc-msft seanmcc-msft marked this pull request as ready for review February 18, 2020 18:57
@tg-msft
Copy link
Copy Markdown
Member

tg-msft commented Feb 18, 2020

It'd be nice to add a quick test to verify this never breaks in the future.

@seanmcc-msft
Copy link
Copy Markdown
Member Author

It'd be nice to add a quick test to verify this never breaks in the future.

How would we go about writing a test for this that will work on all platforms?

@tg-msft
Copy link
Copy Markdown
Member

tg-msft commented Feb 18, 2020

My first thought would be create a new temp file, call File.SetAttributes(path, FileAttributes.ReadOnly), and try to upload it?

@seanmcc-msft
Copy link
Copy Markdown
Member Author

I updated the existing UploadAsync_File() test to upload a read-only file.

@seanmcc-msft seanmcc-msft merged commit 6e60f9c into Azure:master Feb 18, 2020
@seanmcc-msft seanmcc-msft deleted the features/storage/fileStreamOpen branch February 18, 2020 22:30
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.

[BUG] Azure.Storage.Blobs "Read-only file system" exception.

2 participants