PDA

View Full Version : Error at SimplePasswordValidationCallbackHandler?



res1st
Sep 28th, 2006, 11:32 AM
Hi,
that's your code.

protected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException {
if (callback instanceof PasswordValidationCallback) {
PasswordValidationCallback passwordCallback = (PasswordValidationCallback) callback;
if (passwordCallback.getRequest() instanceof PasswordValidationCallback.PlainTextPasswordReques t) {
passwordCallback.setValidator(new SimplePlainTextPasswordValidator());
}
else if (passwordCallback.getRequest() instanceof PasswordValidationCallback.DigestPasswordRequest) {
PasswordValidationCallback.DigestPasswordRequest digestPasswordRequest =
(PasswordValidationCallback.DigestPasswordRequest) passwordCallback.getRequest();
String password = users.getProperty(digestPasswordRequest.getUsernam e());
digestPasswordRequest.setPassword(password);
passwordCallback.setValidator(new PasswordValidationCallback.DigestPasswordValidator ());
}
passwordCallback.setValidator(new SimplePlainTextPasswordValidator());
But in the digest case, the setValidator set and after it the validator will be set again with a PlainTextValidator.

Cheers,

Ingo

Arjen Poutsma
Sep 28th, 2006, 01:52 PM
Oops :). Could you file an issue?

res1st
Sep 29th, 2006, 01:10 AM
Ok, done. It's here (http://opensource.atlassian.com/projects/spring/browse/SWS-56).

I assume you'll fix it in the M3 nightly build.
I find the sources very helpful in working with SWS. I would like it if the nightly builds also contain the source code ZIPs. Do you think it's possible?

Cheers,

Ingo

Arjen Poutsma
Oct 1st, 2006, 02:51 PM
The issue has been fixed.

With regard to the sources: we try and keep our download costs as low as possible. For this reason, the nightly snapshots do not contain the sources, nor the samples. You can check out the sources using svn though.

res1st
Oct 10th, 2006, 03:11 AM
Hi Arjen,

thank you for fixing the problem.

The problem is, that i can't simply debug SWS with a nightly build if the sources are not directly available.

Maybe you can provide the JAR-source files as a seperate download? :)
Cheers,

Ingo

Arjen Poutsma
Oct 10th, 2006, 05:53 AM
You can associate the jars with the subversion checkout, so I see no reason for having separate source zips.