IBM Support

JR46734: VALIDATION ERROR ON VALID CODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • Reproduction steps :
    
    1) Create a User task in BPD
    2) Create a server script inside of user task
    3) Create a variable called "str1" of string type
    3) Copy following code in implementation
    tw.local.str1 = tw.local.str1.replace(/'/g, "''");
    
    You will notice validation error
    

Local fix

Problem summary

  • When using the javascript editor writing an in-line regular
    expression, which has a single quote, a validation error will be
    displayed when this in fact is a legal regular expression.
    
    USER AFFECTED:
    Business Process Manager Advanced, Standard, and Express
    authoring user who is writing javascript code in Process
    Designer, and is using in-line regular expressions which have a
    single quote character (ie. /'/g)
    
    PROBLEM DETAILED DESCRIPTION:
    The root cause here was the Javascript editor parser did not
    account for regular expressions and instead parsed tokens
    without any prior knowledge of a regular expression existing. To
    determine if some code was a regular expression the second pass
    of the parser, which builds the grammar, would attempt to
    decide. Unfortunately, in cases with a single quote character (a
    legal regex) the parser attempted to parse the token as a string
    rather than a regex.
    
    IS A WORKAROUND AVAILABLE? (Y/N) IF Y: EXPLAIN IT.
    New up a regular expression instead of defining one in-line. ie.
    use new RegExp("'", "g") rather than /'/g
    
    PROBLEM CONCLUSION:
    Need to properly support the parsing of regular expression
    tokens. This way there is no confusion between single quote
    characters in a regular expression or a single quote character
    denoting the start of a string.
    
    FIX AVAILABILITY:
    Fix for 8.0.1 is planned for next cumulative maintenace
    deliverable.
    
    Fix for 8.5 is planned for next cumulative maintenace
    deliverable.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    JR46734

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    800

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-23

  • Closed date

    2013-05-31

  • Last modified date

    2013-05-31

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

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

Fix information

Applicable component levels

  • R801 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
31 May 2013