Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 203052 - "Internal Server Error. Please contact your Jira administrator." then trying to validate connection when proxy is enabled
Summary: "Internal Server Error. Please contact your Jira administrator." then trying ...
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 2.0 M1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-12 06:34 EDT by Max CLA
Modified: 2007-09-14 12:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max CLA 2007-09-12 06:34:35 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1.Hit validate settings


More information:
I've tried to connect to our jira using telnet and using
GET /rpc/soap/jirasoapservice-v2 HTTP/1.0

I've got this as return
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Length: 142
Date: Wed, 12 Sep 2007 10:28:45 GMT
Connection: close

<h1>jirasoapservice-v2</h1>
<p>Hi there, this is an AXIS service!</p>
<i>Perhaps there will be a form for invoking the service here...</i>


Connection to host lost.

Other clients (like Jira Client) are working fine with our Jira (Version: 3.6.5-#161).
Comment 1 Eugene Kuleshov CLA 2007-09-12 09:41:29 EDT
Please update to the most recent dev or 2.1Mx build from "extras" update site. See http://www.eclipse.org/mylyn/downloads/
Comment 2 Max CLA 2007-09-12 10:00:36 EDT
(In reply to comment #1)
> Please update to the most recent dev or 2.1Mx build from "extras" update site.
> See http://www.eclipse.org/mylyn/downloads/
> 

Sorry for leading you to misunderstanding - im already using 2.1Mx build.
By the way, do you know how can I turn on Mylyn loggin? I’ve tried solution from http://wiki.eclipse.org/index.php/Mylyn_FAQ Reporting topic, but it doesn’t work. I’ve tried looking for logs in my workspace folder, but i havent found anything. Im new to Eclipse, maybe im searching in the wrong place?
Comment 3 Eugene Kuleshov CLA 2007-09-12 13:06:52 EDT
I don't know what "Jira Client" is, so I am not sure which remoting API it is using. Can you tell what message you get on the client side when validating repository configuration and how your jira url look like? Currently there is no special tracing in the repository validator code and we'll need to add something there.
Comment 4 Max CLA 2007-09-13 03:55:25 EDT
(In reply to comment #3)
> I don't know what "Jira Client" is, so I am not sure which remoting API it is
> using. Can you tell what message you get on the client side when validating
> repository configuration and how your jira url look like? Currently there is no
> special tracing in the repository validator code and we'll need to add
> something there.
> 

Message is 'Internal Server Error. Please contact your Jira administrator.', like in the subject.
And 'Jira Client' is 'Jira Client' from ALM Works http://almworks.com/jiraclient/overview.html
Comment 5 Eugene Kuleshov CLA 2007-09-13 12:17:59 EDT
Ok. What jira url you are using in connector and how url look like if you access jira instance from the web browser? I assume you have provided valid user credentials in JIRA repository configuration?

Also, is this a private repository or it is possible for us to access it? In any case, do you have access to jira logs? It may explain what happens on the server right away, if we can take a pick at those logs. Right now I can't reproduce this issue on local jira instance of the same version.
Comment 6 Max CLA 2007-09-14 07:48:15 EDT
(In reply to comment #5)
> Ok. What jira url you are using in connector and how url look like if you
> access jira instance from the web browser? I assume you have provided valid
> user credentials in JIRA repository configuration?
> 
> Also, is this a private repository or it is possible for us to access it? In
> any case, do you have access to jira logs? It may explain what happens on the
> server right away, if we can take a pick at those logs. Right now I can't
> reproduce this issue on local jira instance of the same version.
> 

it's a private repository.
im using http://jira.***.***.com connection url, and it bouncing me to http://jira.***.***.com/secure/Dashboard.jspa then I use browser.

Finally i managed to intercept request and response from MyLyn and Jira.
Request
POST http://jira.***.***.com/rpc/soap/jirasoapservice-v2 HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
User-Agent: Axis/1.3
Host: jira.gslb.db.com
Proxy-Connection: Keep-Alive
Content-Length: 493

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.rpc.jira.atlassian.com"><in0 xsi:type="xsd:string">***</in0><in1 xsi:type="xsd:string">***</in1></ns1:login></soapenv:Body></soapenv:Envelope>

Response
HTTP/1.1 500 Internal Error
Date: Fri, 14 Sep 2007 11:29:22 GMT
Content-Type: text/html
Proxy-Connection: close
Via: 1.0 *** (NetCache NetApp/6.0.4P1D1)

<html><head><title>Error</title></head>
<body><h2>Error</h2>
InterScan HTTP Version 3.81-Build_1022 $Date: 12/19/2003 17:51:0017$</p>
Connecting to jira.***.***.com: Host not found</p>
</body></html>

I've also intercepted request and response from Jira Client, which is connecting sucesefylly to Jira

Request
POST /rpc/soap/jirasoapservice-v2 HTTP/1.1
SOAPAction: ""
Accept-Encoding: gzip, deflate
User-Agent: Jakarta Commons-HttpClient/3.0
Host: ***.***.db.com
Content-Length: 491
Content-Type: text/xml; charset=utf-8

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:login xmlns:ns1="urn:jira" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<in0 xsi:type="xsd:string">***</in0>
<in1 xsi:type="xsd:string">***</in1>
</ns1:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response
HTTP/1.1 200 OK
Date: Fri, 14 Sep 2007 11:40:33 GMT
Server: Apache/1.3.34 (Win32) mod_jk/1.2.6
Transfer-Encoding: chunked
Content-Type: text/xml;charset=utf-8

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:loginResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:jira"><loginReturn xsi:type="xsd:string">***</loginReturn></ns1:loginResponse></soapenv:Body></soapenv:Envelope>

I see that the main difference between working and non working request are in POST header
POST http://jira.***.***.com/rpc/soap/jirasoapservice-v2 HTTP/1.1 M(MyLyn)
POST /rpc/soap/jirasoapservice-v2 HTTP/1.1 (Jira Client)
Comment 7 Eugene Kuleshov CLA 2007-09-14 09:38:03 EDT
(In reply to comment #6)
> POST http://jira.***.***.com/rpc/soap/jirasoapservice-v2 HTTP/1.1 M(MyLyn)
> POST /rpc/soap/jirasoapservice-v2 HTTP/1.1 (Jira Client)

I don't think we can control those headers. We are using Axis library as per JIRA remoting docs.

What puzzled me is the response we've got. It doesn't look like it is created by JIRA, but some kind of "smart" proxy or web server frontend:

Proxy-Connection: close
Via: 1.0 *** (NetCache NetApp/6.0.4P1D1)

<html><head><title>Error</title></head>
<body><h2>Error</h2>
InterScan HTTP Version 3.81-Build_1022 $Date: 12/19/2003 17:51:0017$</p>
Connecting to jira.***.***.com: Host not found</p>
</body></html>

Can you please check your JIRA setup to confirm that.
Comment 8 Steffen Pingel CLA 2007-09-14 11:10:44 EDT
If I capture repository validation against mylyn.eclipse.org I get the following request which does not use the absolute URL:

POST /jira-enterprise-3.9/rpc/soap/jirasoapservice-v2 HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
User-Agent: Axis/1.3
Host: mylyn.eclipse.org
Content-Length: 469

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body>
...
Comment 9 Max CLA 2007-09-14 11:18:20 EDT
(In reply to comment #7)
> (In reply to comment #6)
> > POST http://jira.***.***.com/rpc/soap/jirasoapservice-v2 HTTP/1.1 M(MyLyn)
> > POST /rpc/soap/jirasoapservice-v2 HTTP/1.1 (Jira Client)
> 
> I don't think we can control those headers. We are using Axis library as per
> JIRA remoting docs.
> 
> What puzzled me is the response we've got. It doesn't look like it is created
> by JIRA, but some kind of "smart" proxy or web server frontend:
> 
> Proxy-Connection: close
> Via: 1.0 *** (NetCache NetApp/6.0.4P1D1)
> 
> <html><head><title>Error</title></head>
> <body><h2>Error</h2>
> InterScan HTTP Version 3.81-Build_1022 $Date: 12/19/2003 17:51:0017$</p>
> Connecting to jira.***.***.com: Host not found</p>
> </body></html>
> 
> Can you please check your JIRA setup to confirm that.
> 

Yes, you're right - we are using proxy and this is a response for request with invalid host. I dont know why it's returning this request in my situation. But its obviously working with non absolute POST url.

Do you have any ideas regarding Steffen Pingel comment?
Comment 10 Max CLA 2007-09-14 11:27:28 EDT
(In reply to comment #8)
> If I capture repository validation against mylyn.eclipse.org I get the
> following request which does not use the absolute URL:
> 
> POST /jira-enterprise-3.9/rpc/soap/jirasoapservice-v2 HTTP/1.1
> Content-Type: text/xml; charset=utf-8
> SOAPAction: ""
> User-Agent: Axis/1.3
> Host: mylyn.eclipse.org
> Content-Length: 469
> 
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body>
> ...
> 

Which version are you using?
Im using Eclipse Version: 3.3.0 and MyLyn with version 2.0.0.v20070828-0800 download from 
download.eclipse.org/tools/mylyn/update/e3.4
download.eclipse.org/tools/mylyn/update/e3.4/extras
accordingly

How did you specified connection url?
Because then i've tried http://mylyn.eclipse.org/jira-enterprise-3.9 i got the same request
Comment 11 Eugene Kuleshov CLA 2007-09-14 11:29:55 EDT
(In reply to comment #9)
> Yes, you're right - we are using proxy and this is a response for request with
> invalid host. I dont know why it's returning this request in my situation. But
> its obviously working with non absolute POST url.
> 
> Do you have any ideas regarding Steffen Pingel comment?

I am not quite sure about this setup. Can you give us more details about it?
Perhaps your proxy sees different dns, so maybe you can check with your network admin about that or check if you can connect to your JIRA directly avoiding that proxy.
Comment 12 Max CLA 2007-09-14 11:33:25 EDT
(In reply to comment #11)
> (In reply to comment #9)
> > Yes, you're right - we are using proxy and this is a response for request with
> > invalid host. I dont know why it's returning this request in my situation. But
> > its obviously working with non absolute POST url.
> > 
> > Do you have any ideas regarding Steffen Pingel comment?
> 
> I am not quite sure about this setup. Can you give us more details about it?
> Perhaps your proxy sees different dns, so maybe you can check with your network
> admin about that or check if you can connect to your JIRA directly avoiding
> that proxy.
> 

Then i've switched off "Use global Network Connections preference" it all worked.

Sorry for leading you to confusion :((((
Comment 13 Max CLA 2007-09-14 11:39:49 EDT
It was because our proxy.
Comment 14 Steffen Pingel CLA 2007-09-14 12:17:30 EDT
> Then i've switched off "Use global Network Connections preference" it all
> worked.

Thanks you for clarifying. Absolute URLs are needed for requests that go through proxies.