-
Notifications
You must be signed in to change notification settings - Fork 448
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
FileDataStoreFactory method setPermissionsToOwnerOnly only supports Unix #315
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Comments
Temporary workaround:
|
mattwhisenhunt
added
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Dec 22, 2017
JustinBeckwith
added
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
and removed
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
labels
Jun 6, 2018
I believe this issue is causing downstream issues with Windows users. Example: I'm not sure though. |
where should I put this code?
}` |
clundin25
pushed a commit
to clundin25/google-http-java-client
that referenced
this issue
Aug 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
com.google.api.client.util.store.FileDataStoreFactory
setPermissionsToOwnerOnly does not use newer Java 7 or 8 APIs for setting file/dir ownership and thus generates spurious warnings like "com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for everybody: "
The code only takes into account file systems as seen on Unix-like OSes that use a simple mode for the permissions. Windows file systems have ACLs and require different API calls to modify ownership and permissions. The latest Java APIs should be used instead which can handle both file system types.
This warning occurs for anyone using the Drive API SDK samples and causes confusion for new developers using the API.
https://github.com/google/google-http-java-client/blob/dev/google-http-client/src/main/java/com/google/api/client/util/store/FileDataStoreFactory.java
The text was updated successfully, but these errors were encountered: