Title: Fix for java.nio.charset.IllegalCharsetNameException: utf-8" by anushibinj · Pull Request #6 · apache/axis-axis1-java · GitHub
Open Graph Title: Fix for java.nio.charset.IllegalCharsetNameException: utf-8" by anushibinj · Pull Request #6 · apache/axis-axis1-java
X Title: Fix for java.nio.charset.IllegalCharsetNameException: utf-8" by anushibinj · Pull Request #6 · apache/axis-axis1-java
Description: In Weblogic 14c, when executing an MTOM SOAP Request, we are faced with the following exception:
Error 500--Internal Server Error
This appears to be happening due to this line in org.apache.axis.attachments.MimeUtils:
multipart = new javax.mail.internet.MimeMultipart(
"related;type=\"application/xop+xml\"; start=\"<" + rootCID + ">\"; start-info=\"text/xml; charset=utf-8\"");
You can see that both start-info and charset are combined into a single header. The fix is to split the start-info and charset attributes to separate headers like this:
multipart = new javax.mail.internet.MimeMultipart(
"related;type=\"application/xop+xml\"; start=\"<" + rootCID + ">\"; start-info=\"text/xml\"; charset=\"utf-8\"");
After the code change, the issue is not reproducible.
java.nio.charset.IllegalCharsetNameException: utf-8"
at java.nio.charset.Charset.checkName(Charset.java:315)
at java.nio.charset.Charset.lookup2(Charset.java:484)
at java.nio.charset.Charset.lookup(Charset.java:464)
at java.nio.charset.Charset.isSupported(Charset.java:505)
at weblogic.servlet.internal.ChunkOutput.getCharset(ChunkOutput.java:249)
at weblogic.servlet.internal.ChunkOutput.create(ChunkOutput.java:201)
at weblogic.servlet.internal.ChunkOutputWrapper.changeToCharset(ChunkOutputWrapper.java:73)
at weblogic.servlet.internal.ServletResponseImpl.setEncoding(ServletResponseImpl.java:1329)
at weblogic.servlet.internal.ServletResponseImpl.setContentType(ServletResponseImpl.java:521)
at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:872)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:762)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:295)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:353)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:250)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3862)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3829)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:344)
at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
at weblogic.servlet.internal.WebAppServletContext.processSecuredExecute(WebAppServletContext.java:2502)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2351)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2326)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2304)
at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1779)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1733)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:651)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
Open Graph Description: In Weblogic 14c, when executing an MTOM SOAP Request, we are faced with the following exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML> <HEAD> &l...
X Description: In Weblogic 14c, when executing an MTOM SOAP Request, we are faced with the following exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML...
Opengraph URL: https://github.com/apache/axis-axis1-java/pull/6
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:58bc6749-eaf6-47f0-ac89-07ffb9aa4512 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA0C:1A7F34:4B3523:6A1C6E:6AF71B3A |
| html-safe-nonce | 65d23ef42d5cb374c062a254a7fb95c8865e90a0ebc61507291213bf2c2274a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTBDOjFBN0YzNDo0QjM1MjM6NkExQzZFOjZBRjcxQjNBIiwidmlzaXRvcl9pZCI6IjYwOTYxMDk4MTI0NTE4NDI4NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3553f89496420a3b563b42cbd5a2031f140db505cd30597f3c8e2c45190ac2d9 |
| hovercard-subject-tag | pull_request:1451673436 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/apache/axis-axis1-java/pull/6/files |
| twitter:image | https://avatars.githubusercontent.com/u/22093731?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/22093731?s=400&v=4 |
| og:image:alt | In Weblogic 14c, when executing an MTOM SOAP Request, we are faced with the following exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML> <HEAD> &l... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24029fae934b29fd2bf68c26391ed86bbe5d97a3eab6831409e0b6f4058303c6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/apache/axis-axis1-java git https://github.com/apache/axis-axis1-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 248645912 |
| octolytics-dimension-repository_nwo | apache/axis-axis1-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 248645912 |
| octolytics-dimension-repository_network_root_nwo | apache/axis-axis1-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 437496c6e2e8dce07e08e315aa63df12d8d328ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width