IBM Support

PM63573: DXL perms for finding and replacing in RTF don't handle upper ASCII characters

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • DXL perms for finding and replacing in RTF don't handle upper
    ascii chaaracters. Finding using findRichText() simply fails,
    replacing using replaceRichText().
    
    To recreate:
    
     - using a module containing upper ascii characters, run code
    such as the following:
     - notice that if the current object contains an umlaut the
    results are bad RTF
    
    '
    Object curObj = current
    
    string objRTFString = richTextWithOle(curObj.'Object Text');
    
    
    
    
    string TL_TAG_SHORT_DESCRIPTION = 'Short Description:'
    string TL_TAG_SHORT_TITLE = 'Title:'
    
    int offset, len, offset2, len2
    
    string strObjShortDescrRTF
    
    if (!findRichText(objRTFString, TL_TAG_SHORT_TITLE, offset, len,
    false))
    {
    
    
    
     print 'Error 1 !!!\n'
    }
    
    if (!findRichText(objRTFString, TL_TAG_SHORT_DESCRIPTION,
    offset2, len2,
    
    false))
    {
    
    
    
     print 'Error 2 !!!\n'
    }
    
    string new = replaceRichText (objRTFString, offset,
    (offset2-offset+len2), '')
    print new '\n'
    
    Object targ = object 25
    targ.'Object Text' = richText new
    '
    
    Replace one of the search strings with an umlaut to test the
    findRichText behaviour.
    

Local fix

Problem summary

  • The find and replace functions do not behave in the expected way
     when dealing with complex RTF.
    

Problem conclusion

  • The search and replace functions on RTF text only work on very
    simple RTF,  the kind loaded from DOORS objects confuses the
    routine and does not work properly.
    

Temporary fix

  • There is no workaround for this issue
    

Comments

  • This happens in versions of DOORS prior to DOORS 9.5.1.2. This i
    s a client side fix.
    

APAR Information

  • APAR number

    PM63573

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    920

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-30

  • Closed date

    2013-11-07

  • Last modified date

    2013-11-07

  • 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

    TLOGIC DOORS

  • Fixed component ID

    5724V61DR

Applicable component levels

  • R951 PSY

       UP



Document information

More support for: Rational DOORS

Software version: 9.2

Reference #: PM63573

Modified date: 07 November 2013