AndroidPinning icon indicating copy to clipboard operation
AndroidPinning copied to clipboard

Edge case on API < 16

Open elevenfive opened this issue 11 years ago • 4 comments

https://gist.github.com/elevenfive/c5cab352ca368bba3087

Take a look! I confirmed this breaks on < 16. It doesn't break for all URLs. For example, Paypal's site doesn't expose the issue for some reason.

Important details: #1: The first test that runs creates a pinned connection which succeeds. The second test then tries to make another connection without pins. That 2nd test should not be able to make the connection but for some reason can. #2: You must attempt to use the stream returned during the test. This happens with the lines:

InputStreamReader isr = new InputStreamReader(respStream); String respString = readFully(isr);

Any ideas?

elevenfive avatar Jun 19 '13 22:06 elevenfive

Thanks, could you submit a test case?

moxie0 avatar Jun 19 '13 22:06 moxie0

There is some sort of other strangeness going on - when I tried to replicate the problem directly in a test case in this project I was unable to do so.

elevenfive avatar Jun 20 '13 03:06 elevenfive

Please keep me updated if you figure out what's happening.

moxie0 avatar Jun 20 '13 04:06 moxie0

I added a test case in a gist above. (I don't know if you got notified when i edited that comment or not)

elevenfive avatar Jun 20 '13 20:06 elevenfive