ClearQuest OSLC CM REST API 403 Forbidden Error when searched using oslcterms
Hello Team,
Below is my Request:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:dcterms="http://purl.org/dc/terms/"
><oslc_cm:ChangeRequest rdf:about="https://host/cqweb/oslc/repo/Dbset/db/sampl/record/?oslc_cm.query=Discipline=SW&rcm.type=Defect"
></oslc_cm:ChangeRequest
></rdf:RDF
>
Response i got:
403 Forbidden Error.
But when i paste in browser https://host/cqweb/oslc/repo/Dbset/db/sampl/record/?oslc_cm.query=Discipline="SW"&rcm.type=Defect
I got proper response. Could you please help out in this.
Thanks in Advance
Below is my Request:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:dcterms="http://purl.org/dc/terms/"
><oslc_cm:ChangeRequest rdf:about="https://host/cqweb/oslc/repo/Dbset/db/sampl/record/?oslc_cm.query=Discipline=SW&rcm.type=Defect"
></oslc_cm:ChangeRequest
></rdf:RDF
>
Response i got:
403 Forbidden Error.
But when i paste in browser https://host/cqweb/oslc/repo/Dbset/db/sampl/record/?oslc_cm.query=Discipline="SW"&rcm.type=Defect
I got proper response. Could you please help out in this.
Thanks in Advance
Comments
Donald Nong
Jan 14 '15, 12:06 a.m.Have you logged on before sending the request?
vinitha dsouza
Jan 14 '15, 1:34 a.m.yes ,i have logged in .
When i fire same request without oslc_cm.query and things work proper.