Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » problem https login with Generic Web Repository Connector
problem https login with Generic Web Repository Connector [message #37040] Thu, 22 November 2007 12:10 Go to next message
paul hopton is currently offline paul hoptonFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,


I seem to be haing trouble setting up the Generic Web Repository Connector
to work with our 3rd Party Intranet over https.

I'm using this Login Request URL:
https://XXXX/Start/startpage.action?s7_username=${userId}&am p;s7_password=${password}&action=s7_security_check

With this Query Request Url: https://XXXX/Task/taskList.action

However I receive the message -
Could not fetch Resource:
https://XXXX/Task/taskList.action
Server Returned HTTPResponseCode: 403 for URL:
https://XXXX/Task/taskList.action

so it can't log in...

I made this little junit test:

public void testLoginSucceeds(){


HttpClient client = new HttpClient();

PostMethod loginMethod = new PostMethod(loginUrl);
GetMethod taskListMethod = new GetMethod(taskUrl);

loginMethod.addParameter(USERNAME_FIELD, userName);
loginMethod.addParameter(PASSWORD_FIELD, password);
loginMethod.addParameter("action", action);
try {
client.executeMethod(loginMethod);
System.out.println(loginMethod.getStatusLine());

client.executeMethod(taskListMethod);
System.out.println(taskListMethod.getStatusLine());

} catch (Exception e) {
e.printStackTrace();
} finally {
loginMethod.releaseConnection();
taskListMethod.releaseConnection();
}

}

which generates:
HTTP/1.1 200 OK
HTTP/1.1 200 OK

so httpClient seems happy. I took a copy of the plug-in from cvs and
looked through the code, but feel a bit out of my depth.

Any Help or Hints gratefully received,

Paul Hopton
Re: problem https login with Generic Web Repository Connector [message #37075 is a reply to message #37040] Thu, 22 November 2007 13:45 Go to previous messageGo to next message
paul hopton is currently offline paul hoptonFriend
Messages: 6
Registered: July 2009
Junior Member
I forgot to mention that the authentication process places a sesion id in
a cookie. Again this seems to be no problem within httpClient, and from
the code I scanned, should be no problem here either.

thanks

Paul Hopton
Re: problem https login with Generic Web Repository Connector [message #37579 is a reply to message #37075] Thu, 29 November 2007 01:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: beatmik.acm.org

Hi Paul,

If you haven't yet, please file a bug for this.

Mik

Paul Hopton wrote:
> I forgot to mention that the authentication process places a sesion id
> in a cookie. Again this seems to be no problem within httpClient, and
> from the code I scanned, should be no problem here either.
>
> thanks
>
> Paul Hopton
>
Re: problem https login with Generic Web Repository Connector [message #37778 is a reply to message #37579] Mon, 03 December 2007 08:59 Go to previous message
paul hopton is currently offline paul hoptonFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Mik,

thanks for the response, I've filed it as a bug.

Cheers

Paul
Re: problem https login with Generic Web Repository Connector [message #585046 is a reply to message #37040] Thu, 22 November 2007 13:45 Go to previous message
paul hopton is currently offline paul hoptonFriend
Messages: 6
Registered: July 2009
Junior Member
I forgot to mention that the authentication process places a sesion id in
a cookie. Again this seems to be no problem within httpClient, and from
the code I scanned, should be no problem here either.

thanks

Paul Hopton
Re: problem https login with Generic Web Repository Connector [message #585294 is a reply to message #37075] Thu, 29 November 2007 01:41 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Paul,

If you haven't yet, please file a bug for this.

Mik

Paul Hopton wrote:
> I forgot to mention that the authentication process places a sesion id
> in a cookie. Again this seems to be no problem within httpClient, and
> from the code I scanned, should be no problem here either.
>
> thanks
>
> Paul Hopton
>
Re: problem https login with Generic Web Repository Connector [message #585447 is a reply to message #37579] Mon, 03 December 2007 08:59 Go to previous message
paul hopton is currently offline paul hoptonFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Mik,

thanks for the response, I've filed it as a bug.

Cheers

Paul
Previous Topic:adding task into task list
Next Topic:Mylyn and CDT
Goto Forum:
  


Current Time: Fri Apr 26 16:28:38 GMT 2024

Powered by FUDForum. Page generated in 0.04758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top