SSLException: Received fatal alert: record_overflow

0
Hi to all, I have a strange behavior when uploading a file to JIRA over API. With some random .rtf file, I am able to upload it but as soon as I use another file type it drops  the following error:   ErrorType: javax.net.ssl.SSLException Message: Received fatal alert: record_overflow Stacktrace: Error calling REST service at MyFirstModule.ACT_Upload_SendToJIRA (CallRest : 'Call REST (POST)') Advanced stacktrace: at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: java.security.PrivilegedActionException: javax.net.ssl.SSLException: Received fatal alert: record_overflow at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: null at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: Received fatal alert: record_overflow at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) If I try the same files with Postman, it uploads the files. Clearly the issue is somewhere within Mendix, but I am not able to locate it.   Kind regards, Dalibor
asked
1 answers
0

Hi,

 

.rtf is different from the others because it is using ANSI character set (by default). The interface is choking on the special characters in the other file types. I didn't look at the API definition, but 99 out of 100 will support Base64Encode.

 

Use https://marketplace.mendix.com/link/component/170 and documentation https://docs.mendix.com/appstore/modules/community-commons-function-library/ to import that functionality. Use 

  • Base64EncodeFile – This converts an un-encoded file to a base 64-encoded string.

 

and throw the output of that function to the API.

 

Go Make IT

 

answered