Uh oh!
There was an error while loading. Please reload this page.
android websocket: include cookies with request - #6851
Conversation
facebook-github-bot
commented
Apr 7, 2016
By analyzing the blame information on this pull request, we identified @aprock, @satya164 and @christopherdro to be potential reviewers. |
christopherdro
commented
Apr 7, 2016
Build is failing from /cc @mkonicek Thoughts? |
bestander
commented
Apr 7, 2016
@srikanthkh, Buck build is failing. |
47763c8 to
0a0d5c4Comparefacebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
0a0d5c4 to
6db13ecComparefacebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
srikanthkh
commented
Apr 7, 2016
@christopherdro & @bestander I have made the suggested changes. Please let me know if anymore changes are required. Thank you. |
facebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
5b3b997 to
b5e3937Comparefacebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
6e270f7 to
015b002Comparefacebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
015b002 to
2220e7fComparefacebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
srikanthkh
commented
Apr 7, 2016
code was failing one of my tests when cookie was null, So just fixed it and re-pushed the code. Thank you |
facebook-github-bot
commented
Apr 7, 2016
@srikanthkh updated the pull request. |
facebook-github-bot
commented
Apr 12, 2016
ghost
commented
Apr 30, 2016
@satya164 would you mind taking a look at this pull request? It's been a while since the last commit was reviewed. |
satya164
commented
May 4, 2016
@christopherdro fine with shipping this? |
christopherdro
commented
May 4, 2016
@satya164 👍 LGTM! |
satya164
commented
May 4, 2016
@facebook-github-bot shipit |
mkonicek
commented
May 9, 2016
@srikanthkh The fix itself to include cookies in WebSocket requests is good, if you can send a new pull request we should get this in. |
mkonicek
commented
May 9, 2016
Note that the |
christopherdro
commented
May 9, 2016
@mkonicek Yea thats my bad for not looking it over properly. 😞 |
mkonicek
commented
May 9, 2016
No worries @christopherdro! I totally understand there are a lot of pull requests to look at and the motivation to get this fix in quickly. |
mkonicek
commented
May 9, 2016
@srikanthkh Is there a method similar to |
Re: |
mkonicek
commented
May 9, 2016
👍 Thanks @christopherdro. |
fakenickels
commented
Jun 3, 2016
Really needing this |
salbito
commented
Jun 6, 2016
Any updates on this getting shipped soon? |
christopherdro
commented
Jun 6, 2016
It appears this PR was reverted but I am not sure why. /cc @mkonicek |
Cookies were being sent along in WebSockets with react-native 0.26 (OkHttp2) but not anymore with react-native 0.27 (OkHttp3). @mkonicek: "I'll revert this now and let's do it again and properly." => Any ETA? I wish I could help but I know nothing about Android dev 😓 |
I think @mkonicek means:
Basically, the author should fulfill conditions above.
I can help the forking stuff and fix coding conventions, but I am not using this functionality, so don't know what is a proper test plan. |
antoinerousseau
commented
Jun 7, 2016
@zxcpoiu well I'm not really good at tests and I'm not sure how to write a plan for this feature... I suppose it would be like sending a first HTTP request which response includes a test cookie, and then connecting through a WebSocket at the same address than the HTTP request, and check on the server side if the test cookie is present... at least that's how I use it (my users are authenticated using an HttpOnly cookie set through an HTTPS request, and this auth must also be readable by the server when receiving WebSocket connections). The test plan is described as:
|
zxcpoiu
commented
Jun 8, 2016
@antoinerousseau has created a follow up PR #7989 |
Summary: Previously cookie headers weren't sending on websocket connection requests for android. This commit fixes the issue. Closesreact#6851 Differential Revision: D3257466 fb-gh-sync-id: 4225d11c8c6efd09493ef938a65f024dcbaff749 fbshipit-source-id: 4225d11c8c6efd09493ef938a65f024dcbaff749
Summary: This reverts the commit react@bf8b549 Pull request: react#6851 Internal Phabricator revision: D3257466 See the pull request for discussion. Reviewed By: bestander Differential Revision: D3277433 fbshipit-source-id: 623f93e1bce47ac156ffab154c57495b85ffa936
Summary: This PR updates #6851 from srikanthkh, fixing coding conventions and javadoc, and adding a test plan. Added testing functions into the WebSocketExample page of the UIExplorer, including a tiny http server to set a cookie on demand. Instructions included in the UIExplorer app. Closes#9114 Differential Revision: D4140534 Pulled By: lacker fbshipit-source-id: e020ad0c6d1d3ea09c0c3564c1795b4e1bc4517d
Previously cookie headers weren't sending on websocket connection requests for android.
This commit fixes the issue.