How to solve 403 Error while uploading to ETM
I am trying to upload a testscript using the url https://xxxx/qm1/service/com.ibm.rqm.integration.service.IIntegrationService/resources/xxxxxx/testscript/urn:com.ibm.rqm:testscript:xxxx using PUT operation.
I recieve a error message stating <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:Error xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/"
xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1"
xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns21="http://www.w3.org/1999/XSL/Transform" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1"
xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/">
<ns2:statusCode>403</ns2:statusCode>
<ns2:message>The Save Formal Review operation cannot be completed.<br/><strong>You don't have permission to perform the following actions: Permanently Delete (delete)</strong></ns2:message>
</ns2:Error>. I am not able to know what it is trying to say.
One answer
The error in the response indicates that the user does not have a role that gives them permissions to perform that operation on the object. In this case, it thinks the request is trying to permanently delete some artifact. Perhaps in the PUT body you are trying to remove data that is present in the current state of that artifact, implying a deletion of that reference data. Since you neither include the RDF of the current state of the object, nor the RDF you include in the PUT body, it's impossible to say.