000034833 - Images in RSA Archer Notifications are missing or broken: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

Document created by RSA Customer Support Employee on Mar 4, 2017Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000034833
Applies ToRSA Product Set: Archer
RSA Version/Condition: All
Platform: Windows
 
IssueIssues:
  • Images do not appear in the notification.  
  • Error message from logs: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF.
  • From IIS Manager, confirmed the company_files, API, and WS are set to Anonymous Authentication.  The Archer Service account has full access to company_files location. 
The following sample exception is from the Archer JobFramework logs.

<ApplicationData>
  <TraceData>
    <DataItem>
      <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
        <TraceIdentifier>ArcherTech.Notifications</TraceIdentifier>
        <Description>Error loading the bytes for an embedded image in the email generated for notification template 'Sample notification' with id = '240'.</Description>
        <AppDomain>ArcherTech.JobFramework.Job.exe</AppDomain>
        <Exception>
          <ExceptionType>ArcherTech.Common.Exceptions.ImageLoadingNotificationException, ArcherTech.Common, Version=5.5.40200.1016, Culture=neutral, PublicKeyToken=null</ExceptionType>
          <Message>Error loading the bytes for an embedded image in the email generated for notification template 'Sample notification' with id = '240'.</Message>
          <Source />
          <ContextData>
            <Resolution>Please verify that you have access to the location where the image is stored. For further support, please contact your system administrator.</Resolution>
            <ImageName>Samplefile.PNG</ImageName>
            <ImagePath>https://servername/company_files/50000/icons/Samplefile.PNG</ImagePath>
          </ContextData>

          <StackTrace />
          <InnerException>
            <ExceptionType>System.Net.WebException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
            <Message>The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF</Message>
            <Source>System</Source>
            <StackTrace>
                  at System.Net.HttpWebRequest.GetResponse()
                  at ArcherTech.Notifications.ExtensionMethods.EmailMessageExtensionMethods.GetImage(SessionContext sessionContext, KeyValuePair`2 imageName, Notification notification)
            </StackTrace>
          </InnerException>
        </Exception>
      </TraceRecord>
    </DataItem>
  </TraceData>
</ApplicationData>

CauseA HTTP Response Header Name contains a space making it invalid.
Resolution
  1. Open IIS Manager and select the Archer web site
  2. In middle pane, open HTTP Response Headers
  3. Verify all the Response Headers are set up correctly. If any contain a space or new line, fix it.
  4. Or remove any unwanted Response Headers to fix the issue

Attachments

    Outcomes