Repository navigation
[26.1] Fix creating a Google Drive repository on a Drive with no Galaxy files - #24765
Merged
dannon merged 1 commit intoNov 6, 2026
Merged
Conversation
gdrive_fsspec 0.4.1 raises FileNotFoundError("") when listing an empty
Drive root. Galaxy requests the drive.file scope, so it only sees files
it created itself, and the root of a new connection is always empty.
The connection test that runs on Create lists the root, so creating a
Google Drive repository failed with "Problem listing file source path .
Reason:" for every new connection.
Treat an empty root as an empty listing; missing paths still raise.
The library has fixed this in fsspec/gdrive-fsspec#64, which is not in a
release yet.
galaxyproject#24764
dannon
approved these changes
Nov 6, 2026
|
This PR was merged without a "kind/" label, please correct. |
Contributor
Author
|
Thanks for the quick review and merge Dannon! |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #24764.
Creating a Google Drive repository fails for every new connection. After the user grants access, clicking Create runs a connection test that lists the root of the Drive, and it fails with:
Galaxy requests the
drive.filescope, so it only sees files it created itself, and the root of a new connection is empty. Since #22696 the plugin lists Drive throughgdrive_fsspec, and version 0.4.1 raisesFileNotFoundError("")for an empty root. This change treats an empty root as an empty listing; listing a path that doesn't exist still fails.Note
The library has fixed this in fsspec/gdrive-fsspec#64, which is not in a release yet. Once Galaxy uses a release that includes it, the workaround can be removed.
How to test the changes?
(Select all options that apply)
I've included appropriate automated tests.
This is a refactoring of components with existing test coverage.
Instructions for manual testing are as follows:
google_drivefile source template with a Google OAuth2 client.The bug was reproduced on usegalaxy.eu (26.1). The fix was checked with a temporary unit test that lists the root through the real Google API client with an empty Drive response: it failed with the error above without the fix and passed with it. It is not included, because it would be skipped in CI (
gdrive_fsspecis not a test dependency) and the workaround is temporary.License