Cannot upload/encrypt and download/decrypt an attachment via REST through the Edge Encryption proxy.
Steps to Reproduce
Log in as administrator in a pre-Kingston instance.
Activate the Edge Encryption plugin.
Set up a proxy pointing to the instance.
On the Service Portal, open a session using the Edge Encryption proxy.
Note that you can add attachments. Also, the generated [sys_attachment] records are not encrypted, and can be accessed in a session not using the Edge Encryption proxy.
Create an Incident record invoking a preprogrammed REST API (JS or C#NET) with a POST action and JSON format towards the Incident table.
Note that the call is unsuccessful and throws a Gateway Timeout error. The REST API call with the GET action to the Incident table might be successful and return records.
The workaround on pre-Kingston instances is to use POST requests to sys_attachment.do for REST attachments.
Headers needed: Content-Type and Authorization
Cookies needed: glide_user, glide_user_session, jsessionid
For example, your Cookie section should look like this example:
glide_user=<yourGlideUser>; glide_user_route=<yourGlideUserRoute>; JSESSIONID=<yourJsessionID>;
Content of the POST
The content of the POST should be in the format:
Related Problem: PRB1164901