3 Replies Latest reply on Aug 9, 2018 6:28 PM by Laurent Matheo

    Notice - record attachment REST resource response header change

    Dave Sulcer
      Share This:

      This is a heads-up to Innovation Suite developers who may be using the record attachment service via REST.  If you have not written code to GET any of the following resources:

       

      /api/rx/application/record/attachment/{recordDefinitionName}/{recordInstanceId}

      /api/rx/application/process/processinstance/attachment/{processDefinitionName}/{processInstanceId}/{paramterId}

      /api/rx/application/record/recordinstance/export

       

      then you do not need to take any action and may safely ignore this post.

       

      If you have written such code, then you should check to see if you are making use of the response header File Name.  If so, please modify your code to get the filename information from the response header Content-Disposition instead, as is documented here:  Content-Disposition - HTTP | MDN .

       

      Currently, the attachment service redundantly returns the filename in both places. In the next release of Innovation Suite, it will only be returned in Content-Disposition. This change is being made to make our traffic compliant with the HTTP protocol specification.

       

      Thank you and we apologize for any inconvenience.

       

      Dave Sulcer

      BMC Software, Inc.