Re: Need your help
"Chen, Hao" <[email protected]> Tue, 16 Aug 2005 21:18:44 +0100
| Newsgroups | gmane.network.jabber.exodus.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, I don't think there is any witespace right before </chanllenge>
:( Here is my code for generating that chanllenge. If I'm wrong,
please tell me.
byte[] challenge = mySaslServer.evaluateResponse(new byte[0]);
StringBuilder reply = new StringBuilder();
reply.append("<challenge xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
reply.append(Base64.encode(challenge).trim());
reply.append("</challenge>");
then, my codes will send out this reply. Messages in the debug window
of Exodus are:
RECV: <challenge
xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09Im51bnUiLG5vbmNlPSJWaitPQjEyWmtxaW10UTl6R3VGUmtxbThkMGMxSW5sWlRxNy90
T2tzIixxb3A9ImF1dGgiLGNoYXJzZXQ9InV0Zi04IixhbGdvcml0aG09Im1kNS1zZXNzIg==</challenge>
This is exactly what my codes send out. I really have no ideas about
what's going wrong here :(
Regards,
On 16/08/05, Joe Hildebrand <joe-bvCY4hpNeH/[email protected]> wrote:
> Exactly. I just checked in a quick fix to catch this exception, so
> at least we won't core in the face of not-yet-complete server
> implementations... :)
>
> On Aug 15, 2005, at 2:20 PM, Tristan Stahnke wrote:
>
>
> > Actually I think he's referring to the carriage return right before
> > </challenge>, that should be removed, AFAIK.
> >
> > On 8/15/05, Chen, Hao <[email protected]> wrote:
> >
> >
> >> In the chanllenge, there is NO space between g and =. I suppose it is
> >> my email client adds such a space automatically. Anyway, this time I
> >> upload the error log as an attachment, please check it, thanks a lot
> >> :)
> >>
> >> Regards,
> >>
> >> On 15/08/05, Joe Hildebrand <joe-bvCY4hpNeH/[email protected]> wrote:
> >>
> >>
> >>> I'm guessing it's the extra whitespace before </challenge> that is
> >>> the problem. Crashing is wrong, of course, so I'll take a look
> >>> at it.
> >>>
> >>>
> >>> On Aug 15, 2005, at 7:14 AM, Chen, Hao wrote:
> >>>
> >>>
> >>> _______________________________________________
> >>> Exodus-dev mailing list
> >>> [email protected]
> >>> http://mail.jabber.org/mailman/listinfo/exodus-dev
> >>>
> >>>
> >>>
> >>
> >>
> >> --
> >> Chen, Hao
> >>
> >>
> >> _______________________________________________
> >> Exodus-dev mailing list
> >> [email protected]
> >> http://mail.jabber.org/mailman/listinfo/exodus-dev
> >>
> >>
> >>
> >>
> >>
> >>
> > _______________________________________________
> > Exodus-dev mailing list
> > [email protected]
> > http://mail.jabber.org/mailman/listinfo/exodus-dev
> >
> >
>
>
> _______________________________________________
> Exodus-dev mailing list
> [email protected]
> http://mail.jabber.org/mailman/listinfo/exodus-dev
>
--
Chen, Hao