<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>7093</bug_id>
          
          <creation_ts>2010-08-19 13:44</creation_ts>
          <short_desc>globus_gsi_proxy_handle_set_is_limited doesn&apos;t handle rfc proxies</short_desc>
          <delta_ts>2010-08-20 14:10:41</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>GSI C</product>
          <component>Credentials and Proxies</component>
          <version>5.0.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jaime Frey">jfrey@cs.wisc.edu</reporter>
          <assigned_to name="Joe Bester">bester@mcs.anl.gov</assigned_to>
          <cc>kettimut@mcs.anl.gov</cc>
    
    <cc>mlink@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="Jaime Frey">jfrey@cs.wisc.edu</who>
            <bug_when>2010-08-19 13:44:04</bug_when>
            <thetext>The function globus_gsi_proxy_handle_set_is_limited() doesn&apos;t handle rfc proxies properly. If you try to use it when creating an rfc proxy from an existing rfc proxy, it sets the new proxy type to a legacy proxy. A subsequent call to globus_gsi_proxy_sign_req() will fail because the new proxy&apos;s type doesn&apos;t match the source proxy&apos;s type. I will a patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jaime Frey">jfrey@cs.wisc.edu</who>
            <bug_when>2010-08-19 13:44:53</bug_when>
            <thetext>--- gt5.0.1-all-source-installer/source-trees/gsi/proxy/proxy_core/source/library/globus_gsi_proxy_handle.c     2008-09-15 10:06:26.000000000 -0500
+++ gt5.0.1-all-source-installer.patched/source-trees/gsi/proxy/proxy_core/source/library/globus_gsi_proxy_handle.c     2010-08-19 12:06:24.000000000 -0500
@@ -1809,7 +1809,13 @@
 
     if(is_limited == GLOBUS_TRUE)
     {
-        if(GLOBUS_GSI_CERT_UTILS_IS_GSI_3_PROXY(handle-&gt;type))
+        if(GLOBUS_GSI_CERT_UTILS_IS_RFC_PROXY(handle-&gt;type))
+        {
+            result = globus_gsi_proxy_handle_set_type(
+                handle,
+                GLOBUS_GSI_CERT_UTILS_TYPE_RFC_LIMITED_PROXY);
+        }
+        else if(GLOBUS_GSI_CERT_UTILS_IS_GSI_3_PROXY(handle-&gt;type))
         {
             result = globus_gsi_proxy_handle_set_type(
                 handle,
@@ -1824,7 +1830,13 @@
     }
     else
     {
-        if(GLOBUS_GSI_CERT_UTILS_IS_GSI_3_PROXY(handle-&gt;type))
+        if(GLOBUS_GSI_CERT_UTILS_IS_RFC_PROXY(handle-&gt;type))
+        {
+            result = globus_gsi_proxy_handle_set_type(
+                handle,
+                GLOBUS_GSI_CERT_UTILS_TYPE_RFC_IMPERSONATION_PROXY);
+        }
+        else if(GLOBUS_GSI_CERT_UTILS_IS_GSI_3_PROXY(handle-&gt;type))
         {
             result = globus_gsi_proxy_handle_set_type(
                 handle,</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Mike Link">mlink@mcs.anl.gov</who>
            <bug_when>2010-08-20 14:10:41</bug_when>
            <thetext>Thanks Jamie.  This is committed to globus_5_0_branch and HEAD.  An update package for 5.0.x is available here until it gets moved to the update dir: http://www.mcs.anl.gov/~mlink/globus_gsi_proxy_core-4.6.tar.gz

Mike</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>