Skip to content

Commit

Permalink
Remove trailing slash from search path for remote folders. (#1164)
Browse files Browse the repository at this point in the history
* Remove trailing slash from search path for remote folders.

* Update changelog.
  • Loading branch information
markbader authored Aug 8, 2024
1 parent 7e85e0c commit fc8f38b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions webknossos/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section

### Fixed
- Fixed issue with webknossos URL and context URL being considered different when opening a remote dataset due to trailing slashes. [#1137](https://github.com/scalableminds/webknossos-libs/pull/1137)
- Fix an issue where the remote folder was not found when the folder path query includes a trailing slash. [#1164](https://github.com/scalableminds/webknossos-libs/pull/1164)


## [0.14.26](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.14.26) - 2024-07-22
Expand Down
1 change: 1 addition & 0 deletions webknossos/webknossos/dataset/remote_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def get_by_id(cls, folder_id: str) -> "RemoteFolder":
def get_by_path(cls, path: str) -> "RemoteFolder":
from ..client.context import _get_api_client

path = path.rstrip("/")
client = _get_api_client(enforce_auth=True)
folder_tree_response: List[ApiFolderWithParent] = client.folder_tree()

Expand Down

0 comments on commit fc8f38b

Please sign in to comment.