IC43673: DIFFERENT BEHAVIOUR OF SETTING THE EXECUTE PRIVILEGE AFTER "MKELEM" ON WINDOWS AND UNIX

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as Permanent restriction.

Error description

  • Environment:
    - OS (name, language, version or SP)
    All interop environments
    
     - Product name (Build ID or version/patch level)
    Rational ClearCase 2003.06.12
    
    Reproducible Y/N:
    Y
    
    Description of problem:
    Different behaviour of handling the execute privilege on Windows
    and Unix views.
    
    Step to reproduce:
    This is the process of adding a file to a Unix vob from an NT
    view: The file I am adding is called wordpad.exe and it is being
    added to a vob called \tas_vob in the NT dynamic view that is
    mapped to drive I:
    
    1. From the command line, set into a NT view mapped drive
    letter. Make sure the NFS/TAS hosted vob is mounted.
    2. Cd into the vob hosted on the Unix machine running TAS.
    3. Copy an executable into the NT view. (wordpad.exe)
    4. Issue a cleartool describe -l on this view private file. It's
    777.
    5. Execute the file. It works.
    6. Issue now, a cleartool checkout on the directory, and then a
    cleartool mkelem wordpad.exe on this file.
    7. Once added to source, reissue a cleartool describe -l on the
    file. You should see its read only. It is.
    8. Again, execute the file. It should still work. (because it is
    checkedout)
    9. Finally, checkin the file by issuing cleartool ci -ident
    wordpad.exe and checkin the parent directory.
    10. Issue again a cleartool describe -l on the checkedin file.
    (you should see again, its read only)
    11. Try and execute the file. It should fail with access denied
    errors. It does.
    
    What I am expecting you to see is that the file is executable at
    all times until it is added to source code control and
    checkedin. This is true.
    
    
    I:\>cd tas_vob
    
    I:\tas_vob>dir
    Volume in drive I is CCase
    Volume Serial Number is 0234-5789
    
    Directory of I:\tas_vob
    
    07/06/00 02:48p <DIR> .
    06/29/00 09:36a <DIR> ..
    04/19/00 05:59p <DIR> lost+found
    04/20/00 01:53p 0 foo.c
    06/20/00 11:08a 23 sweeney.txt
    07/05/00 02:19p 118,208 ZZ.EXE
    11/18/99 11:04a 204,560 WORDPAD.EXE
    7 File(s) 322,791 bytes
    524,288,000 bytes free
    
    I:\tas_vob>ct desc -l WORDPAD.EXE
    View private file "WORDPAD.EXE"
    Modified: Thursday 11/18/99 10:04:00
    Protection:
    User : msweeney : rwx
    Group: user : rwx
    Other: : rwx
    
    I:\tas_vob>wordpad (this launches)
    
    I:\tas_vob>ct co .
    Checkout comments for ".":
    .
    Checked out "." from version "\main\6".
    
    I:\tas_vob>ct mkelem WORDPAD.EXE
    Creation comments for "WORDPAD.EXE":
    .
    Created element "WORDPAD.EXE" (type "compressed_file").
    Checked out "WORDPAD.EXE" from version "\main\0".
    
    I:\tas_vob>ct desc -l WORDPAD.EXE
    version "WORDPAD.EXE@@\main\CHECKEDOUT" from \main\0 (reserved)
    checked out 06-Jul-00.14:49:26 by msweeney.user@pontiac
    by view: dynamic_view ("pontiac:D:\views\dynamic_view.vws")
    Element Protection:
    User : msweeney : r--
    Group: user : r--
    Other: : r--
    element type: compressed_file
    predecessor version: \main\0
    
    I:\tas_vob>wordpad.exe (this launches again)
    
    I:\tas_vob>ct ci -ident WORDPAD.EXE
    Checkin comments for "WORDPAD.EXE":
    .
    Checked in "WORDPAD.EXE" version "\main\1".
    
    I:\tas_vob>ct ci .
    Default:
    Added file element "WORDPAD.EXE".
    Checkin comments for ".": ("." to accept default)
    .
    Checked in "." version "\main\7".
    
    I:\tas_vob>ct desc -l WORDPAD.EXE
    version "WORDPAD.EXE@@\main\1"
    created 06-Jul-00.14:49:49 by msweeney.user@pontiac
    Element Protection:
    User : msweeney : r--
    Group: user : r--
    Other: : r--
    element type: compressed_file
    predecessor version: \main\0
    
    I:\tas_vob>wordpad.exe
    Access is denied.
    
    ********************************************************
    All of the above is understood and accepted.
    ********************************************************
    Doing the same process on NT, but this time with a Unix view, I
    get the same behavior.
    
    C:\>ct lsvob
    \tas_vob \\malathion\storage_tas\tas_vob.vbs private
    \new_tasvob \\malathion\new_tas\new_tasvob.vbs private
    \tig \\malathion\export\home\bfuller\tig.vbs private
    
    C:\>ct mount \new_tasvob
    Mounting MVFS filesystem \new_tasvob.
    
    C:\>ct lsview
    new_tasvu \\malathion\new_tas\new_tasvu.vws
    mark_tas \\malathion\storage_tas\mark_tas.vws
    tas_vu \\malathion\storage_tas\tas_vu.vws
    
    C:\>ct startview new_tasvu
    
    C:\>m:
    
    M:\>cd new_tasvu
    
    M:\new_tasvu>cd new_tasvob
    
    M:\new_tasvu\new_tasvob>ls
    lost+found test.c
    
    M:\new_tasvu\new_tasvob>ct desc -long immc.exe
    View private file "immc.exe"
    Modified: Thursday 03/04/99 13:54:30
    Protection:
    User : alevenso : rwx
    Group: user : rwx
    Other: : rwx
    
    M:\new_tasvu\new_tasvob>ct co .
    Checkout comments for ".":
    .
    Checked out "." from version "\main\1".
    
    M:\new_tasvu\new_tasvob>ct mkelem -nco immc.exe
    Creation comments for "immc.exe":
    .
    Created element "immc.exe" (type "compressed_file").
    
    M:\new_tasvu\new_tasvob>ls
    immc.exe immc.exe.keep lost+found test.c
    
    M:\new_tasvu\new_tasvob>ct desc -l immc.exe
    version "immc.exe@@\main\0"
    created 12-Jul-00.12:28:39 by alevenso.user@nips
    Element Protection:
    User : alevenso : r--
    Group: user : r--
    Other: : r--
    element type: compressed_file
    
    ***********************************************
    This is fine as well...expected behavior
    ***********************************************
    
    HOWEVER: When we add the file to unix view on NT, and do the
    mkelem from the UNIX machine and check the file in, its has the
    permissions of:
    
    apgsun3:[107]%>ct desc -l Connect.exe
    version "Connect.exe@@/main/1"
    created 12-Jul-00.13:41:11 by Mark Sweeney
    (msweeney.user@apgsun3)
    Element Protection:
    User : msweeney : r-x
    Group: user : r-x
    Other: : r-x
    element type: compressed_file
    predecessor version: /main/0
    apgsun3:[108]%>ct mkelem test.exe
    Creation comments for "test.exe":
    
    This happens regardless of the NFS/SMB we use to do this. I
    tested this with TAS 5.4.1 and Hummingbird 6.2.
    
    
    Workaround:
    set execute privilege manually with the cleartool protect
    command
    

Local fix

  • set execute privilege manually, using the "cleartool protect"
    command
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: na                                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: See Error Description.
                     *
    ****************************************************************
    Difference of behavior in NT/UNIX ClearCase regarding execute bi
    ts on elements
    

Problem conclusion

  • Changing this behaviour would involve extensive work and is not
    in plan for the next 18 months.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC43673

  • Reported component name

    RATL CLEARCASE

  • Reported component ID

    5724F1400

  • Reported release

    ALL

  • Status

    CLOSED PRS

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2004-11-29

  • Closed date

    2005-11-04

  • Last modified date

    2005-11-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • na
    

Fix information

Applicable component levels



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearCase

Software version:

ALL

Reference #:

IC43673

Modified date:

2005-11-04

Translate my page

Machine Translation

Content navigation