[opensuse-buildservice] osc co doesn't work while using cntlm proxy
Hi All, I am using cntlm (version 0.35.1-1) proxy to talk to outside network. With the proxy configured properly, I am able to run: " osc log prjname/pkgname" command and get the expected output. But, when I run "osc co prjname/pkgname" command, I get Server returned an error: HTTP Error 502: Proxy Error ( The HTTP message includes an unsupported header or an unsupported combination of headers. ) I tried the above osc command with "-H" flag to check the HTTP headers. The failure occurs the first time, osc tries to download a file. From what I noticed, the header the proxy server is having a problem with is: Content-Disposition: attachment; filename = "kiwi.spec" Has anybody seen this problem? Is there a known workaround? Is there a different proxy server package (in place of cntlm) I can try, which works with osc? Thank you Praveen N�����r��y隊Z)z{.���Wlz��qﮞ˛���m�)z{.��+�Z+i�b�*'jW(�f�vǦj)h���Ǜ�)]���Ǿ��i�������
Am Dienstag, 9. November 2010, 21:00:59 schrieb Praveen_Paladugu@dell.com:
Hi All,
I am using cntlm (version 0.35.1-1) proxy to talk to outside network. With the proxy configured properly, I am able to run:
" osc log prjname/pkgname" command and get the expected output.
But, when I run
"osc co prjname/pkgname" command, I get
Server returned an error: HTTP Error 502: Proxy Error ( The HTTP message includes an unsupported header or an unsupported combination of headers. )
I tried the above osc command with "-H" flag to check the HTTP headers. The failure occurs the first time, osc tries to download a file. From what I noticed, the header the proxy server is having a problem with is:
Content-Disposition: attachment; filename = "kiwi.spec"
Has anybody seen this problem? Is there a known workaround?
This header is for nicer web browser support when downloading a binary file. However, it looks like it is not really needed with the browsers I have tested. So we may can consider to remove it fro OBS 2.2. You can remove the header on your api server in app/controllers/build_controller.rb and test if it works. thanks adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Adrian, I removed the following line from the definition of headers.update in /srv/www/obs/api/app/controllers/build_controller.rb file 'Content-Disposition' => %(attachment; filename="#params[:filename]}"), This change doesn't seem to affect the headers returned to the "osc co" request. Also, I have access to two versions of OBS. One running 2.1.0 and the other running 1.6.0. The response from the 2.1.0 version has " Content-Disposition: attachment" in the headers and the version 1.6.0 has ' Content-Disposition: attachment; filename = "kiwi.spec" ' (along with the filename) in the response. The proxy server doesn't seem to have a problem with version 2.1.0. But the response from 1.6.0 is the one failing. Weird of all, both the versions 1.6.0 and 2.1.0 have the same line for "Content-Disposition" header in build_controller.rb. Thank you Praveen -----Original Message----- From: Adrian Schröter [mailto:adrian@suse.de] Sent: Wednesday, November 10, 2010 9:09 AM To: opensuse-buildservice@opensuse.org Cc: Paladugu, Praveen Subject: Re: [opensuse-buildservice] osc co doesn't work while using cntlm proxy Am Dienstag, 9. November 2010, 21:00:59 schrieb Praveen_Paladugu@dell.com:
Hi All,
I am using cntlm (version 0.35.1-1) proxy to talk to outside network. With the proxy configured properly, I am able to run:
" osc log prjname/pkgname" command and get the expected output.
But, when I run
"osc co prjname/pkgname" command, I get
Server returned an error: HTTP Error 502: Proxy Error ( The HTTP message includes an unsupported header or an unsupported combination of headers. )
I tried the above osc command with "-H" flag to check the HTTP headers. The failure occurs the first time, osc tries to download a file. From what I noticed, the header the proxy server is having a problem with is:
Content-Disposition: attachment; filename = "kiwi.spec"
Has anybody seen this problem? Is there a known workaround?
This header is for nicer web browser support when downloading a binary file. However, it looks like it is not really needed with the browsers I have tested. So we may can consider to remove it fro OBS 2.2. You can remove the header on your api server in app/controllers/build_controller.rb and test if it works. thanks adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Mittwoch, 10. November 2010, 20:43:33 schrieb Praveen_Paladugu@dell.com:
Adrian,
I removed the following line from the definition of headers.update in /srv/www/obs/api/app/controllers/build_controller.rb file 'Content-Disposition' => %(attachment; filename="#params[:filename]}"),
This change doesn't seem to affect the headers returned to the "osc co" request.
right, that has only an effect when downloading the built packages ...
Also, I have access to two versions of OBS. One running 2.1.0 and the other running 1.6.0.
The response from the 2.1.0 version has " Content-Disposition: attachment" in the headers and the version 1.6.0 has ' Content-Disposition: attachment; filename = "kiwi.spec" ' (along with the filename) in the response.
The proxy server doesn't seem to have a problem with version 2.1.0. But the response from 1.6.0 is the one failing.
Uh, we don't support 1.6 since quite some time.... I can remember that we fixed a number of issues with proxies since then, but I would need to go through the quite long git history to find out more .... sorry, I can't remember anymore what we changed adrian
Weird of all, both the versions 1.6.0 and 2.1.0 have the same line for "Content-Disposition" header in build_controller.rb.
Thank you Praveen
-----Original Message----- From: Adrian Schröter [mailto:adrian@suse.de] Sent: Wednesday, November 10, 2010 9:09 AM To: opensuse-buildservice@opensuse.org Cc: Paladugu, Praveen Subject: Re: [opensuse-buildservice] osc co doesn't work while using cntlm proxy
Am Dienstag, 9. November 2010, 21:00:59 schrieb Praveen_Paladugu@dell.com:
Hi All,
I am using cntlm (version 0.35.1-1) proxy to talk to outside network. With the proxy configured properly, I am able to run:
" osc log prjname/pkgname" command and get the expected output.
But, when I run
"osc co prjname/pkgname" command, I get
Server returned an error: HTTP Error 502: Proxy Error ( The HTTP message includes an unsupported header or an unsupported combination of headers. )
I tried the above osc command with "-H" flag to check the HTTP headers. The failure occurs the first time, osc tries to download a file. From what I noticed, the header the proxy server is having a problem with is:
Content-Disposition: attachment; filename = "kiwi.spec"
Has anybody seen this problem? Is there a known workaround?
This header is for nicer web browser support when downloading a binary file.
However, it looks like it is not really needed with the browsers I have tested. So we may can consider to remove it fro OBS 2.2.
You can remove the header on your api server in app/controllers/build_controller.rb and test if it works.
thanks adrian
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday 09 November 2010 21:00:59 Praveen_Paladugu@dell.com wrote:
Hi All,
I am using cntlm (version 0.35.1-1) proxy to talk to outside network. With the proxy configured properly, I am able to run:
" osc log prjname/pkgname" command and get the expected output.
But, when I run
"osc co prjname/pkgname" command, I get
Server returned an error: HTTP Error 502: Proxy Error ( The HTTP message includes an unsupported header or an unsupported combination of headers. )
I tried the above osc command with "-H" flag to check the HTTP headers. The failure occurs the first time, osc tries to download a file. From what I noticed, the header the proxy server is having a problem with is:
Content-Disposition: attachment; filename = "kiwi.spec"
Has anybody seen this problem? Is there a known workaround?
Is there a different proxy server package (in place of cntlm) I can try, which works with osc?
Thank you Praveen
I can say with at least on my own private OBS 2.0.x and 2.1 with squid3 it just works TM. Hope that helps, Peter -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
P Linnell
-
Praveen_Paladugu@Dell.com