Bug: GoogleDrive backend auth expires and fails #346
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Report: Google Drive Backend Authorisation Expiry
Summary
The
Hazaar\File\Backend\GoogleDrive
class appears to lose authorisation after a period of time, causing file operations to fail with exceptions.Description
Authorisation for the Google Drive backend expires after exactly 1 week. This suggests that the Google Drive access token is expiring and the refresh token is either:
Once the token expires, all subsequent file operations throw exceptions due to failed authentication.
Steps to Reproduce
Hazaar\File\Backend\GoogleDrive
.Expected Behaviour
The refresh token should be used to automatically obtain a new access token before it expires, allowing uninterrupted operation beyond one week.
Actual Behaviour
After one week, authorisation fails and all file operations throw exceptions until the backend is manually reauthorised.
Impact
Possible Cause
Suggested Fix
Priority
High — This issue causes complete failure of the backend after one week without manual reauthorisation.