Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12800 closed bug (invalid)

Error not handled calling https from http without installed certificate

Reported by: adaurell@… Owned by: adaurell@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

Calling from an http url an https url does not send any error message when certificate is not installed. For example:

// From http://myurl.com/test call:

$.ajaxSetup({cache: true, async: false});
$.ajax({
        url: "https://myurl.com/test",
        type: 'GET',
        dataType: 'json',
        success: function(...)
        { 
           ...
        },
        error: function(...)
        {
            ...
        }
    });

To handle this "problem" I must add some source code inside "send: function( _, callback )" adding script.onerror. I don't know which is the best sollution:

· Throwing an exception

· Calling error

· Adding a if(s.fatal) s.fatal(...) method for backwards compatibility

· ...

Change History (3)

comment:1 Changed 7 years ago by dmethvin

Owner: set to adaurell@…
Status: newpending

Sorry, we should have asked for a test case for this long ago. I realize it won't be possible to do a jsfiddle.net repro, can you put a test case on a server that we can examine? Please use http://code.jquery.com/jquery-git.js as the source of jQuery so we can test the latest version.

comment:2 Changed 7 years ago by jaubourg

Waiting for the test case but I'm not sure if browsers grant us enough access to handle the error gracefully.

comment:3 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.