IBM Support

PM51613: OSLC RDF response is not valid if oslc.properties contains second-degree reference field

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    
     - Operating System: Windows 2003 Server
    
     - Product name: ClearQuest
    
     - Product Version: 7.1.2.2 / 7.1.2.4 / 8.0.0.0
    
    
    
    Description of problem:
    
    When running an OSLC request to retrieve a record and a
    second-degree referenced record type's field value (such as
    Project.Owner.fullname), the resulting RDF is invalid and
    contains the data twice.
    
    A sample OSLC request (using OSLC CM 2.0) is the following:
    
    http://server/cqweb/oslc/repo/7.0.0/db/SAMPL/record/16777224-335
    54433?oslc.properties=cq:State,cq:Project{cq:Owner{cq:fullname}}
    
    
    Steps to reproduce:
    
    - Use a SAMPL database
    - Check out the schema, on the Project record type add a
    REFERENCE field pointing to 'users' record type, name it 'Owner'
    - On the 'Project' form, add a form element for the 'Owner'
    field that was just added.
    - Check in Schema, upgrade database
    - From the user administration, set a full name for the 'admin'
    user and upgrade the database
    
    - Log in to the CQ client, update the 'Classics' project and set
    'admin' as the Owner of the project.
    - Using REST client (or any similar client) send the following
    GET request with the headers
    
    'Accept: application/rdf+xml'
    'OSLC-Core-Version: 2.0'
    
    http://server/cqweb/oslc/repo/7.0.0/db/SAMPL/record/16777224-335
    54433?oslc.properties=cq:State,cq:Project{cq:Owner{cq:fullname}}
    
    The resulting RDF contains the user information twice:
    
    --- snip ---
    ?cq:Owner?
    ?oslc_cm:ChangeRequest
    rdf:about='http://server/cqweb/oslc/repo/7.0.0/db/SAMPL/record/1
    6777223-33554434'?
    ?dcterms:type?users?/dcterms:type?
    ?oslc:shortTitle?admin?/oslc:shortTitle?
    ?cq:fullname?Admin User?/cq:fullname?
    ?/oslc_cm:ChangeRequest?
    ?/cq:Owner?
    ?cq:Owner
    rdf:about='http://server/cqweb/oslc/repo/7.0.0/db/SAMPL/record/1
    6777223-33554434'?
    ?dcterms:type?users?/dcterms:type?
    ?oslc:shortTitle?admin?/oslc:shortTitle?
    ?cq:fullname?Admin User?/cq:fullname?
    ?/cq:Owner?
    --- snap ---
    
    The entire RDF returned does not validate against the W3 RDF
    validator.
    
    
    Workaround:
    
    None known
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When running an CQ Web OSLC request to retrieve a record and
    a second-degree referenced record type's field value (such
    as Project.Owner.fullname), the resulting RDF is invalid and
    contains the data twice.
    

Problem conclusion

  • A fix is available in ClearQuest 7.1.2.6 and 8.0.0.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM51613

  • Reported component name

    CLEARQUEST WIN

  • Reported component ID

    5724G3600

  • Reported release

    712

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-04

  • Closed date

    2012-04-05

  • Last modified date

    2012-04-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

    CLEARQUEST WIN

  • Fixed component ID

    5724G3600

Applicable component levels

  • R712 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1.2","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
05 April 2012