[AC-2429] Weird image url causes execution to stop
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-10-04T06:37:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | 3.1.3, error, imageview, ios7, xcode5 |
| Reporter | Rey Bumalay |
| Assignee | Shak Hossain |
| Created | 2013-10-03T22:55:45.000+0000 |
| Updated | 2016-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.
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*
Thanksvar 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();Closing this since we have not got any response back from Rey.