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

Windows: Ti.Network.HTTPClient.send fails when arg object has non-string/Blob values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 5.0.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2015 Sprint 17 Windows

      Description

      Our current code assumes that the JSObject has string property names (which is valid) and either String or Ti.Blob values. It needs to handle other value types and convert them into strings.

      The following works on iOS/Android, but fails on Windows:

      var datas = {
              'authenticatestring': Alloy.Globals.authenticateString,
              'functionName': 'registerNewReceiver',
              'apiVersion' : Alloy.Globals.serverApiVersion,
              'languageId' : Alloy.Globals.serverLanguage,
              'deviceId' : Alloy.Globals.deviceId,
              'purchaseId' : 9846598
          };
          httpClient.send();
      

      This is because our code take the numeric value for 'purchaseId' and since it's not a string assumes it's a Blob and attempts to pull a native Ti.Blob object out of it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                buder Jörgen Buder
                Reviewer:
                Christopher Williams
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code