<?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>5146</bug_id>
          
          <creation_ts>2007-03-23 11:18</creation_ts>
          <short_desc>RFT Postgres schema issues</short_desc>
          <delta_ts>2007-03-23 17:04:11</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>RFT</product>
          <component>RFT</component>
          <version>4.0.3</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Jini Ramprakash">jini@univa.com</reporter>
          <assigned_to name="Ravi Madduri">madduri@mcs.anl.gov</assigned_to>
          <cc>jini@univa.com</cc>
    
    <cc>rft-dev@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Jini Ramprakash">jini@univa.com</who>
            <bug_when>2007-03-23 11:18:30</bug_when>
            <thetext>While trying to transfer files using rft with GT4.0.3, I encounter the following error with the &apos;rft&apos; command line client

[jini@***** ~]$ rft -h *****.ps.univa.com -f /tmp/transfer.xfr
Number of transfers in this request: 1
Subscribed for overall status
Termination time to set: 60 minutes

 Overall status of transfer:
Finished/Active/Failed/Retrying/Pending
0/1/0/0/0
Error:Error updating permissions of a file:
 /etc/group [Caused by: RFT database update error [Caused by: ERROR: column &quot;permissions&quot; is of type integer but expression is of type character varying]]

 Overall status of transfer:
Finished/Active/Failed/Retrying/Pending
0/0/1/0/0
Error:Error updating permissions of a file:
 /etc/group [Caused by: RFT database update error [Caused by: ERROR: column &quot;permissions&quot; is of type integer but expression is of type character varying]]
All Transfers failed !

Contents of /tmp/transfer.xfr are:
[jini@***** ~]$ cat /tmp/transfer.xfr
true
16000
16000
false
1
true
1
null
null
false
10
gsiftp://*****.ps.univa.com:2811/etc/group
gsiftp://********.univa.com:2811/tmp/rftTest_Done.tmp

[globus@***** ~]$ postgres --version
postgres (PostgreSQL) 8.0.8

Also, if I change the field &quot;permissions&quot; that is the error above, to a &apos;text&apos; field rather than an &apos;int&apos; field, the rft transfer works fine after dropping the existing database, creating it again and using the new schema file.

[globus@***** ~]$ diff /usr/local/globus-4.0.3/share/globus_wsrf_rft/rft_schema.sql /usr/local/globus-4.0.3/share/globus_wsrf_rft/rft_schema_modified.sql
63c63
&lt;     permissions         int,
---
&gt;     permissions         text,

[jini@***** ~]$ rft -h *****.ps.univa.com -f /tmp/transfer.xfr
Number of transfers in this request: 1
Subscribed for overall status
Termination time to set: 60 minutes

 Overall status of transfer:
Finished/Active/Failed/Retrying/Pending
0/1/0/0/0

 Overall status of transfer:
Finished/Active/Failed/Retrying/Pending
1/0/0/0/0
All Transfers are completed

[jini@******** ~]$ ll /tmp/rftTest_Done.tmp
-rw-r--r--  1 jini jini 779 Mar 23 11:12 /tmp/rftTest_Done.tmp

We have noted the same behaviour in postgres version 8.1.4, 8.1.8 and I have also seen this behaviour in postgres version 7.4.16</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2007-03-23 17:04:11</bug_when>
            <thetext>Fix is committed to release branch. Thanks for the contrib.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>