The OSLC CM REST API truncates multi-line fields

Technote (troubleshooting)


Problem(Abstract)

When you use the OSLC CM REST API in IBM Rational ClearQuest, multi-line fields in the REST client are truncated for default installations whenever multi-line fields are greater than 2037 characters.

Cause

The multi-line field is an adjustable value in OSLC.

Multi-line fields that are greater than 2037 characters are truncated, only if you leave the value of the multi-line fields to the default of 2037 characters.


Resolving the problem

  1. On the CM server open the following directory.


    ClearQuest 8.0.x:

    C:\Program Files\IBM\RationalSDLC\ClearQuest\cqweb\cqwebprofile\installedApps\dfltCell\TeamEAR.ear\cqweb.war\WEB-INF\classes


    ClearQuest 7.1.x:

    C:\Program Files\IBM\RationalSDLC\common\CM\profiles\cmprofile\installedApps\
    dfltCell\TeamEAR.ear\cqweb.war\WEB-INF\classes


  2. Open the file cqrest.properties. The file should contain text similar to following:


    com.ibm.rational.cm.web.component.oauth.accessor.limit=1000
    com.ibm.rational.cm.web.component.oslc.forward.certificate=true
    com.ibm.rational.cm.web.component.ltpa.cookie.name=LtpaToken2
    com.ibm.rational.cm.web.component.restrict.oslcenabled.types=false
    com.ibm.rational.cm.web.component.oslc.configuration.autoInitializeRepository=false
    com.ibm.rational.cm.web.component.cm.server.ssl.enabled=false
    com.ibm.rational.cm.web.component.cm.server.name=localhost
    com.ibm.rational.cm.web.component.oslc.forward.securityToken=true
    com.ibm.rational.cm.web.component.cm.server.port=12080
    com.ibm.rational.cm.web.component.restrict.rcr.types=false
    com.ibm.rational.cm.web.component.max.multiline.text.length=2000
    com.ibm.rational.cm.web.component.oslc.change.check=false
    com.ibm.rational.cm.web.component.oslc.configuration.location=file
    com.ibm.rational.cm.web.component.cm.server.connect=direct
    com.ibm.rational.cm.web.component.oauth.deprecated.warnings=true
    com.ibm.rational.cm.web.component.oslc.v1.compatibility.mode=false


  3. Change the line as follows.

    BEFORE

    com.ibm.rational.cm.web.component.max.multiline.text.length=2000


    AFTER

    com.ibm.rational.cm.web.component.max.multiline.text.length=5000


  4. Restart the CM server.


Notes

  • You can change the parameter to any length that suites the size of your multi-line field
  • This consumes resources on the server. If you set a large value, performance will degrade accordingly.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearQuest
CM Server

Software version:

7.1, 7.1.0.1, 7.1.0.2, 7.1.1, 7.1.1.1, 7.1.1.2, 7.1.1.3, 7.1.1.4, 7.1.1.5, 7.1.1.6, 7.1.1.7, 7.1.1.8, 7.1.1.9, 7.1.2, 7.1.2.1, 7.1.2.2, 7.1.2.3, 7.1.2.4, 7.1.2.5, 7.1.2.6, 7.1.2.7, 7.1.2.8, 7.1.2.9, 7.1.2.10, 7.1.2.11, 7.1.2.12, 8.0, 8.0.0.1, 8.0.0.2, 8.0.0.3, 8.0.0.4, 8.0.0.5, 8.0.0.6, 8.0.0.7, 8.0.0.8, 8.0.1, 8.0.1.1

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1590934

Modified date:

2013-10-11

Translate my page

Machine Translation

Content navigation