Skip to main content

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 (Firefox plugin) 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.



    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 contains the following lines:


    #oslc.xsl.dir=c:\\temp\\xsl\\
    com.ibm.rational.cm.web.component.cm.server.name=localhost com.ibm.rational.cm.web.component.cm.server.port=12080  #com.ibm.rational.cm.web.component.cm.server.ssl.port=12443 com.ibm.rational.cm.web.component.cm.server.ssl.enabled=false com.ibm.rational.cm.web.component.cm.server.connect=direct  com.ibm.rational.cm.web.component.oslc.v1.compatibility.mode=false com.ibm.rational.cm.web.component.max.multiline.text.length=3000

    # Set this option to "true" to allow only the RequirementsChangeRequest
    record type from the

    # RequirementsChangeRequest package to be used as an RCR record in the DOORS-CQ integration.

    com.ibm.rational.cm.web.component.restrict.rcr.types=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

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational ClearQuest

CM Server


Software version:
7.1, 7.1.1, 7.1.2, 8.0


Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows


Reference #:
1590934


Modified date:
2013-02-10

Translate my page

Content navigation