Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Edge Encryption proxy does not support encryption of attachments uploaded through REST API - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Edge Encryption proxy does not support encryption of attachments uploaded through REST API
KB0656352

Edge Encryption proxy does not support encryption of attachments uploaded through REST API


1713 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Cannot upload/encrypt and download/decrypt an attachment via REST through the Edge Encryption proxy.

 

Steps to Reproduce

  1. Log in as administrator in a pre-Kingston instance.

  2. Activate the Edge Encryption plugin.

  3. Set up a proxy pointing to the instance.

  4. 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.

  5. 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.

 
 

Workaround

Attachment encryption via REST API is only supported since Kingston.
 

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:

Content-Type: multipart/form-data; boundary=---------------------------12296202189918688451571609901
Content-Length: 56332
 
-----------------------------12296202189918688451571609901
Content-Disposition: form-data; name="sysparm_ck"
 
6129f3b2dbe5720057675404ce96199e82ac2a0497f83ca7c5307f72566b4004e4771c62
-----------------------------12296202189918688451571609901
Content-Disposition: form-data; name="sysparm_sys_id"
 
85071a1347c12200e0ef563dbb9a71c1
-----------------------------12296202189918688451571609901
Content-Disposition: form-data; name="sysparm_table"
 
incident
-----------------------------12296202189918688451571609901
Content-Disposition: form-data; name="attachFile"; filename="myFile.txt"
Content-Type: text/xml
 
<fileContent>
 
-----------------------------12296202189918688451571609901--

 


Related Problem: PRB1164901

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.