IBM Support

JR54055: REST Call fails when attribute value contains a trailing percent age character (%).

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When an attribute value contains a trailing percentage character
    (for example, "20%"), a REST call that is trying to facet
    according to this attribute will fail with the following error:
    
    Caused by: java.lang.IllegalArgumentException: URLDecoder:
    Incomplete trailing escape (%) pattern
     at java.net.URLDecoder.decode(URLDecoder.java:179)
     at
    com.ibm.commerce.foundation.server.services.rest.search.expressi
    on.solr.SolrRESTSearchByFacetExpressionProvider.invoke(SolrRESTS
    earchByFacetExpressionProvider.java:265)
     at
    com.ibm.commerce.foundation.server.services.rest.search.expressi
    on.solr.SolrRESTSearchExpressionProvider.invoke(SolrRESTSearchEx
    pressionProvider.java:282)
     at
    com.ibm.commerce.foundation.server.services.search.SearchService
    Facade.invokeSearchExpressionProvider(SearchServiceFacade.java:1
    57)
     at
    com.ibm.commerce.foundation.server.services.search.SearchService
    Facade.performSearch(SearchServiceFacade.java:191)
     ... 94 more
    
    This error occurs because the URLDecoder is trying to decode a
    string that is already decoded.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce V7 users who include a trailing percentage
    character (%) in an attribute value.
    
    PROBLEM ABSTRACT:
    REST Call fails when attribute value contains a trailing
    percentage character (%).
    
    BUSINESS IMPACT:
    Faceting by particular attribute values will result in an error.
    
    RECOMMENDATION:
    

Problem conclusion

  • The error handling logic is improved to properly handle
    exceptions when decoding fails.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR54055

  • Reported component name

    WC BUS DEV ED W

  • Reported component ID

    5724I3900

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-08-12

  • Closed date

    2015-09-28

  • Last modified date

    2015-09-28

  • 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 DEV ED W

  • Fixed component ID

    5724I3900

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSYT2H","label":"WebSphere Commerce Developer Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021