Skip to content

properly handle exception on ServletContext.getClassLoader()#1576

Merged
SylvainJuge merged 4 commits intoelastic:masterfrom
SylvainJuge:fix-servlet-unsupportedoperation
Dec 22, 2020
Merged

properly handle exception on ServletContext.getClassLoader()#1576
SylvainJuge merged 4 commits intoelastic:masterfrom
SylvainJuge:fix-servlet-unsupportedoperation

Conversation

@SylvainJuge
Copy link
Member

@SylvainJuge SylvainJuge commented Dec 17, 2020

What does this PR do?

The fix applied in #1464 did not covered all cases, this change makes sure that all calls to ServletContext#getClassLoader() are properly wrapped in a try/catch to avoid potential UnsupportedOperationException.

Checklist

  • This is a bugfix
@SylvainJuge SylvainJuge self-assigned this Dec 17, 2020
@ghost
Copy link

ghost commented Dec 17, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Started by user sylvainjuge

  • Start Time: 2020-12-22T12:43:43.604+0000

  • Duration: 42 min 14 sec

Test stats 🧪

Test Results
Failed 0
Passed 1633
Skipped 12
Total 1645

@SylvainJuge
Copy link
Member Author

Test snapshot can be downloaded with the following link.

@SylvainJuge
Copy link
Member Author

Update: validated with user that the fix in this PR solves their issue.

@SylvainJuge SylvainJuge merged commit 812d1d9 into elastic:master Dec 22, 2020
@SylvainJuge SylvainJuge deleted the fix-servlet-unsupportedoperation branch December 22, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants