IBM Support

PI18903: INLINE BASE64 ENCODED BINARY FOR FILE AND IMAGE COMPONENTS IN TH E WCM REST SERVICE

 

APAR status

  • Closed as program error.

Error description

  • Add support for create/update binary resources within
    file/image
    elements. Thus allowing for the creation and population of
    binary artifacts via REST (instead of needing to create the
    component first and then post binary directly to the element).
    
    In doing so ensure that the filename can be supplied for the
    binary artifact being created/updated.
    
    e.g.
    
    <?xml version="1.0" encoding="UTF-8"?>
    <entry xmlns="http://www.w3.org/2005/Atom"
    xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
    <title>ImageCmpnt InlineBinary
    -883268129</title>
    <wcm:name>ImageCmpnt InlineBinary
    -883268129</wcm:name>
    <link rel="library" href="/wps/mycontenthandler/wcmrest/i
    tem/bf138af0-59e2-4eff-8de3-9ead4c3fbd3b/"/>
    <content>
    <wcm:image xmlns="http://www.ibm.com/xmlns/wcm/8
    .0">
    <binaryresource fileName="Sunset.jpg"
    type="image/*">
    [BASE64 encoded binary]
    </binaryresource>
    </wcm:image>
    </content>
    </entry>
    Opened for release 8001
    

Local fix

Problem summary

  • Add support for create/update binary resources within
    file/image
    elements. Thus allowing for the creation and population of
    binary artifacts via REST (instead of needing to create the
    component first and then post binary directly to the element).
    
    In doing so ensure that the filename can be supplied for the
    binary artifact being created/updated.
    
    e.g.
    
    <?xml version="1.0" encoding="UTF-8"?>
    <entry xmlns="http://www.w3.org/2005/Atom"
    xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
    <title>ImageCmpnt InlineBinary
    -883268129</title>
    <wcm:name>ImageCmpnt InlineBinary
    -883268129</wcm:name>
    <link rel="library" href="/wps/mycontenthandler/wcmrest/i
    tem/bf138af0-59e2-4eff-8de3-9ead4c3fbd3b/"/>
    <content>
    <wcm:image xmlns="http://www.ibm.com/xmlns/wcm/8
    .0">
    <binaryresource fileName="Sunset.jpg"
    type="image/*">
    [BASE64 encoded binary]
    </binaryresource>
    </wcm:image>
    </content>
    </entry>
    Opened for release 8001
    

Problem conclusion

  • Analysis
    See above
    
    Solution
    Added handling for the additional binaryresource element
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI18903

  • Reported component name

    LOTUS WEB CONT

  • Reported component ID

    5724I2901

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-28

  • Closed date

    2015-02-05

  • Last modified date

    2015-02-05

  • 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

    LOTUS WEB CONT

  • Fixed component ID

    5724I2901

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU051","label":"N\/A"},"Product":{"code":"SUPPORT","label":"IBM Web Content Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"800","Line of Business":{"code":"LOB33","label":"N\/A"}}]

Document Information

Modified date:
21 December 2021