IBM Support

JR57152: Consecutive hyphens in generated SEO URL Keywords

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In wc-admin-component.xml, IBM configures special ASCII
    replacements like the following:
    <!-- Special ASCII replacement                 "     ?     _
     =     #     /    ' '    ~     &     '    .     ,     +     %
       -->
    <_config:property name="InvalidString" value="\x22 ,\x3F ,\x5F
    ,\x3D ,\x23 ,\x2F ,\x20 ,\x7E ,\x26 ,\x27 ,\x2E ,\x2C ,\x2B
    ,\x25" />
    <_config:property name="fixedString"   value="     ,-    ,-
    ,-    ,-    ,-    ,-    ,-    ,-    ,     ,     ,-    ,     , "
     />
    
    The InvalidString characters are replaced with the fixedString
    characters. If there are multiple InvalidString characters in a
    row in the input product/category/item description, generated
    keywords end up with multiple consecutive hyphens.
    
    For example, if space is replaced with a hyphen (-) and a comma
    (,) is also replaced with a hyphen (-), then a keyword like
    'Versatil Large, Square Sunglasses' becomes
    'Versatil-Large--Square-Sunglasses'.
    This fix converts the double hyphen (--) to a single hyphen (-),
     so that final keyword becomes
    'Versatil-Large-Square-Sunglasses'.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 7 Feature Pack 3 or later.
    
    PROBLEM ABSTRACT:
    Consecutive hyphens in generated SEO URL Keywords
    
    BUSINESS IMPACT:
    Generated SEO URLs will contain double hyphens in some
    scenarios.
    
    RECOMMENDATION:
    

Problem conclusion

  • Updated SEOServiceHelper class to handle scenarios where there
    are multiple concurrent special ASCII character replacements.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR57152

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-12-13

  • Closed date

    2018-05-10

  • Last modified date

    2018-05-10

  • 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

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021