Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2429] Weird image url causes execution to stop

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-10-04T06:37:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels3.1.3, error, imageview, ios7, xcode5
ReporterRey Bumalay
AssigneeShak Hossain
Created2013-10-03T22:55:45.000+0000
Updated2016-03-08T07:41:28.000+0000

Description

I think this also happens with iOS6, 3.1.2 GA and Xcode 4. Created an image view with very weird url: http://pastebin.com/fgdsAy8R Error is being thrown: http://pastebin.com/fjg3c2QM Is there a way gracefully just ignore this and continue to execute logic? It just stops execution of other logics.

Comments

  1. Mostafizur Rahman 2013-10-04

    Hello Rey Bumalay, I have test this issue with provided test code. I got this bug for image URL. But when I encode this URL then it works well for me. In your image URL, have lot of spaces and special characters that why its not works properly. *My testing environment follows:* OS: MAC OX X 10.8.5 iOS SDK: 7.0,Xcode 5 iOS Simulator: 6.0 Ti SDK: 3.1.2 GA,3.1.3 GA Ti CLI: 3.1.2 *My test code*
       var win = Ti.UI.createWindow({
       	backgroundColor : '#ffffff'
       });
       
       var imageView = Ti.UI.createImageView({
       	width : 200,
       	height : 200,
       	image : encodeURI("http://api.referron.com.s3.amazonaws.com/imageuploads/8d04106b-062a-4faa-a881-11df29848d15c:/dwasfiles/sites/referron-production-dashboard/virtualdirectory0/site/wwwroot/temp_upload/screen shot 2013-10-03 at 11.41.06 pm.png")
       });
       win.add(imageView);
       
       win.open(); 
    Thanks
  2. Shak Hossain 2013-12-18

    Closing this since we have not got any response back from Rey.

JSON Source