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

Possible cookie problem with plain-java client API

We are trying to use the client API package to access a machine running RTC 2.0.0.2 on WAS 6.1 which has its SSO domain configured for ibm.com whereas the client and server are running on *.raleigh.ibm.com hosts. We are getting an error out of the HTTPClient code underneath com.ibm.team.repository.client.TeamPlatform. It suggests that the CookiePolicy used (and defaulted) is too stringent (RFC2109). Is there a way to set this to a value like BROWSER-COMPATIBILITY? Or is there another means to circumvent this problem?

Thanks, Steve

Error logged:

org.apache.commons.httpclient.HttpMethodBase HttpMethodBase.java:1656
Cookie rejected: "$Version=0; LtpaToken2=Q4OcRWms3IC9rYUGfvv2dl1OcBJl85qGM++fGe1+w4PyJDTNElpk4UDn1FkHysss2vem47aGflQZ66Wx6rfnVBHcf7h2sBpcOKs+O5Lyzix+/aVuzueMFl+DApxx0CubNFWtdT3IflHH25i2VT6+jJkhNt/+sRbymCxFPTKF1P+xraPg3gLlJYgGzj8hyp9PIrX9yUHAUFwB3W9rdmQ2q6Voy+AQtdnQOpg+Mhdc/Yjdv8cKHOgnkwFL7BD9ho6TQ35QidAnyLXOjXIzrgzV3xkUMAdLpWQr06p099DVvBaz/lUaDs47QKvmd4TJLOexHix0dnwuGte15/3opJJ8hdS3nUgVF5Oy5cL7yu5k3n0N1Y2XEaY6a3ahyIkOJpdps1KI75kasEDVwiLSkyrAZE+hbqrHfp5G7gq6kADkLwvcNQt9fnqT6gk9jEoav31WSW6zFCADOTs5NmHD3DSgTHUz3WJAKWe66DMCGdUP9bp0spHDUYCodluRK0jdc1tRgWlACLzCxQmTGEHQfVqQ8XpD2+c0EOCEsaiR0FW+qRItqNMtqgYiny+hi6IkY2Cqao0+4o/XF6gETlnVJWHsNozJFQAPuLkgGg4oZmIxGTiGBT3Uba2BDSJrkSdN3dy9SY5b4cU5SoDUxNsXh76sgxe5DIGEe3dIMxiVvDXGjFgRffATx3os6JTKLeYJd0TP; $Path=/; $Domain=.ibm.com". Domain attribute ".ibm.com" violates RFC 2109: host minus domain may not contain any dots

CRJAZ0107I An unexpected error was caught invoking the service "https://csrtc-stg.raleigh.ibm.com:11221/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". The server is requesting authentication even though we just authenticated successfully. Please check your server configuration.

1 vote



One answer

Permanent link
If a servlet (login succeeded, not by TeamPlatform.login()) want to use plain-java client API to add attachements to a workitem, then I'd like to know if you bypassed the login with JSESSIONIDSSO cookie or it still needs Teamplatform.login() or can we work around Teamplaform.login(). Thx in advance.

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
× 11,007

Question asked: Aug 13 '10, 12:46 p.m.

Question was seen: 7,965 times

Last updated: Aug 13 '10, 12:46 p.m.

Confirmation Cancel Confirm