[ECT Server for Rally] Length cannot be less than zero (fix)

[ECT Server for Rally] Length cannot be less than zero (fix)

  
Forge Component
(7)
Published on 2015-06-09 by João Pedro Abreu
7 votes
Published on 2015-06-09 by João Pedro Abreu

Since a few days our ECT Rally integration broke. 

After debugging we found out that it breaks on a new set-cookie header which is most likely been added recently to the rally webservice due to extra security measures.

We fixed it by changing CreateDefect logic.

We added the following code to the IF (see screenshot)

SyntaxEditor Code Snippet

Index(ConnectToRallyServices.TokenHeaders.Current.HTTPHeader.Value,"GMT; path=", ignoreCase: True )=-1 and
Index(ConnectToRallyServices.TokenHeaders.Current.HTTPHeader.Value,"GMT;Secure;HttpOnly", ignoreCase: True )=-1


The second index was added to remove the new cookie from the header that is used in the HTTPost (ardohttp).