[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-05-12 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994274#comment-13994274
 ] 

John McLear commented on CB-5731:
-

Removing weinre from my project did resolve this.

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Sergey Grebnov
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-21 Thread Sergey Grebnov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877418#comment-13877418
 ] 

Sergey Grebnov commented on CB-5731:


Seems to be related to https://issues.apache.org/jira/browse/CB-5219 and 
https://issues.apache.org/jira/browse/CB-5203
There is an exception during request processing on Weinre side and request 
fails.

After I manually patched 
https://github.com/JohnMcLear/temporary_foo_demo_wp8_fail example 
(cordovalib/XhrHelper.cs) I was able to get everything working. I'll review the 
status of patches for issues above and will make sure they are merged to wp8 
codebase


> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Sergey Grebnov
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-14 Thread Sergey Grebnov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870831#comment-13870831
 ] 

Sergey Grebnov commented on CB-5731:


Confirm, will take a look soon

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Sergey Grebnov
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-13 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869957#comment-13869957
 ] 

Jonathan Silverman commented on CB-5731:


This may be related to this issue, and has a workaround: 
http://stackoverflow.com/questions/14442470/weinre-with-windows-phone-8-connection-drops

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867512#comment-13867512
 ] 

Jonathan Silverman commented on CB-5731:


Patrick,

Thanks for your reply. I reported a Weinre bug.

https://issues.apache.org/jira/browse/CB-5759


> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread Patrick Mueller (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867343#comment-13867343
 ] 

Patrick Mueller commented on CB-5731:
-

Sorry, not quite sure if a weinre bug is being reported here or not; if so, you 
can open a bug directly against weinre [1] or just provide more detail.

Since cross-origin is coming up in the conversation, figure I'd mention that 
weinre does cross-origin requests itself just for basic operation.  The weinre 
server implements CORS bits, and all that stuff has worked for quite a while - 
but it wouldn't surprise me if something doesn't work right on some platform.

weinre also hooks XHR, so ... that could be a problem as well, but it seems 
like it's generally worked well for most folks - although there were some 
recent issues reported against WP8 [2].

[1] 
https://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12312420&components=12316604&issuetype=1

[2] 
https://issues.apache.org/jira/browse/CB-5203?jql=project%3DCB%20and%20component%3Dweinre

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867087#comment-13867087
 ] 

Jonathan Silverman commented on CB-5731:


notes: $.get still subject to cross-origin policy, internal intel XDK 
"getRemoteDataExt" is not.. neither can access https:// sites with invalid 
certificates

Intel replied to me here: 
https://forums.html5dev-software.intel.com/viewtopic.php?f=34&t=5024&p=18665#p18665
 and they filed a bug.

Hope this is helpful.

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866745#comment-13866745
 ] 

Jonathan Silverman commented on CB-5731:


John, I agree that Weinre is probably bugged.

It looks like you got cross-site XHRs working and then ran into a Parse error.

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866560#comment-13866560
 ] 

John McLear commented on CB-5731:
-

Oh nice I was able to alert an error I couldn't console log..  
http://i.imgur.com/p75yc66.png

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866555#comment-13866555
 ] 

John McLear commented on CB-5731:
-

Removing 

http://10.0.0.12:8080/target/target-script-min.js#anonymous";>

shows the alert but requests to parse are still failing, obviously something 
very funky going on here...

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-08 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865717#comment-13865717
 ] 

John McLear commented on CB-5731:
-

My specific case is using the Parse API with their Javascript SDK so I can't 
change from https to http

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-08 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865605#comment-13865605
 ] 

Jonathan Silverman commented on CB-5731:


I believe I have isolated the issue.

You cannot make a XMLHTTPRequest from a page served with http:// to one with 
https:// even if it redirects:

$.get("http://time.jsontest.com";, function(){alert("yay")}); // produces alert

$.get("http://google.com";, function(){alert("yay")}); // doesn't

Right now, only work around if you use https:// looks like to use the CORS http 
configuration directive:

Access-Control-Allow-Origin: *

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864977#comment-13864977
 ] 

John McLear commented on CB-5731:
-

https://github.com/JohnMcLear/temporary_foo_demo_wp8_fail

weirdly enough it sits on "connecting to device..."

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
> Attachments: BrokenXDKXHRDemo.zip
>
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864936#comment-13864936
 ] 

Jonathan Silverman commented on CB-5731:


Weird things:

1. The code I created was able to crash Apache Ripple/XDK on both Mac and 
Windows on *first run, process dies with no error messages*
2. On second run (i.e. after reopening XDK), the alert did infact appear in 
Apache Ripple (Emulate tab in XDK)
3. The alert appeared for some reason in the Develop > Design screen, but after 
that not again (this may have been because I switched tabs fast between Develop 
and Emulate)
4. Connected my iPod Touch 4G to Weinre and ran the code remotely. The alert 
did not show. It failed silently.

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread Jesse MacFadyen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864901#comment-13864901
 ] 

Jesse MacFadyen commented on CB-5731:
-

I tested in the emulator and on an HTC-One, and saw the alert in both cases.

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864842#comment-13864842
 ] 

Jonathan Silverman commented on CB-5731:


This is not just a WP8 problem. I am having this problem on iOS as well...

Tested on iPod Touch 4G, XDK NEW, Jquery Mobile: No alert.

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864633#comment-13864633
 ] 

John McLear commented on CB-5731:
-

I'm sorry Jesse but I double checked this on a clean app and the issue persists 
on this device..   Are you 100% sure you meant to close this?  

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864623#comment-13864623
 ] 

John McLear commented on CB-5731:
-

Really, you get a "yay" alert?

> Windows Phone 8 fails to access remote urls
> ---
>
> Key: CB-5731
> URL: https://issues.apache.org/jira/browse/CB-5731
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 3.3.0
>Reporter: John McLear
>Assignee: Jesse MacFadyen
>
> Doing a very simple:  
> {code:javascript}
> $.get("http://google.com";, function(){alert("yay")});
> {code}
> Fails on Windows Phone 8.
> Basically Cross domain requests don't work, this includes when an explicit 
> and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)