10.3 Rest header is not same as 10.2.3

Document ID : KB000113608
Last Modified Date : 12/09/2018
Show Technical Document Details
Issue:
We use Spectrum RestFul API for automation scripts for our customer onboarding and automated discovery. We have recently upgraded to 10.3 and are seeing a discrepancy on the return of rest queries 

example: http://rcnspcml097:80/spectrum/restful/landscapes 

with 10.2.3 the first key in the header response was Server with a value of Apache-Coyote/1.1. This same header does not exist in the same call for 10.3 

In addition in 10.2.3 :
HTTPResponseStatusLine = “HTTP/1.1 200 OK” 
HTTPResponseReasonPhrase = “OK” 

In 10.3 :
HTTPResponseStatusLine= “HTTP/1.1 200” 
HTTPResponseReasonPhrase = “” 

This causes our automated scripts to fail parsing and we are unable to onboard customers or run auto discoveries.
Environment:
Spectrum 10.3
Cause:
Spectrum 10.3 included an upgrade to Tomcat 9. As per the reported issues in Tomcat, Tomcat stopped sending "Reason Phrase" from tomcat 8.5 version onwards.
Resolution:
Recommend to edit your scripts to accommodate the new format from Tomcat 9.