-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Simplify command line use of org.eclipse.jetty.util.Password #7063
Comments
For the record, the minimal command line is now ... $ java -cp lib/jetty-util-10.0.7.jar:lib/logging/slf4j-api-2.0.0-alpha5.jar:lib/logging/jetty-slf4j-impl-10.0.7.jar org.eclipse.jetty.util.security.Password HelloWorld
HelloWorld
OBF:1n4z1ugo1x151wfw1sbb1s9z1wg21x1h1uh21n6j
MD5:68e109f0f40ca72a15e05cc22786f8e6 |
Possibly the Password and Credential classes could be changed to throw ISE insead of doing logging. Some of the logging they're doing is pretty questionable anyway (see https://github.com/eclipse/jetty.project/blob/0ad49fd1fd9565eeec3878d9e5c0e986ec272dbd/jetty-util/src/main/java/org/eclipse/jetty/util/security/Credential.java#L158 - prints out a warning it can't check CRYPT and then goes on to check it anyway??). Having a new Maybe another option - could we make another jar artifact during the build of |
maybe a very simple jetty-util shaded jar with necessary logging impl (i.e simple slf4j)? |
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Updates from review Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
+ Done so that they can be reused in non-logging applications. Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
…7227) * Issue #7063 - Remove logging requirement from Password / Credential + Adding testcase for Password command line + Moved hex/string methods from TypeUtil to StringUtil so that they can be reused in non-logging applications. Signed-off-by: Joakim Erdfelt <[email protected]>
…7227) * Issue #7063 - Remove logging requirement from Password / Credential + Adding testcase for Password command line + Moved hex/string methods from TypeUtil to StringUtil so that they can be reused in non-logging applications. Signed-off-by: Joakim Erdfelt <[email protected]>
Jetty version(s)
10+
Java version/vendor
(use: java -version)
All
OS type/version
All
Description
The documentation gives example on using
org.eclipse.jetty.util.Password
like ...and
But the
org.eclipse.jetty.util.security.Password
class has logging, so this makes the command line a bit more complex ...Example:
I see a few options here.
The simplest approach would be to just remove the logging from Password and Credential, but that hurts normal usage of those classes.
Document how to add slf4j-api and jetty-slf4j-impl to the command line.
Introduce a new PasswordCli class that doesn't use Credential or logging at all.
Introduce a
start.jar
option that just runsorg.eclipse.jetty.util.security.Password
with the appropriate classloader setup. (--password
?)The text was updated successfully, but these errors were encountered: