Java install endpoint allows invalid slugs

Description

If you run

1 java install openjdk8_I_really_like_to_eat_cheesburgers_x64

the Java endpoint simply ignores the bits it doesn't recognize. This was by design, but it's been pointed out that CommandBox then ignores a simple typo and gives the appearance of working when it really isn't. Instead of silently ignoring this, throw an error so the user knows right away that we couldn't parse their entire slug.

1 2 3 4 5 6 7 8 9 > java install openjdk8_I_really_like_to_eat_cheesburgers_x64 × | Installing package [java:openjdk8_I_really_like_to_eat_cheesburgers_x64:lockVersion] | > Unknown token [i] in Java install slug [openjdk8_i_really_like_to_eat_cheesburgers_x64] |--------------------------------------------------------------------------------------------------- ERROR (@build.version@+@build.number@) Unknown token [i] in Java install slug [openjdk8_i_really_like_to_eat_cheesburgers_x64] Please use "java search" to find valid java install slugs.

Status

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Fix versions

Priority

Major