You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug install.sh is not correctly grabbing the release tag, which makes the download of the correct jar file and symlink to fail.
Any okta command from that point fails with this error.
Okta Password:
Error: Could not find or load main class com.okta.tools.WithOkta
Caused by: java.lang.ClassNotFoundException: com.okta.tools.WithOkta
Error: Could not find or load main class com.okta.tools.WithOkta
Caused by: java.lang.ClassNotFoundException: com.okta.tools.WithOkta
To Reproduce
Steps to reproduce the behavior:
Download the install.sh file, wget https://github.com/oktadev/okta-aws-cli-assume-role/blob/master/bin/install.sh
Run the install script, sudo bash ./install.sh
check the output or run okta commands after installation.
You will see the broken symlink on the jar file.
❯ sudo bash install.sh -i
Installing into ~/.okta
Latest release JAR file: https://github.com/oktadeveloper/okta-aws-cli-assume-role/releases/download//okta-aws-cli-.jar
Fetching JAR file → ~/.okta/okta-aws-cli-.jar
Symlinking ~/.okta/okta-aws-cli.jar → okta-aws-cli-.jar
Creating example ~/.okta/config.properties
Notice the missing release tag after okta-aws-cli-
Expected behavior
Install script should install the correct jar.
workaround is to manually download the install script, and replace the releaseTag definition (which does not parse properly) with the latest tag... currently, it is v2.0.5. So:
Describe the bug
install.sh is not correctly grabbing the release tag, which makes the download of the correct jar file and symlink to fail.
Any okta command from that point fails with this error.
To Reproduce
Steps to reproduce the behavior:
wget https://github.com/oktadev/okta-aws-cli-assume-role/blob/master/bin/install.sh
sudo bash ./install.sh
Notice the missing release tag after okta-aws-cli-
Expected behavior
Install script should install the correct jar.
Additional context
https://github.com/oktadev/okta-aws-cli-assume-role/blob/master/bin/install.sh#L83
this line here seems to be returning latest instead of the release tag.
The text was updated successfully, but these errors were encountered: