The detail defect content of DE280513. 00692205 DE280513 Web agent crashes when the machines use IPV6 addresses

Document ID : KB000015558
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

The detail defect content of 12.52 SP1 CR07 release note.

00692205 DE280513 Web agent crashes when the machines use IPV6 addresses

https://docops.ca.com/display/sm1252sp1J/Defects+Fixed+in+12.52+SP1+CR07

 

 

Answer:

The defect is caused when using Ipv6 address and accessing to WebAgent Server.

There is possibility of a crash when client requests HOST header contain IPv6 address.

 

Reproduce sequence is as below:

***********************************

If you set the hosts file on your browser PC as 

 

10.131.xxx.xxx cafeed

 

Then reaching the request : 

http://cafeed/test/index.html 

Then the error.log shows the lines : 

terminate called after throwing an instance of 'std::out_of_range' 

what(): basic_string::at 

[Fri Feb 24 15:35:31 2017] [notice] child pid 11974 exit signal Aborted (6)   

***********************************

As above, there was a bug in the code that when we were trying to append the port when there is an ipv6 address as the hostname.