SAML 2.0 (Google Accounts Integration) issues
Jens Carlberg
jens.carlberg at liu.se
Wed Dec 19 04:46:30 EST 2007
Scott Battaglia wrote:
> So is it Google not completely sending the data?
No, probably not. If you use a Inflater with the nowrap option, you need
to add an extra dummy byte to the byte array, as documented in the API:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/Inflater.html#Inflater(boolean)
I have just tried to add the code below to GoogleAccountsService, method
inflate() (diff against version 1.1):
243c243,249
< inflater.setInput(bytes);
---
>
> byte[] extendedBytes = new byte[bytes.length + 1];
> System.arraycopy(bytes, 0, extendedBytes, 0, bytes.length);
> extendedBytes[bytes.length] = 0;
>
> inflater.setInput(extendedBytes);
>
... and it seems to be working. We saw usually one error on a bit less
than 30 successes, and now we haven't seen any in over 300 (knock on wood).
///Regards,
--
| _/ _/_/_/ _/ _/ _/_/_/ | Jens Carlberg
| _/ _/ _/_/ _/ _/ | UNIT, Linköpings universitet
| _/ _/_/ _/ _/_/ _/ | Tel: +46 13 281758
| _/_/ _/_/_/ _/ _/ _/_/_/ | Fax: +46 13 284400
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3319 bytes
Desc: S/MIME Cryptographic Signature
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071219/18b77e95/attachment.bin
More information about the cas
mailing list