2016-09-29 5 views
1

のJSONストアが作成されていません。下記のサンプルコードはAndroidの最新の修正では動作しませんが、オプションからパスワードフィールドを削除するとうまくいきます。私たちは、Android上でエラーの下に取得しているが、それはIOSAndroidで最新バージョンのフィックスパック7.1.0.00.20160919-1656

{ "SRC" で正常に動作しています: "initCollection"、 "ERR": - 3、 "MSG": "INVALID_KEY_ON_PROVISION"、 "COL": "人" 、 "USR": "テスト"、 "DOC":{}、 "RES":{}}

function wlCommonInit(){ 
    /* 
    * Use of WL.Client.connect() API before any connectivity to a MobileFirst Server is required. 
    * This API should be called only once, before any other WL.Client methods that communicate with the MobileFirst Server. 
    * Don't forget to specify and implement onSuccess and onFailure callback functions for WL.Client.connect(), e.g: 
    *  
    * WL.Client.connect({ 
    *   onSuccess: onConnectSuccess, 
    *   onFailure: onConnectFailure 
    * }); 
    *  
    */ 

    // Common initialization code goes here 

} 


function onClick(){ 
    alert("Click"); 
    var collectionName = 'people'; 

    // Object that defines all the collections. 
    var collections = { 

     // Object that defines the 'people' collection. 
     people : { 

     // Object that defines the Search Fields for the 'people' collection. 
     searchFields : {name: 'string', age: 'integer'} 
     } 
    }; 

    // Optional options object. 
    var options = { 

     username:"test", 
     // Optional password, default no passw`enter code here`ord. 
     password : '123', 

    }; 

    WL.JSONStore.init(collections, options) 

    .then(function() { 
     alert("Success in jstore"); 
    }) 



    .fail(function (errorObject) { 
     // Handle failure for any of the previous JSONStore operations (init, add). 
     alert("Failure in jstore : "+ JSON.stringify(errorObject)); 
    }); 
}; 
+0

古いバージョンで作成された既存のアプリを7.1.0.00.20160919-1656に移行していますか? –

答えて

1

更新: IFIXが今解放されます。ビルド番号は7.1.0.0-IF201610060540です。

これは、利用可能な最新のiFixに関する既知の問題です。最近修正され、すぐに利用可能になるはずです。

この問題の修正については、IBM Fix Central Webサイトで最新のiFixリリースを確認してください。

+0

素早い返答をいただきありがとうございます。更新情報を確認します – user1240116

+0

こんにちはIdan、7.1.0.00.20160919-1656にこのJSONストアの問題があり、以前のバージョン7.1.0.0-MFPF-IF201608ではOpenSSLバージョンの脆弱性のためGoogleアプリケーションでアプリケーションが拒否されました。 2016年8月からアプリケーションを本番環境に移行することはできません。修正センターでフィックスパックのリリースを迅速化することで助けてください。ありがとう。 – Ragu

+0

本当は...私はこれを支配していません。あなたはPMRを介してこれを尋ねる必要があります。 –

関連する問題