Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kc.sh Does Not Allow Spaces in Filenames #11343

Closed
bekwam opened this issue Apr 17, 2022 · 1 comment · Fixed by #11357
Closed

kc.sh Does Not Allow Spaces in Filenames #11343

bekwam opened this issue Apr 17, 2022 · 1 comment · Fixed by #11357
Assignees
Labels
kind/bug Categorizes a PR related to a bug
Milestone

Comments

@bekwam
Copy link

bekwam commented Apr 17, 2022

Describe the bug

When I run kc.sh from Ubuntu 20.04 and Java 11.0.12, I get the following error

carl@wdp:/media/carl/Extra Drive 1/opt/keycloak/keycloak-17.0.1$ ./bin/kc.sh
Error: Could not find or load main class Drive
Caused by: java.lang.ClassNotFoundException: Drive
carl@wdp:/media/carl/Extra Drive 1/opt/keycloak/keycloak-17.0.1$ 

This is being run from a folder containing a path segment with spaces. In this case "Extra Drive 1".

Version

17.0.1

Expected behavior

I expected the server to start normally from a path with spaces.

Actual behavior

The server fails to start

How to Reproduce?

  1. Create a folder on Ubuntu with spaces
  2. Download and decompress Keycloak 17 in the folder from Step 1
  3. Change into the Keycloak folder from Step 2
  4. Run ./bin/kc.sh

Anything else?

No response

@bekwam bekwam added kind/bug Categorizes a PR related to a bug status/triage labels Apr 17, 2022
@pedroigor pedroigor self-assigned this Apr 18, 2022
@pedroigor pedroigor added this to the 18.0.0 milestone Apr 18, 2022
pedroigor added a commit to pedroigor/keycloak that referenced this issue Apr 18, 2022
@pedroigor
Copy link
Contributor

@bekwam Could you please check if this change works for you #11357?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes a PR related to a bug
Projects
Development

Successfully merging a pull request may close this issue.

3 participants