<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>378</bug_id>
          
          <creation_ts>2003-09-05 16:41:15 +0000</creation_ts>
          <short_desc>possible local-short-circuit-connection when using string_to_object() for remote-corbaloc-URLs</short_desc>
          <delta_ts>2006-05-09 16:42:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>ORB</component>
          <version>1.4.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Brinkmann">Michael.Brinkmann</reporter>
          <assigned_to name="Gerald Brose">gerald.brose</assigned_to>
          <cc>john.seltzer</cc>
    
    <cc>mencl</cc>
    
    <cc>richard.hash</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>746</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Brinkmann">Michael.Brinkmann</who>
    <bug_when>2003-09-05 16:41:15 +0000</bug_when>
    <thetext>Given are two identical programs running on different hosts which offer a 
servant (bound to a persistent POA with &quot;IdAssignmentPolicyValue.USER_ID&quot; 
and &quot;LifespanPolicyValue.PERSISTENT&quot;) and which connect to the peer servant on 
the foreign host. 

The sequence for binding the servant is like this:
      persistentPoa.activate_object_with_id(ServantName.getBytes(), servant);
      (before, &quot;jacorb.implname&quot; has been set to &quot;OB&quot; and the POAs name 
      is set to &quot;POA&quot;)

The sequence for getting the remote object-reference is
          String objName = &quot;corbaloc:iiop:&quot;+hostName+&quot;:&quot;+hostIpPort+
                            &quot;/OB/POA/&quot;+ServantName;
          org.omg.CORBA.Object obj = orb.string_to_object(objName);          
          remotePeer = MyServantHelper.narrow(obj);

The error is, that the &quot;remotePeer&quot;-object is in fact the local servant!
The ORB does not even try to connect to the remote host, even when servant-
functions get called.

A workaround is to rename e.g. &quot;OB&quot; to &quot;OB_&lt;host-name&gt;&quot; so that the object&apos;s
name is even more different as it was.

The error applies to JacORB 2.0 beta1, too and can be reproduced on SUN Solaris 
8, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757</commentid>
    <comment_count>1</comment_count>
    <who name="Alphonse Bendt">bendt</who>
    <bug_when>2006-05-09 16:36:26 +0000</bug_when>
    <thetext>*** Bug 425 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759</commentid>
    <comment_count>2</comment_count>
    <who name="Alphonse Bendt">bendt</who>
    <bug_when>2006-05-09 16:36:44 +0000</bug_when>
    <thetext>*** Bug 473 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760</commentid>
    <comment_count>3</comment_count>
    <who name="Alphonse Bendt">bendt</who>
    <bug_when>2006-05-09 16:40:35 +0000</bug_when>
    <thetext>applied patch from prismtech

modified files:
src/org/jacorb/poa/POA.java 
test/regression/src/org/jacorb/test/poa/ImplNameTest.java
test/regression/src/org/jacorb/test/poa/AllTest.java 
doc/ProgrammingGuide/Configuration/configuration.tex
etc/jacorb_properties.template </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1762</commentid>
    <comment_count>4</comment_count>
    <who name="Alphonse Bendt">bendt</who>
    <bug_when>2006-05-09 16:42:34 +0000</bug_when>
    <thetext>*** Bug 503 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>