IBM Support

PM42563: cleartool -diff pass thru option '-blank_ignore' may not report the differences correctly under certain conditions

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • cleartool -diff pass thru option '-blank_ignore' may not report
    the differences correctly under certain conditions
    
    
    ClearCase 7.1.2.2
    
    
    Multiple UNIX OSes
    
    
    To Reproduce:
    
    1)  Make a new VOB and View
    
    
    2)  Make the following elements:
    
    $ cat cleartest_1
    ab
    
    
    $ cat cleartest_2
    a b
    
       NOTE:  The above is:  'a b'
           Meaning, there is one space within ?a b?'
    
    
    $ cat cleartest_3
    ab
    
    
    $ cat cleartest_4
       ab
    
       NOTE:  The above is:  '   ab   '
           Meaning, there are three spaces in front and three spaces
    behind the 'ab'
    
    
    $ cat cleartest_5
       a    b
    
       NOTE:  The above is:  '   a    b   '
           Meaning, there are three spaces in front and three spaces
    behind, including four spaces in the middle
    
    
    3)  Issue the following ?cleartool diff? commands:
    
    
    $ cleartool diff cleartest_1 cleartest_3
    Files are identical
    $ echo $?
    0
    
    
    $ cleartool diff cleartest_1 cleartest_2
    ********************************
    ??? file 1: cleartest_1
    ??? file 2: cleartest_2
    ********************************
    -------------[changed 1]---------------|-------------[changed to
    1]------------
    ab                                     | a b
                                          -|-
    $ echo $?
    1
    
    
    $ cleartool diff -options -b cleartest_1 cleartest_4
    Files are identical
    $ echo $?
    0
    
    
    $ cleartool diff -options -b cleartest_2 cleartest_5
    Files are identical
    $ echo $?
    0
    
    
    So, the problem is here:
    $ cleartool diff -options -b cleartest_1 cleartest_2
    ********************************
    ??? file 1: cleartest_1
    ??? file 2: cleartest_2
    ********************************
    bash-3.00$ echo $?
    1
    
    
    As you can see above, the differences were not printed.
    
    Workaround:  None
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    cleartool -diff pass thru option "-blank_ignore" may not
    report the differences correctly under certain conditions
    

Problem conclusion

  • A fix is available in ClearCase versions 7.1.1.8, 7.1.2.5
    and 8.0.0.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM42563

  • Reported component name

    CLEARCASE UNIX

  • Reported component ID

    5724G2901

  • Reported release

    701

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-28

  • Closed date

    2011-12-16

  • Last modified date

    2011-12-16

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

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

Fix information

  • Fixed component name

    CLEARCASE UNIX

  • Fixed component ID

    5724G2901

Applicable component levels

  • R701 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.1","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
16 December 2011