Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Fall back to read-only credentials on EACCES errors #389

Merged
merged 1 commit into from
Jan 29, 2016

Conversation

thobrla
Copy link
Contributor

@thobrla thobrla commented Jan 28, 2016

This change fixes a bug where multiple threads and/or processes
using multistore_file on Windows to access the same backing
store could raise IOError errno.EACCES to the calling application.
This change causes a fallback to read only mode and refreshes
credentials if necessary.

Fixes #386

This change fixes a bug where multiple threads and/or processes
using multistore_file on Windows to access the same backing
store could raise IOError errno.EACCES to the calling application.
This change causes a fallback to read only mode and refreshes
credentials if necessary.
@theacodes
Copy link
Contributor

Can you add a test case for this?

@thobrla
Copy link
Contributor Author

thobrla commented Jan 28, 2016

I did in test_multistore_file?

@theacodes
Copy link
Contributor

Oh, of course. I get an 'F' for reading comprehension.

@dhermes @nathanielmanistaatgoogle this change looks good to me, please take a look.

nathanielmanistaatgoogle added a commit that referenced this pull request Jan 29, 2016
Fall back to read-only credentials on EACCES errors.
@nathanielmanistaatgoogle nathanielmanistaatgoogle merged commit 9bd8522 into googleapis:master Jan 29, 2016
@dhermes dhermes mentioned this pull request Jan 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

errno.EACCES can propagate fatally outside of multistore_file
4 participants