Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18869

iOS: "Invalid JSON in where parameter"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0, Release 4.1.0
    • Component/s: iOS
    • Environment:

      MacOS 10.10.3
      Studio 4.0.0.201505011227
      Ti SDK 4.0.0.RC2
      Appc NPM 0.3.55
      Appc CLI 0.2.279
      Ti CLI 4.0.0-beta8
      Alloy 1.6.0-beta4
      Node v0.10.37

    • Sprint:
      2015 Sprint 09 SDK

      Description

      When using 4.0.0.RC2 and making an ACS objects query, I get an error where there previously was not one:

      [ERROR] :  400: Invalid JSON in where parameter: 745: unexpected token at '%7B%22title%22%3A%22TIMOBAlloy--0Simulator8.3medium1307681024.png%22%7D'
      

      Steps to reproduce issue
      1. Create a project and include a query for an ACS Object
      2. Run the project

      Actual Results:
      The above error is thrown

      Expected Results:
      No error is thrown

      Notes:
      This is the query I am using:

      Cloud.Photos.query({
          limit: 1,
          where: { 'title': file.name }
      }, function (e) {
          if (e.success) {
              alert("Image found");
          } else {
              alert("Unable to find image");
          }
      });
      

      The community is also encountering this: https://community.appcelerator.com/topic/329/4-0-0-rc2-query-invalid-json-in-where-parameter/2

      If I switch to use SDK 4.0.0.RC then I do not get the error.

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              ewieber Eric Wieber
              Reviewer:
              Pedro
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19891
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code