2015-10-07 60 views
0

我們已經實施了混合移動應用程序,該應用程序使用最新版本的MFP 7.0,也是服務器端。使用Xcode7在Mac上運行應用程序並在iOS9模擬器中測試,但在進行登錄操作時失敗。試圖登錄時與連接相關的異常發生

我們使用原生代碼可以訪問內部防火牆,然後通過WL.Client.connect連接到WL服務器,我們看到了一些例外,打印出的Xcode的控制檯如下:

2015-10-07 19:16:48.320 TestApp[7608:514098] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:335 :: Response Status Code : 403 2015-10-07 19:16:48.322 TestApp[7608:514098] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:336 :: Response Error : Expected status code in (200-299), got 403

2015-10-07 19:16:48.323 TestApp[7608:514098] [ERROR] [WL_REQUEST] -[WLRequest requestFailed:error:] in WLRequest.m:477 :: Status code='403' error='Expected status code in (200-299), got 403' response='/-secure- {"reason":"App authenticity security check failed"}/' 2015-10-07 19:16:48.323 TestApp[7608:514098] [DEBUG] [WL_REQUEST] -[WLRequest requestFailed:error:] in WLRequest.m:480 :: Response Header: { Connection = "Keep-Alive"; "Content-Language" = "en-US"; "Content-Type" = "application/json; charset=UTF-8"; Date = "Wed, 07 Oct 2015 11:16:44 GMT"; "Keep-Alive" = "timeout=10, max=97"; "Transfer-Encoding" = Identity; "X-Powered-By" = "Servlet/3.0"; }

響應數據:

/-secure- {"reason":"App authenticity security check failed"}/ 2015-10-07 19:16:53.064 TestApp[7608:514605] [ERROR] [NONE] [/apps/services/api/TestApp/iphone/init] failure. state: 200, response: undefined 2015-10-07 19:16:53.064 TestApp[7608:514170] [DEBUG] [NONE] Client registration failed with error: {"status":200,"responseHeaders":{},"responseText":"The operation couldn’t be completed. (WL_AUTH error 0.)","invocationContext":null}

+0

1)什麼是您的MobileFirst Studio版本**和內部版本號**? 2)您是否使用錯誤日誌中顯示的真實性?它是基本的真實性還是擴展的真實性? 3)你是否禁用了Xcode項目中的Bitcode? 4)您是否禁用ATS或將您的開發服務器列入白名單進行連接會起作用? –

+0

1)MFP的版本爲20150907-1450 – djw

+0

3)xcode中的位代碼被禁用 4)ATS也被禁用。 – djw

回答

0

私人聊天后,很明顯的是,故障是關於應用真性保護這實際上是不希望被使用。

由於這樣的解決方案是驗證authentication安全測試沒有被應用在authenticationConfig.xml文件中,重新構建項目以確保更改包含在生成的.war文件中,然後重新部署更新後的.war文件發送到遠程服務器,以確保服務器在應用程序嘗試連接到MobileFirst Server時不會發送真實性質詢。

+0

謝謝Idan,問題已解決。檢查由於真實性保護配置不正確而導致。 – djw

相關問題