From: Adam R. <ad...@ex...> - 2010-12-22 14:27:44
|
Okay thanks, I have just resolved this issue and committed to trunk.. On 22 December 2010 13:43, Efraim Feinstein <efr...@gm...> wrote: > Hi, > > Thanks for your response. > > On 12/22/2010 04:49 AM, Adam Retter wrote: >> >> Do you have a simpler example? Perhaps you could actually paste the >> content of the authorisation header directly into a standalone query? >> >> On 22 December 2010 05:17, Efraim Feinstein<efr...@gm...> >> wrote: >> >>> >>> In (at least) r13371 and r13431 in trunk, a cast from xs:string to >>> xs:base64Binary has unexpected results. >>> > > Here's a standalone query which demonstrates the problem: > let $header := 'Basic YWJjOkFCQw==' > let $authorization := substring-after($header,'Basic ') cast as > xs:base64Binary? > return > <root> > <header>{$header}</header> > <authorization>{$authorization}</authorization> > <bts>{util:binary-to-string($authorization)}</bts> > </root> > > It should decode to "abc:ABC" > > -- > --- > Efraim Feinstein > Lead Developer > Open Siddur Project > http://opensiddur.net > http://wiki.jewishliturgy.org > > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |