It's all about the answers!

Ask a question

How to avoid HTTP 412 Precondtition Failed when adding a "Validated By" link to a DNG Requirement


Willy Dhondt (5821123) | asked Aug 09 '17, 8:22 a.m.

Hi,
 

A validatesRequirement between an RQM TestCase and a DNG Requirement gets created
but  creating a validatedBy link between the DNG Requirement and th RQM Test case fails with HTTP 412 Precondtition Failed.

Thanks for advising how the HTTP 412 Precondition failed can be avoided.

See trace below for details,

>> put(1) https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedTestCase/_NqlVUXiqEeeZW-tn-jjAFg
>> Request Headers:
    - Accept               application/xml
    - Accept-Language      en-US,en;q=0.5
    - Accept-Encoding      gzip, deflate, br
    - Content-Type         application/xml
    - OSLC-Core-Version    2.0
    - X-Jazz-CSRF-Prevent  0000HaWgMxKnpDecA0Wg04OBAYU:5816ed2e-92f7-4cb2-8dea-0b0a7badee7d
>> content
<rdf:RDF xmlns:acc="http://open-services.net/ns/core/acc#" xmlns:acp="http://jazz.net/ns/acp#" xmlns:bp="http://open-services.net/ns/basicProfile#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:cmx="http://open-services.net/ns/cm-x#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:oslc="http://open-services.net/ns/core#" xmlns:oslc_auto="http://open-services.net/ns/auto#" xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:oslc_config="http://open-services.net/ns/config#" xmlns:oslc_qm="http://open-services.net/ns/qm#" xmlns:oslc_rm="http://open-services.net/ns/rm#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:process="http://jazz.net/ns/process#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rqm_auto="http://jazz.net/ns/auto/rqm#" xmlns:rqm_lm="http://jazz.net/ns/qm/rqm/labmanagement#" xmlns:rqm_process="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
 <oslc_qm:TestCase rdf:about="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedTestCase/_NqlVUXiqEeeZW-tn-jjAFg">
  <rqm_qm:richTextSection>
   <rqm_qm:RichTextSection rdf:about="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedTestCase/_NqlVUXiqEeeZW-tn-jjAFg#com.ibm.rqm.defects.web.RmLinks">
    <rqm_qm:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
    <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">com.ibm.rqm.defects.web.RmLinks</dcterms:identifier>
    <process:projectArea rdf:resource="https://myhost:9443/qm/process/project-areas/_GuNbAFS5EeeMvZ59-cIRUA"/>
    <oslc:serviceProvider rdf:resource="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/services.xml"/>
    <oslc:instanceShape rdf:resource="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/shape/resource/com.ibm.rqm.planning.VersionedTestPlan#RichTextSection"/>
   </rqm_qm:RichTextSection>
  </rqm_qm:richTextSection>
  <rqm_qm:category rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_J_JXwVTvEeeIa6QPh100Ww"/>
  <rqm_qm:category rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_J_AN0VTvEeeIa6QPh100Ww"/>
  <rqm_qm:category rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_J_dg0VTvEeeIa6QPh100Ww"/>
  <rqm_qm:weight rdf:datatype="http://www.w3.org/2001/XMLSchema#int">100</rqm_qm:weight>
  <rqm_qm:shortIdentifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1246</rqm_qm:shortIdentifier>
  <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DO-01#IU</dcterms:title>
  <rqm_qm:scriptStepCount rdf:datatype="http://www.w3.org/2001/XMLSchema#long">0</rqm_qm:scriptStepCount>
  <dcterms:creator rdf:resource="https://myhost:9443/jts/users/JazzAdmin"/>
  <oslc:instanceShape rdf:resource="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/shape/resource/com.ibm.rqm.planning.VersionedTestCase"/>
  <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-08-04T00:16:51.493Z</dcterms:created>
  <rqm_process:hasPriority rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_GuNbAFS5EeeMvZ59-cIRUA/priority/literal.priority.101"/>
  <oslc:serviceProvider rdf:resource="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/services.xml"/>
  <oslc_qm:usesTestScript rdf:resource="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedExecutionScript/_JnSRYVTvEeeIa6QPh100Ww"/>
  <acp:accessControl rdf:resource="https://myhost:9443/qm/oslc_qm/accessControl/_GuNbAFS5EeeMvZ59-cIRUA"/>
  <rqm_process:hasWorkflowState rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_GuNbAFS5EeeMvZ59-cIRUA/workflowstate/com.ibm.rqm.process.testcase.workflow/com.ibm.rqm.planning.common.new"/>
  <rqm_qm:isSuspect rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</rqm_qm:isSuspect>
  <rqm_qm:category rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_J_UW4VTvEeeIa6QPh100Ww"/>
  <dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;ESSAI X&gt;
            30/5</dcterms:description>
  <process:projectArea rdf:resource="https://myhost:9443/qm/process/project-areas/_GuNbAFS5EeeMvZ59-cIRUA"/>
  <dcterms:contributor rdf:resource="https://myhost:9443/jts/users/unassigned"/>
  <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedTestCase/_NqlVUXiqEeeZW-tn-jjAFg</dcterms:identifier>
  <rqm_qm:category rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_J-3q8VTvEeeIa6QPh100Ww"/>
  <dcterms:relation rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_GuNbAFS5EeeMvZ59-cIRUA/testcase/urn:com.ibm.rqm:testcase:1246"/>
  <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-08-09T11:47:56.325Z</dcterms:modified>
  <oslc:shortId rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1246</oslc:shortId>
  <rqm_qm:isLocked rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</rqm_qm:isLocked>
  <rqm_qm:category rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_J-t58VTvEeeIa6QPh100Ww"/>
  <rqm_qm:template rdf:resource="https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ATM2+%28Quality+Management%29/template/testcase/com.ibm.rqm.planning.templates.testcase.default"/>
  <acc:accessContext rdf:resource="https://myhost:9443/qm/acclist#_GuNbAFS5EeeMvZ59-cIRUA"/>
 <oslc_qm:validatesRequirement rdf:ID="n0" rdf:resource="https://myhost:9443/rm/resources/MB_48ddb7dd06e84459b58737a12296b13a"/>
  </oslc_qm:TestCase>
<rdf:Description rdf:about="#n0">
    <dcterms:title>8267: SYS-0090</dcterms:title>
  </rdf:Description>

</rdf:RDF>

>> Response Headers:
    - X-Powered-By         Servlet/3.0
    - x-com-ibm-team-scenario 172.16.9.1
    - OSLC-Core-Version    2.0
    - ETag                 "_1VBCcHz4EeeF4ddXHv83Yg"
    - Location             https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedTestCase/_NqlVUXiqEeeZW-tn-jjAFg
    - Content-Language     en-US
    - Content-Length       0
    - Date                 Wed, 09 Aug 2017 11:49:43 GMT
HTTP/1.1 200 OK
>> put(1) https://myhost:9443/rm/resources/MB_48ddb7dd06e84459b58737a12296b13a
>> Request Headers:
    - Accept               application/xml
    - Accept-Language      en-US,en;q=0.5
    - Accept-Encoding      gzip, deflate, br
    - Content-Type         application/xml
    - OSLC-Core-Version    2.0
    - X-Jazz-CSRF-Prevent  0000HaWgMxKnpDecA0Wg04OBAYU:5816ed2e-92f7-4cb2-8dea-0b0a7badee7d
>> content
<rdf:RDF xmlns:acc="http://open-services.net/ns/core/acc#" xmlns:acp="http://jazz.net/ns/acp#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dng_task="http://jazz.net/ns/rm/dng/task#" xmlns:jazz_rm="http://jazz.net/ns/rm#" xmlns:nav="http://jazz.net/ns/rm/navigation#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:oslc_auto="http://open-services.net/ns/auto#" xmlns:oslc_config="http://open-services.net/ns/config#" xmlns:oslc_rm="http://open-services.net/ns/rm#" xmlns:process="http://jazz.net/ns/process#" xmlns:public_rm_10="http://www.ibm.com/xmlns/rm/public/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/" xmlns:rm_property="https://myhost:9443/rm/types/">
  <oslc_rm:Requirement rdf:about="https://myhost:9443/rm/resources/MB_48ddb7dd06e84459b58737a12296b13a">
    <nav:parent rdf:resource="https://myhost:9443/rm/folders/_dT1vkXBOEee0j9Yd_DFqBg"/>
    <dcterms:creator rdf:resource="https://myhost:9443/jts/users/JazzAdmin"/>
    <rdf:type rdf:resource="http://jazz.net/ns/rm#Text"/>
    <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-08-03T23:04:30.358Z</dcterms:created>
    <rm_property:_EUGwEVS5EeemooBvU-5Dsg rdf:resource="https://myhost:9443/rm/types/_EQxvQVS5EeemooBvU-5Dsg#ebc08514-e765-4508-8c4f-bd191ce985c1"/>
    <rm_property:_EUqwwVS5EeemooBvU-5Dsg rdf:resource="https://myhost:9443/rm/types/_EP4XYVS5EeemooBvU-5Dsg#41377dfc-4909-4c9b-a6be-1e578b3e979b"/>
    <dcterms:description rdf:parseType="Literal"/>
    <rm_property:_EVZJgVS5EeemooBvU-5Dsg rdf:resource="https://myhost:9443/rm/types/_ERGfYVS5EeemooBvU-5Dsg#fe1e0579-bae0-480d-8e59-2f557597d6d0"/>
    <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">8267</dcterms:identifier>
    <dcterms:alternative rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DO-01#IU</dcterms:alternative>
    <oslc_config:component rdf:resource="https://myhost:9443/rm/cm/component/_D24okFS5EeemooBvU-5Dsg"/>
    <oslc:instanceShape rdf:resource="https://myhost:9443/rm/types/_EbLocVS5EeemooBvU-5Dsg"/>
    <rm_property:_EU5aQVS5EeemooBvU-5Dsg rdf:resource="https://myhost:9443/rm/types/_EPMa4VS5EeemooBvU-5Dsg#99fa343e-2d22-47da-8243-1a51abb14c60"/>
    <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-08-09T11:49:27.561Z</dcterms:modified>
    <dcterms:contributor rdf:resource="https://myhost:9443/jts/users/JazzAdmin"/>
    <rm_property:_EVKgAVS5EeemooBvU-5Dsg rdf:resource="https://myhost:9443/rm/types/_EPjnQVS5EeemooBvU-5Dsg#9fa948cf-d978-49b4-aac8-ab7cf73c0b70"/>
    <jazz_rm:primaryText rdf:parseType="Literal">
      <div xmlns="http://www.w3.org/1999/xhtml">
<div dir="ltr" id="_1501801470005">SYS-0090</div>
</div>
    </jazz_rm:primaryText>
    <acp:accessControl rdf:resource="https://myhost:9443/rm/accessControl/_Dy3rQFS5EeemooBvU-5Dsg"/>
    <process:projectArea rdf:resource="https://myhost:9443/rm/process/project-areas/_Dy3rQFS5EeemooBvU-5Dsg"/>
    <dcterms:title rdf:parseType="Literal">SYS-0090</dcterms:title>
    <oslc:serviceProvider rdf:resource="https://myhost:9443/rm/oslc_rm/_Dy3rQFS5EeemooBvU-5Dsg/services.xml"/>
  <oslc_rm:validatedBy rdf:ID="a00" rdf:resource="https://myhost:9443/qm/oslc_qm/contexts/_GuNbAFS5EeeMvZ59-cIRUA/resources/com.ibm.rqm.planning.VersionedTestCase/_NqlVUXiqEeeZW-tn-jjAFg"/>
  </oslc_rm:Requirement>
<rdf:Description rdf:about="#a00">
    <dcterms:title rdf:parseType="Literal">8267: SYS-0090</dcterms:title>
  </rdf:Description>

</rdf:RDF>

>> Response Headers:
    - X-Powered-By         Servlet/3.0
    - Set-Cookie           JAZZ_AUTH_TOKEN=73a621cdb9324f9ea933999027499dcb&gS3VRFmUYe4BPic53mbhfGfM3vTZFNGUVo8FEgsujQ; Path=/rm; Secure; HttpOnly
    - Content-Type         application/rdf+xml
    - Content-Encoding     gzip
    - Vary                 Accept-Encoding
    - Content-Language     en-US
    - Transfer-Encoding    chunked
    - Connection           Close
    - Date                 Wed, 09 Aug 2017 11:49:43 GMT
    - Expires              Thu, 01 Dec 1994 16:00:00 GMT
    - Cache-Control        no-cache="set-cookie, set-cookie2"
HTTP/1.1 412 Precondition Failed


Comments
Willy Dhondt commented Aug 09 '17, 10:57 a.m. | edited Aug 09 '17, 10:58 a.m.

An ERROR server.services.calm.internal.OSLC20ContentHandler entry is added to rm.log when the validateBy link creation fails.

============================================
2017-08-09 16:47:17,454 [Default Executor-thread-2387 @@ 16:47 JazzAdmin <Apache-HttpClient/4.3.6 (java 1.5)@172.16.9.1> /rm/resources/MB_48ddb7dd06e84459b58737a12296b13a] ERROR server.services.calm.internal.OSLC20ContentHandler  - TRACER (2) >>>
=STEP= CALL: OSLC20ContentHandler::internalPut
        =PARAM= Params {LC: https://myhost:9443/rm/cm/stream/_D3DAoFS5EeemooBvU-5Dsg GC: http://DEFAULT.GC PRJ: https://myhost:9443/rm/process/project-areas/_Dy3rQFS5EeemooBvU-5Dsg Component: https://myhost:9443/rm/cm/component/_D24okFS5EeemooBvU-5Dsg Concept: null}
!!SUSPECT!! > Using uri https://myhost:9443/rm/resources/MB_48ddb7dd06e84459b58737a12296b13a
<<< TRACER

One answer



permanent link
Willy Dhondt (5821123) | answered Aug 09 '17, 1:40 p.m.

Problem was solved by adding the If-Match header ( see https://jazz.net/library/article/1197)

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.