Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

CookieTempDataProvider chunking broken #5430

Closed
ryanbrandenburg opened this issue Oct 19, 2016 · 6 comments
Closed

CookieTempDataProvider chunking broken #5430

ryanbrandenburg opened this issue Oct 19, 2016 · 6 comments
Assignees
Milestone

Comments

@ryanbrandenburg
Copy link
Contributor

When attempting to retrieve temp data that was saved large enough to be chunked we get the error System.IO.IOException: The encryption operation failed, see inner exception. --> Interop+OpenSsl+SslException: SSL Read BIO failed with OpenSSL error.

This seems to replicate on both Ubuntu and Windows.

@ryanbrandenburg
Copy link
Contributor Author

So, after doing further investigation we find that this problem happens in Firefox and Chrome, but not IE. It appears that the final chunk is getting saved, but the chunks before it are either geting "overridden" or never saved at all.

@kichalla
Copy link
Member

We currently do ChunkIntoCookies(Base64Encode(DataProtect(BsonSerialize(actualData)))) and the chunking cookie manager makes sure to limit cookie size to it default cookie size (4070). But it appears that these Base64 encoded chunked parts themselves are again url encoded (probably at the hosting layer?) and because of which its exceeding the limit of 4096 bytes in Chrome and Firefox. IE seems to have a limit of 5117 bytes. (site to test: http://browsercookielimits.squawky.net/)

@kichalla
Copy link
Member

cc @sebastienros

@kichalla
Copy link
Member

cc @Tratcher

@Tratcher
Copy link
Member

@kichalla
Copy link
Member

kichalla commented Nov 1, 2016

32710bb

@kichalla kichalla closed this as completed Nov 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants