[ 
https://issues.apache.org/jira/browse/CB-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon MacDonald resolved CB-1888.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.0

Handle https correctly now.
                
> Can't add a Photo from a HTTPS address to Contact
> -------------------------------------------------
>
>                 Key: CB-1888
>                 URL: https://issues.apache.org/jira/browse/CB-1888
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> Hello,
> I am on 2.0.0 ( Didnt upgrade because 2.2.0 is giving me more problems with 
> contacts)
> I work on android , IOS and blackberry  ,but for this issue Im testing on 
> Android
> Anyway , I have managed to save contacts , but I would now like to save 
> photos.
> I have the images in the page where you can save the contact , so i have the 
> source/URL of the images.
> However , when i try to save the contact I get errors saying the file cannot 
> be found
> I have tested it with google's logo and basically its the same with my image 
> , just a different link.
> 11-20 16:54:37.770: E/ContactsAccessor(13432): 
> /https:/www.google.com/images/srpr/logo3w.png: open failed: ENOENT (No such 
> file or directory)
> 11-20 16:54:37.770: E/ContactsAccessor(13432): java.io.FileNotFoundException: 
> /https:/www.google.com/images/srpr/logo3w.png: open failed: ENOENT (No such 
> file or directory)
> This is part of my code:
>                         var photos = [];
>                         var profilePic;
>                       //profilePic=$("#pageProfile").find(".profileHeader 
> img").attr("src");
>                       
> profilePic="https://www.google.com/images/srpr/logo3w.png";;
>                       var photo = new ContactField();
>                       photo.value=profilePic;
>                       photos[0]=photo;
>                       contact.photos = photos;
> And just incase you just say its my code , yes ive tried photos.push(photo) , 
> and I have checked the source of my image , it is correct.
> Somehow the error logs are not showing double black slashes for the URL , and 
> YES i have even run a replace method to double the back slashes and its the 
> same.
> I have also tried 
> var photo= new ContactField('url', imageURL,true);
> ...
> I hope you guys can help
> Thanks!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to