Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RESTEASY-1190] Wrap JSONP response in try-catch block #640

Merged
merged 8 commits into from Sep 7, 2015

Conversation

bedrin
Copy link
Contributor

@bedrin bedrin commented Apr 11, 2015

I suggest wrapping the JSONP callback in a try-catch block.
It will prevent some browsers like MSIE to shown an error window when the specified callback function doesn't exist

@ronsigal
Copy link
Collaborator

Hi bedrin,

It looks OK, and the Resteasy testsuite passes.

Could you create a JIRA issue at https://jira.jboss.org/browse/RESTEASY? And correct the one misspelling?

Thanks,
Ron

@bedrin
Copy link
Contributor Author

bedrin commented Jun 30, 2015

I have fixed the misprint

@bedrin
Copy link
Contributor Author

bedrin commented Jun 30, 2015

Created RESTEASY-1190

@bedrin bedrin changed the title Wrap JSONP response in try-catch block [RESTEASY-1190] Wrap JSONP response in try-catch block Jun 30, 2015
@ronsigal
Copy link
Collaborator

Ok, thanks.

@ronsigal
Copy link
Collaborator

ronsigal commented Jul 7, 2015

This PR looks good to merge.

liweinan added a commit that referenced this pull request Sep 7, 2015
[RESTEASY-1190] Wrap JSONP response in try-catch block
@liweinan liweinan merged commit 253963f into resteasy:master Sep 7, 2015
@bedrin bedrin deleted the jsonp-try-catch branch March 10, 2016 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants