Environment(i.e. Build ID, Client and Server O/S, Browser, OptIn/OptOut, CM Context (Stream, ChangeSet, GC etc)):
7.0.2 iFix010
Client windows
Server Linux
Browser: Chrome and Edge
CM Context: Global Configuration
Description of Problem:
We have developed a CM provider. It can contribute configurations to a Global Configuration. From the GC, we can replace, remove and add our (provided by our CM provider) configurations. If we try to create a stream or baseline from GC, the title provided in the post body is missing the XMLLiteral attribute with dcterms:title that's why Jena is not decoding it and we get an encoded string of the title.
Steps to Reproduce:
A baseline is added from our CM provider to GC. From the context menu of our configuration, there is an option 'Create Stream', a dialog opens, I give a name as long as the name doesn't contain any character that needs to be encoded e.g. &, it works fine. A stream is created on our side and the newly created stream replaces the baseline in GC.
But if I give a name like a&b then & is encoded as & and Jena deserializer does not decode the name to a&b. The name is provided as a&b.
Expected Results:
title of the configuration should be provided as a&b
Actual Results:
But the title is provided as a&b
Additional Information:
This is the post body we receive from GC:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:gc="http://jazz.net/ns/gc#"
xmlns:process="http://jazz.net/ns/process#"
xmlns:oslc_acc="http://open-services.net/ns/core/acc#"
xmlns:oslc_config_ext="http://jazz.net/ns/config_ext#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:oslc_config="http://open-services.net/ns/config#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" >
<rdf:Description rdf:about="https://my.system.com:7443/pv/cm/projects/iiQg4_tauHM5XVSdw/configurations/0x626173656C696E6531">
<oslc_config:mutable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</oslc_config:mutable>
<oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration"/>
<oslc_config_ext:useComponentTeamArea rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc_config_ext:useComponentTeamArea>
<oslc_config:component rdf:resource="https://my.system.com:7443/pv/cm/projects/iiQg4_tauHM5XVSdw/configurations/component"/>
<oslc:archived rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:archived>
<dcterms:title rdf:parseType="Literal">CarLightProject a&b</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/config#Stream"/>
<rdf:type rdf:resource="http://open-services.net/ns/config#Configuration"/>
</rdf:Description>
</rdf:RDF>
Following is the expected body where the title is decoded by Jena looks like this:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:gc="http://jazz.net/ns/gc#"
xmlns:process="http://jazz.net/ns/process#"
xmlns:oslc_acc="http://open-services.net/ns/core/acc#"
xmlns:oslc_config_ext="http://jazz.net/ns/config_ext#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:oslc_config="http://open-services.net/ns/config#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" >
<rdf:Description rdf:about="https://my.system.com:7443/pv/cm/projects/iiQg4_tauHM5XVSdw/configurations/0x626173656C696E6531">
<oslc_config:mutable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</oslc_config:mutable>
<oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration"/>
<oslc_config_ext:useComponentTeamArea rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc_config_ext:useComponentTeamArea>
<oslc_config:component rdf:resource="https://my.system.com:7443/pv/cm/projects/iiQg4_tauHM5XVSdw/configurations/component"/>
<oslc:archived rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:archived>
<dcterms:title rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">CarLightProject a&b</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/config#Stream"/>
<rdf:type rdf:resource="http://open-services.net/ns/config#Configuration"/>
</rdf:Description>
</rdf:RDF>
This is provided:
<dcterms:title rdf:parseType="Literal">
This is expected
<dcterms:title rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">
Once again, this is not a feature/idea request.
This is a BUG, since the GC application does not properly apply to OSLC standards.