Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data received by server when enabling using basic auth #5

Closed
alexrobin opened this issue Oct 10, 2016 · 1 comment
Closed

No data received by server when enabling using basic auth #5

alexrobin opened this issue Oct 10, 2016 · 1 comment
Assignees
Labels

Comments

@alexrobin
Copy link
Member

alexrobin commented Oct 10, 2016

When BASIC Auth is enabled on the server side and proper credentials entered in the Android App, the phone successfully connects to register the sensor and the result templates but no data is received by the server although the InsertResult request is initiated.

After looking at the packets in Wireshark it seems that the Auth header is not resent properly after receiving the initial 401 response when using a chunked transfer encoding. Need to check if it's a bug the okhttp client on Android or if it also happens in OpenJDK.

@alexrobin alexrobin added the bug label Oct 10, 2016
@alexrobin alexrobin self-assigned this Oct 10, 2016
@alexrobin
Copy link
Member Author

Authentication is not supported automatically over streaming HTTP connections. Fixed by providing basic auth header manually in SOS-T client (in sensorhub-service-swe module)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant