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

Android: NumberFormatException if cached file does not have a content-length

    Details

      Description

      {html}<div><p>Failcase app.js:</p>
      <pre>
      <code class="javascript">Titanium.UI.setBackgroundColor('#000');
      var win = Titanium.UI.createWindow({
      title:'Test',
      backgroundColor:'#000',
      exitOnClose: true
      });
      var thisURL = "module=MultiSites&action=getEvolutionGraph&period=day&date=2011-01-04,2011-02-02&evolutionBy=visits&columns=nb_visits&idSite=7&idsite=7&viewDataTable=sparkline";

      var paramArray = thisURL.split("&");
      for(var i=0,ilen=paramArray.length;i<ilen;i++){
      var thisKeyValue = paramArray[i].split("=");
      thisKeyValue[1] = Ti.Network.encodeURIComponent(thisKeyValue[1]);
      paramArray[i] = thisKeyValue.join("=");
      }
      var encodedURI = paramArray.join("&");
      var encodedURL = "http://demo.piwik.org/index.php?" + encodedURI;
      Ti.API.info(encodedURL);

      var imageView = Ti.UI.createImageView({
      image: encodedURL
      });

      win.add(imageView);
      win.open();</code>
      </pre>
      <p>This app will crash when you run it.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              billdawson Bill Dawson
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration