Skip to content

Panic on google.Drive.BuildFileHierarchy recursion #5

@mrksmrtn

Description

@mrksmrtn

google.Drive.BuildFileHierarchy is a recursive function that returns nil when it encounters a Google Drive API error. This can cause a panic when a recursive call fails its API call and returns nil. This is because google/Drive.go line 191 does not check the result of calling BuildFileHierarchy for nil.

This error was discovered when a Google Drive API call returned a userRateLimitExceeded response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions