Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .scs-complete.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
_scs_completion() {
local IFS=$'\n'
local response

response=$(env COMP_WORDS="${COMP_WORDS[*]}" COMP_CWORD=$COMP_CWORD _SCS_COMPLETE=bash_complete $1)

for completion in $response; do
IFS=',' read type value <<< "$completion"

if [[ $type == 'dir' ]]; then
COMPREPLY=()
compopt -o dirnames
elif [[ $type == 'file' ]]; then
COMPREPLY=()
compopt -o default
elif [[ $type == 'plain' ]]; then
COMPREPLY+=($value)
fi
done

return 0
}

_scs_completion_setup() {
complete -o nosort -F _scs_completion scs
}

_scs_completion_setup;

2 changes: 2 additions & 0 deletions doc/changes/changelog.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions doc/changes/changes_2.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 2.2.1 - 2025-10-24

## Summary

This release fixes a bug when checking access to an empty BucketFS in CLI command `scs check --connect`.

## Bugfixes

* #290: Fixed listing files in BucketFS for empty bucket location
12 changes: 11 additions & 1 deletion exasol/nb_connector/cli/processing/bucketfs_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@ def random_file_name(other_than: list[str]) -> str:
return result


from collections.abc import Iterator


def files_in(bfsloc: bfs.path.PathLike) -> list[bfs.path.PathLike]:
try:
return list(bfsloc.iterdir())
except FileNotFoundError:
return []


def verify_bucketfs_access(scs: Secrets) -> None:
bfs_root = open_bucketfs_location(scs)
existing = [f.name for f in bfs_root.iterdir()]
existing = [f.name for f in files_in(bfs_root)]
file = bfs_root / random_file_name(other_than=existing)
content = random_string(length=100)
try:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "exasol-notebook-connector"
version = "2.2.0"
version = "2.2.1"
requires-python = ">=3.10,<3.13"
description = "Components, tools, APIs, and configurations in order to connect Jupyter notebooks to Exasol and various other systems."
packages = [{ include = "exasol" }, ]
Expand Down
2 changes: 1 addition & 1 deletion version.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.