You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountering a content length issue on test suite when there is a WSS cloud app added to the preloaded policy table.
The issue seems to be with the certificate parameter, more specifically the \n characters. When core sends the request body, all \ns have an extra escape backslash character(\n) which triggers the content-length promised 19622 bytes, but received 19603 error on the java_suite side.
Start policy server and change the 0x07 endpoint in sdl_preloaded_pt.json
Start core and hmi. The WSS app should be in the app list
Register the Test Suite app to trigger a PTU
Expected Behavior
PTU is successful. HMI receives UP_TO_DATE message
Observed Behavior
PTU is unsucessful. Should see the a content-length error on the Test Suite app (in logcat)
2022-04-06 10:03:30.509 24258-24520/io.livio.sdltestsuite.app1 E/PoliciesFetcher: RC_5.4.0: sendSystemRequestToUrl: Could not set request method to post.
java.net.ProtocolException: content-length promised 19622 bytes, but received 19603
at com.android.okhttp.internal.http.RetryableSink.close(RetryableSink.java:52)
at com.android.okhttp.okio.RealBufferedSink.close(RealBufferedSink.java:242)
at com.android.okhttp.okio.RealBufferedSink$1.close(RealBufferedSink.java:210)
at java.io.FilterOutputStream.close(FilterOutputStream.java:185)
at com.smartdevicelink.managers.lifecycle.PoliciesFetcher.fetchPolicies(PoliciesFetcher.java:170)
at com.smartdevicelink.managers.lifecycle.BaseLifecycleManager$3$1.run(BaseLifecycleManager.java:478)
Bug Report
Encountering a content length issue on test suite when there is a WSS cloud app added to the preloaded policy table.
The issue seems to be with the certificate parameter, more specifically the
\n
characters. When core sends the request body, all\n
s have an extra escape backslash character(\n) which triggers thecontent-length promised 19622 bytes, but received 19603 error
on the java_suite side.Reproduction Steps
sdl_preloaded_pt.json
sdl_preloaded_pt.json
Expected Behavior
PTU is successful. HMI receives UP_TO_DATE message
Observed Behavior
PTU is unsucessful. Should see the a content-length error on the Test Suite app (in logcat)
OS & Version Information
The text was updated successfully, but these errors were encountered: