Closed
Labels
🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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.
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
rbeede commentedon Jan 17, 2016
Temporary workaround:
grant commentedon Aug 23, 2018
I believe this issue is causing downstream issues with Windows users.
https://stackoverflow.com/questions/30634827/warning-unable-to-change-permissions-for-everybody
Example:
googleworkspace/java-samples#24
I'm not sure though.
isaacbauman-2021 commentedon May 19, 2021
where should I put this code?
`public class Auth {
}`
fix: cleanup unused code and deprecation warnings (googleapis#315)