Bug 2272

Summary: Wrong SSLIOP tag in IMRified server
Product: TAO Reporter: ciju john <john_c>
Component: SSLIOP Pluggable ProtocolAssignee: ciju john <john_c>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 1.4.6   
Hardware: x86   
OS: Linux   

Description ciju john 2005-10-19 10:02:27 CDT
Although only confirmed on linux and solaris, this problem should be prevalant
on all platforms across all compilers. This bubbles up when using a TAO server,
TAO Imr, Java client running in an SSLIOP environment. Contact me at
john_c@ociweb.com for a tarred test app demonstrating this.

The problem stems from the line

const ACE_UINT32 TAG_SSL_ENDPOINTS = 0x54414f01U;

in SSLIOP_Endpoint.h. I didn't find this in the spec and only know that 
Ossamma added this sometime last year. When an SSLIOP TAO server creates 
an IOR the SSLIOP::profile creates a tagged component with the correct tag:

const IOP::ComponentId        TAG_SSL_SEC_TRANS = 20;

Somehow when the server is creating an IMrified IOR, it uses 
'TAG_SSL_ENDPOINTS' as the tagged componant ID. This as expected 
confuses the JacORB client which declares the server as being 
non-secure. A dirty work-around to this problem is replacing:

const ACE_UINT32 TAG_SSL_ENDPOINTS = 0x54414f01U;

with
const ACE_UINT32 TAG_SSL_ENDPOINTS = ::SSLIOP::TAG_SSL_SEC_TRANS;

in the SSLIOP_Endpoint.h. I haven't dug this much and hopefully will find time
soon to get back to this. If anyone wants to pin this down, I will be happy to
mail my test.

Ciju
Comment 1 Johnny Willemsen 2005-10-27 04:39:54 CDT
Can you put the test with run_test.pl in cvs so that the problem is visible?
Comment 2 Ossama Othman 2006-01-12 12:24:31 CST
Mine.
Comment 3 Johnny Willemsen 2007-02-22 05:13:40 CST
John, can you put the regression in svn?
Comment 4 Chad Elliott 2007-04-03 07:00:19 CDT
Ciju,

Can you put your code into the DOC repo?  If the bug has been fixed, please
update this report.

Thanks,
Chad