Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RQM APIUtility Issue

I'm experiencing the following in a 6.0.6 iFix019 environment:
I'm getting a client with:
APIHttpClient client = APIHttpClientFactory.getGenericClient(new URL(url), USER, PASSWORD);

The behavior
- login() returns 200
- The first sign of trouble:  when FeedReader.getIds() is invoked, JazzHttpClient.checkForRelogin() checks the authentication header, which is equal to HTTP_HEADER_VALUE_AUTHENTICATION_REQUIRED, and another login is forced, which returns 200.
- Even though we seem to be authenticated, the XML returned by FeedReader.getIds() is not the XML of the feed, but the xhtml that is returned when you're not authenticated.

I experience this behavior only in my client's environment, not on my own server.  Aside from there being multiple QM servers in their deployment, the only other variable I can think of is that their deployment requires TLSv1.2, which I've forced the APIUtility to use by setting overrideProtocol to "TLSv1.2" in SSLContextUtil. 

I don't have this issue with RQMRestClient in the CopyUtility.

0 votes



One answer

Permanent link

Setting this cookie policy in the JazzHttpClient constructor seems to have resolved/worked around the symptom:


String cookiePolicy = CookiePolicy.BROWSER_COMPATIBILITY;
getParams().setCookiePolicy(cookiePolicy);

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,953

Question asked: May 05 '21, 1:14 p.m.

Question was seen: 1,396 times

Last updated: May 06 '21, 2:23 p.m.

Confirmation Cancel Confirm