Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27385] iOS: WKWebView is stripping out = characters in network requests

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-10-30T21:07:57.000+0000
Affected Version/sRelease 8.0.0, Release 8.1.0
Fix Version/sRelease 8.3.0
ComponentsiOS
LabelsengSchedule, regression
ReporterHolger Nestmann
AssigneeVijay Singh
Created2019-09-09T11:32:54.000+0000
Updated2019-10-30T21:07:57.000+0000

Description

Within WKWebView network requests seem to strip out the = characters from request body where they didn't in WebView pre-WKWebView (aka 7.x) A sample app demonstrating the problem can be found here: https://github.com/hnestmann/titanium-bug/ {quote}basically it calls this URL to set the cookie: https://hnestmann-inside-eu01-dw.demandware.net/on/demandware.store/Sites-RefArch-Site/en_US/CookieCheck-Set and this to play it back: https://hnestmann-inside-eu01-dw.demandware.net/on/demandware.store/Sites-RefArch-Site/en_US/CookieCheck-Check in browsers and 7.5.1 the clients send SimpleValue==== in 8.X.X the clients (httpClient and webViews) send SimpleValue {quote}

Attachments

FileDateSize
image (3).png2019-09-09T11:31:52.000+0000272871

Comments

  1. Holger Nestmann 2019-09-09

    Thank @Rene Pot for raising the ticket on my behalf. I did inspect the webview in safari and the webview shows the correct cookie values including the equal signs. But they seem to be skipped on the way to the server.
  2. Vijay Singh 2019-10-17

    PR - https://github.com/appcelerator/titanium_mobile/pull/11286 Test Case -
       const win = Ti.UI.createWindow({
       	backgroundColor: 'red'
       });
       var webView = Ti.UI.createWebView({
       	top: 0,
       	height: 200,
       	url: 'https://hnestmann-inside-eu01-dw.demandware.net/on/demandware.store/Sites-RefArch-Site/en_US/CookieCheck-Set'
       });
       win.add(webView);
       
       var webView2 = Ti.UI.createWebView({
       	top: 250,
       	height: 200
       });
       win.add(webView);
       
       webView.addEventListener('load', function(e){
         webView2.url = 'https://hnestmann-inside-eu01-dw.demandware.net/on/demandware.store/Sites-RefArch-Site/en_US/CookieCheck-Check'
         webView2.reload();
       });
       win.add(webView2);
       win.open();
       
  3. Samir Mohammed 2019-10-24

    FR Passed, waiting on Jenkins build.
  4. Christopher Williams 2019-10-30

    merged to master
  5. Satyam Sekhri 2019-10-30

    Verified on: Mac OS: 10.14.5 SDK: 8.3.0.v20191030085531 Appc CLI: 7.1.1 JDK: 1.8.0_162 Node: 10.5.0 Studio: 5.1.4.201909061933 Xcode: 11.1 Device: iOS simulator 13.1, 12.2

JSON Source