It's all about the answers!

Ask a question

Access problem when using RQM REST API


Bowen Turetzky (2641) | asked Nov 19 '10, 6:13 p.m.
Hello,

I'm trying to copy data from one RQM instance to another. I'm using the RQMCopyUtility 2.0.1 iFix 3

On my source instance I have 2 projects. When copying from one project I'm able to copy data to my target instance but when I try to copy from the other project I get the following error:

SEVERE: General REST Exception: RestException executing: GET Artifact Feed, RC: 500, message: com.ibm.team.repository.common.PermissionDeniedException: CRJAZ131
6I Illegal read access: User "bturetz@us.ibm.com" attempted to read item(s) having the following type(s): ProjectArea
at com.ibm.team.repository.service.internal.ComponentRepositoryItemService.fetchItem(ComponentRepositoryItemService.java:498)
at com.ibm.rqm.integration.service.IntegrationServiceURI.getProjectArea(IntegrationServiceURI.java:413)
at com.ibm.rqm.integration.service.internal.IntegrationService.checkPermissions(IntegrationService.java:812)
at com.ibm.rqm.integration.service.internal.IntegrationService.handleRequest(IntegrationService.java:393)
at com.ibm.rqm.integration.service.internal.IntegrationService.perform_GET(IntegrationService.java:171)
at com.ibm.team.repository.service.TeamRawService.service(TeamRawService.java:82)
at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy457.service(Unknown Source)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doRestService(AbstractTeamServerServlet.java:879)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:1768)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1642)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1555)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:811)

FAILURE!

I tried again after adding my ID to the JazzAdmin group and I now get the following error:

SEVERE: General REST Exception: RestException executing: GET Artifact Feed, RC: 403, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.28 - Error report&lt;/title&gt;&lt;sty&gt;&lt;H1&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 403 - &lt;/h1&gt;&lt;HR&gt;&lt;p&gt;<b>type</b> Status report&lt;/p&gt;&lt;p&gt;<b>message</b> <u></u>&lt;/p&gt;&lt;p&gt;<b>description</b> <u>Access to the specified resource () has
been forbidden.</u>&lt;/p&gt;&lt;HR&gt;&lt;h3&gt;Apache Tomcat/5.5.28&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
FAILURE!

Both projects are as identical as I can make them in terms of permissions and settings. I have JazzAdmin on all instances and have all the roles available assigned to my ID. The command I'm using in RQMCopyUtility is the same for both projects (default, copy everything)

6 answers



permanent link
Bowen Turetzky (2641) | answered Nov 19 '10, 8:03 p.m.
Tried a different access method and got a better error message.

Tried to access stuff via direct REST API using firefox addon Poster and got this error:

&lt;html&gt;&lt;body&gt;File Upload Response:403,Insufficient privileges. XML Import permission is required.&lt;/body&gt;&lt;/html&gt;

As far as I can see XML Import (and Export) is granted. I went ahead an explicitly granted it for all roles defined and tried again and I still get the same error.

permanent link
Bowen Turetzky (2641) | answered Nov 19 '10, 8:33 p.m.
Actually, I notice two error codes when using poster, the 403 in the message body but the response from the server is 413 Entity to large, I get this even when requesting a single testcase (not attachments or anything). Never had this problem when getting data from the other project..

permanent link
Bowen Turetzky (2641) | answered Nov 29 '10, 12:09 p.m.
Hi,

Still having this problem... any suggestions?

permanent link
Paul McMahan (13614) | answered Dec 06 '10, 3:02 p.m.
JAZZ DEVELOPER
Bowen, Can you check the configuration for your project area at https://server/jazz/admin to make sure that your user account is a member of the project area and has XML Export and XML Import permissions?

permanent link
Bowen Turetzky (2641) | answered Dec 06 '10, 3:16 p.m.
Bowen, Can you check the configuration for your project area at https://server/jazz/admin to make sure that your user account is a member of the project area and has XML Export and XML Import permissions?


Hi thanks for the response. Yes, I'm both a member of the team and have a role with the XML import/export permission enabled

permanent link
Paul McMahan (13614) | answered Dec 06 '10, 4:03 p.m.
JAZZ DEVELOPER
Please check that your user account has access on both the source and target project areas (if using the copy tool). And also please check the Access Control tab in the project area editors to make sure it is set to Everyone.

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.