【问题标题】:JSON Store is not creating in Android for latest version fix pack 7.1.0.00.20160919-1656JSON Store 未在 Android 中为最新版本修复包 7.1.0.00.20160919-1656 创建
【发布时间】:2017-02-07 14:47:11
【问题描述】:

以下示例代码在 Android 上的最新修复中无法正常工作,但如果我们从选项中删除密码字段,则它可以正常工作。我们在 Android 上遇到错误,但在 IOS 上运行良好

{"src":"initCollection","err":-3,"msg":"INVALID_KEY_ON_PROVISION","col":"people","usr":"test","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));
    });
};

【问题讨论】:

  • 您是否要将基于旧版本构建的现有应用迁移到 7.1.0.00.20160919-1656?

标签: ibm-mobilefirst jsonstore


【解决方案1】:

更新: iFix 现已发布。内部版本号是 7.1.0.0-IF201610060540 。

这是最新可用 iFix 的一个已知问题。它最近已修复,应该很快就会可用。

请留意 IBM Fix Central 网站上更新的 iFix 版本,以解决此问题。

【讨论】:

  • 感谢 Idan 的快速回复。会持续关注更新
  • 嗨 Idan,在 7.1.0.00.20160919-1656 中,我们遇到了这个 JSON 存储问题,在之前的版本 7.1.0.0-MFPF-IF201608012314 中,由于 OpenSSL 版本漏洞,我们的应用程序在 Google Play 中被拒绝问题。自 2016 年 8 月以来,我们无法将我们的应用程序移至生产环境。请您通过加快修复中心上的修复包发布来帮助我们。谢谢。
  • 不是真的...我对此没有任何控制权。您需要通过 PMR 提出此问题。
  • iFix 现已发布:7.1.0.0-IF201610060540。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-12-30
  • 1970-01-01
  • 2015-12-08
  • 2011-12-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多