IBM Support

PM76014: [wi 75464]'Unexpected error' when submitting asset where attribute in incorrect format.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When user has entered incorrect input into a field when
    submitting an asset RAM should catch this but instead allows the
    submission to continue.  This results in an 'Unexpected error'
    message being displayed in the web client.
    
    RAM should catch this condition and provide a more useful error
    message to the user.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When user has entered incorrect input into a field when
    submitting an asset RAM should catch this but instead allows
    the submission to continue. This results in an "Unexpected
    error" message being displayed in the web client.
    
    I am able to reproduce this problem in RAM 7.5.1.1 sandbox
    
    - Create an asset attribute of type Number
    - Submit an asset which uses this attribute
    - Instead of entering a number enter text instead.
    - Save the asset
    - Get the "Unexpected error"
    
    Reproduction steps on CDT environment of iRAM
    
    1) Login to ... Test server
    
    
    2) Click on Submit button.
    3) In Submit an asset form, fill in all the mandatory
    information. You?
    can choose community as "A321890_Test Community$#". All
    signed in users?
    are Asset Producer for this community. Choose any asset type
    also.
    4) Also give the value of "Creation Time" which is a custom
    attribute?
    as any non-numeric value (e.g. abc).
    5) Click on the "Submit as Draft" button.
    
    You will get the unexpected error.
    Specific details regarding this error have been recorded in
    the ramDebug.log file with the following ID:
    B08842D1-DB83-A0BB-18DF-6F0D26A49A81
    
    I have uploaded supportToday_2012_10_26.zip and
    \c01z0066\cdt_ram_cl_c01z0066\ramDebugRAM1WebApplication.log
    contains the ID above.
    

Problem conclusion

  • We should use Double.parseDouble(value) and if a
    NumberFormatException is thrown, add an error to the
    FacesContext.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM76014

  • Reported component name

    RATL ASSET MGR

  • Reported component ID

    5724R4200

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-26

  • Closed date

    2013-08-13

  • Last modified date

    2013-08-13

  • 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

    RATL ASSET MGR

  • Fixed component ID

    5724R4200

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSUS84","label":"Rational Asset Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021