IBM Support

PK82349: DXL PERM 'GETBOUNDEDATTR' DOES NOT CORRECTLY RETURN THE NUMBER OF REQUESTED BYTES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • TLOG#49370
    Prior to DOORS version 8.2 the DXL perm 'getBoundedAttr'
    returned the entire attribute value.
    now it correctly returns just the number of requested bytes but
    it only seems to work for 'text' type attributes For all other
    attribute types it returns the entire obj-attr value.
    
    You can demonstrate it as follows:
    open any module edit
    Create some object 'text' attribute.
    Select some object and give the new text attribute some string,
    around 10 characters.
    For that same object, give it some Object Text and Heading.
    and perhaps set some other attributes for that object.
    
    Run the DXL below 'getBoundedAttr_Trouble.dxl'.
    Copy the printed results to Notepad,
    look carefully at the results.
    It loops through all attributes for the object printing its raw
    value(truncated to 20) and also its getBoundedAttr value (also
    truncated).
    The results show only text type attributes bounded;
    all other attr types return the full (raw) value.
    
    
    
    
    
    
    
    // ** BEGIN getBoundedAttr_Trouble.dxl **
    Object oCurr = current
    Module mCurr = current
    string NameAttr, NameType, ValueRawVal, ValueBound
    int NumBytes = 3
    AttrDef ad
    print 'NumBytes = #' NumBytes '\t?' (identifier(oCurr)) '?\n'
    noError()
    for NameAttr in mCurr do
    { ad = find(mCurr, NameAttr)
    if (ad.hidden) continue
    ValueRawVal = oCurr.NameAttr
    ValueBound = getBoundedAttr(oCurr.NameAttr, NumBytes)
    NameType = ad.typeName
    print '?' NameType '?\t' NameAttr '\n'
    print '\t\t\tRawVal: ' (length(ValueRawVal)) '\t?'
    ValueRawVal?0:20?
    '?\n'
    print '\t\t\tBound: ' (length(ValueBound)) '\t?' ValueBound
    ?0:20?
    '?\n'
    }
    lastError()
    // ** END getBoundedAttr_Trouble.dxl **
    

Local fix

  • No known workaround
    

Problem summary

  • we should expect getBoundedAttr to retrieve only the set number
    of bytes from every attribute,
    but it only does so for 'text' attributes; for all other attr
    types it returns the full (raw) value.
    

Problem conclusion

  • fixed in DOORS 9.2.0.1.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK82349

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-03-11

  • Closed date

    2010-02-18

  • Last modified date

    2010-02-18

  • 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

  • R920 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYQBZ","label":"Rational DOORS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.1","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
24 October 2021