Proxy setting in Jhelioviewer

Bug #906788 reported by vema
270
This bug affects 3 people
Affects Status Importance Assigned to Milestone
JHelioviewer
In Progress
High
Andre Dau

Bug Description

I am using windows xp SP-2003 which is in a local domain and having local server proxy user name
and password. My problem is when i am running Jhelioviewer without(broadband connection) proxy every thing is fine but with
proxy, connection problems are arising and not able to get any image. Can any body help where to set these proxy settings
inside jhelioviewer so that my browsing will be secure.

Andre Dau (andre-dau)
Changed in jhelioviewer:
status: New → Confirmed
importance: Undecided → High
Andre Dau (andre-dau)
Changed in jhelioviewer:
assignee: nobody → Andre Dau (andre-dau)
Revision history for this message
Andre Dau (andre-dau) wrote :

Hi,
I just finished a first working version of proxy support.
Anyone who wants to try it out is very welcome to do so!
The problem is, that I cannot try it out because I am not behind a proxy. So if there are any problems, please let me know!

Binaries are available here:
http://home.in.tum.de/~dau/jhv-proxy/

The source code branch is available under:
lp:~andre-dau/jhelioviewer/proxy

Best regards,
Andre

visibility: private → public
Revision history for this message
vema (vema1818) wrote : Re: [Bug 906788] Re: Proxy setting in Jhelioviewer

Dear Andre Dau,

Thank you for solving the issue and reporting me. The option of proxy
appears in the window. The problem is that it is not able to download any
libraries from kakadu etc resulting fatal errors. It is able to create
directories in default (C:\Documents and settings\username\Jhelioviewer)
irrespetive of its installed
directory.

With hard work, I installed the libraries one by one in the directories
within Jhelioviewer path(default) and then it works downloading images.

But the problem persists to download kakadu etc libraries before giving
proxy.

On clicking, it should ask user interest directory and then in that it
should create local directories and then ask the proxy settings and then
fetch the kakadu etc libraries to complete the proper installation. That
can be user friendly version as I think.

regards
Vema.

On Tue, Apr 10, 2012 at 7:02 AM, Andre Dau <email address hidden>wrote:

> ** Changed in: jhelioviewer
> Status: New => Confirmed
>
> ** Changed in: jhelioviewer
> Importance: Undecided => High
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/906788
>
> Title:
> Proxy setting in Jhelioviewer
>
> Status in JHelioviewer - JPEG2000 Visualization Software:
> Confirmed
>
> Bug description:
> I am using windows xp SP-2003 which is in a local domain and having local
> server proxy user name
> and password. My problem is when i am running Jhelioviewer
> without(broadband connection) proxy every thing is fine but with
> proxy, connection problems are arising and not able to get any image. Can
> any body help where to set these proxy settings
> inside jhelioviewer so that my browsing will be secure.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/jhelioviewer/+bug/906788/+subscriptions
>

--
With kind regards
*********************************************
Vema Reddy Panditi
Research Fellow
Udaipur Solar Observatory
Physical Research Laboratory
Udaipur, Rajasthan, India
**********************************************

Revision history for this message
Andre Dau (andre-dau) wrote :

Dear Vema,
do I understand correctly that you could not load images through the proxy before but now you can, meaning the proxy settings worked for you (except for the startup issue)?
I just thought about how to solve the startup problem. Asking the user every time is not good since most people do not need this setting and may find it annoying. Asking once is also not a good solution, since the user might be in a network without proxy at first but then relocates to a network with proxy (eg from home to work/university).
For now the best thing I came up with was to allow JHelioviewer to start even when no libraries are loaded. Of course JHelioviewer will not work, but at least you can go to the Options->Preferences dialog, set the proxy and then restart JHelioviewer. I added an appropriate error message which tells the user what to do in case no libraries could be loaded.
I uploaded a Windows binary to
http://home.in.tum.de/~dau/jhv-proxy/Windows-jhv-2.2.0.478.exe

What do you think? Is this a satisfactory solution? Does it work at all for you?

Best regards,
Andre

Changed in jhelioviewer:
status: Confirmed → In Progress
Revision history for this message
Stephen Jessop (jes-5) wrote :

Hi Andre

I hope you won't get two of these any way installed the test program and entered our proxy and port I think it worked as I got there is a later version do you want to down load. I also got a number of video errors Open GL, BoxMP4 and another. I don't think I have OpenGL installed, will check install, run JHelioviewer again and let you know.

Regards

Steve

Revision history for this message
Andre Dau (andre-dau) wrote :

It seems JHV manage to download some of the libraries. As I see it downloading the exe-files failed. Maybe the proxy does not allow downloading exe-files?
Furthermore JHV cannot connect to port 8090. Does your proxy allow connections through port 8090?

Revision history for this message
Stephen Jessop (jes-5) wrote :

Hello Andre,

I think the .exe files may be downloaded now but need to speak to my manager about port 8090. Are the exe files dowloaded every time the program is run or just the once when it is first run.

Revision history for this message
Andre Dau (andre-dau) wrote :

Hi Stephan,
binaries need to be downloaded only once (unless we change them in the future of course). There might be an update of binaries in the next release. But you can always download them manually here (this is were jhv gets its binaries):
http://jhelioviewer.org/libjhv/
You need to place them in the JHelioviewer/Lib folder. But for now you have all binaries wich are needed.

There is an additional issue however with using JHV behind a proxy. As was explained to me, the proxy server needs to be able to deal with chunked responses (included in the HTML/1.1 specification). And even then it is unclear if this will work, since JHV generates rather unusual HTTP GET Requests which your proxy might not be able to handle correctly.

If you try it out, please tell me how it went.

Regards,
Andre

Revision history for this message
Stephen Jessop (jes-5) wrote :

Ok , Thanks Andre, I will have a word with my manager to see if port 8090 can be opened or if it is open even.

Regards

Steve

Revision history for this message
vema (vema1818) wrote :

Dear Andre,

Now it seems working. At first attempt, with errors the window will open to
provide proxy options in preferences. Then quit and restart, it is able to
download libraries like mcv100.dll, kakadu etc except mp4box tool and
OpenGl. These errors may be ignored as they are specific to me only. Thanks
for solving the problem with proxy.

regards
Vema.

On Wed, Apr 11, 2012 at 4:03 PM, Andre Dau <email address hidden>wrote:

> Dear Vema,
> do I understand correctly that you could not load images through the proxy
> before but now you can, meaning the proxy settings worked for you (except
> for the startup issue)?
> I just thought about how to solve the startup problem. Asking the user
> every time is not good since most people do not need this setting and may
> find it annoying. Asking once is also not a good solution, since the user
> might be in a network without proxy at first but then relocates to a
> network with proxy (eg from home to work/university).
> For now the best thing I came up with was to allow JHelioviewer to start
> even when no libraries are loaded. Of course JHelioviewer will not work,
> but at least you can go to the Options->Preferences dialog, set the proxy
> and then restart JHelioviewer. I added an appropriate error message which
> tells the user what to do in case no libraries could be loaded.
> I uploaded a Windows binary to
> http://home.in.tum.de/~dau/jhv-proxy/Windows-jhv-2.2.0.478.exe
>
> What do you think? Is this a satisfactory solution? Does it work at all
> for you?
>
> Best regards,
> Andre
>
> ** Changed in: jhelioviewer
> Status: Confirmed => In Progress
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/906788
>
> Title:
> Proxy setting in Jhelioviewer
>
> Status in JHelioviewer - JPEG2000 Visualization Software:
> In Progress
>
> Bug description:
> I am using windows xp SP-2003 which is in a local domain and having local
> server proxy user name
> and password. My problem is when i am running Jhelioviewer
> without(broadband connection) proxy every thing is fine but with
> proxy, connection problems are arising and not able to get any image. Can
> any body help where to set these proxy settings
> inside jhelioviewer so that my browsing will be secure.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/jhelioviewer/+bug/906788/+subscriptions
>

--
With kind regards
*********************************************
Vema Reddy Panditi
Research Fellow
Udaipur Solar Observatory
Physical Research Laboratory
Udaipur, Rajasthan, India
**********************************************

Revision history for this message
Stephen Jessop (jes-5) wrote :

Hi Andre,

Spoken to my manager about port 8090 and he is needing more info as to what the program's requirement to be able to connect to the site, what the port is used for. Got a bit technical and a bit over my head, would you be able to give me this info at all please.

Regards

Steve

Revision history for this message
Andre Dau (andre-dau) wrote :

Unfortunately, I am no expert in this regard either. What kind of information does he need?
To summarize (I hope I get it right):
JHV sends a HTTP GET request to helioviewer.org to retrieve the url of the jpx/jp2 file on the server.
THe response from the server uses JSON.
Then JHV establishes a permanent connection to the server using the given url to the jpx/jp2 file. using port 8090
This is done via a GET request. Used headers are
Host: helioviewer.org:8090
Cache-Control: no-cache
Connection: Keep-Alive

The server responds with chunked responses with the following headers:
Cache-Control: no-cache
Transfer-Encoding: chunked
Content-Type: image/jpp-stream

So one needs persistent connections and the ability to decode chunked responses and port 8090 in order for JHV to work properly.

Hope this helps!,

Revision history for this message
Stephen Jessop (jes-5) wrote :

Thanks Andre,

I will pass on your information, I am getting no errors now when JHV starts except it keeps asking for a password but one is not needed to use the proxy. If I try to load an example though I get "An error occured while opening file! Error in the server communication: Connection refused: connect". I take it that is what port 8090 is used for to download pictures, movies etc, would connecting to the port also show a list of data available to download if I use File->Open Remote File?

Thanks for the help, once JHV opens it tells me there is a later (newer) version. If I download this and install, would I be back to square one and not able to connect?

Revision history for this message
Andre Dau (andre-dau) wrote :

Yes, you should not download the "new" version since the proxy feature is not integrated into the offical release yet. And yes, the error message is because JHV cannot establish a connection to helioviewer.org.
The Remote file option is a bit outdated since it was not used very widely. It allows you to connect to and download files by providing the exact url yourself. This is more useful if you have your own JPIP server which is not the case for you I assume? But if you can download .jpx and .jp2 files to you hard drive you can open them as local files and JHV will work with those fine.

Revision history for this message
Andre Dau (andre-dau) wrote :

Hi Stephen,
any news regarding the proxy issue?
Best regards,
Andre

Revision history for this message
Stephen Jessop (jes-5) wrote :

Hi Andre,

I asked my manager about port 8090 but it appears there is a lot of work to get the port opened filling forms and costs are involved so this may put a stop on the use of the program. Apart from that JHV opens up and works as far as I can tell, having nor pictures or movies, I haven't been able to do much with it since either as my workload an priorities don't allow me any time. JHV is sitting on my desktop waiting for the time I have a spare minute or two to try again.

Regards

Steve Jessop

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Andre Dau
Sent: 23 April 2012 23:42
To: Mr S Jessop
Subject: [Bug 906788] Re: Proxy setting in Jhelioviewer

Hi Stephen,
any news regarding the proxy issue?
Best regards,
Andre

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/906788

Title:
  Proxy setting in Jhelioviewer

Status in JHelioviewer - JPEG2000 Visualization Software:
  In Progress

Bug description:
  I am using windows xp SP-2003 which is in a local domain and having local server proxy user name
  and password. My problem is when i am running Jhelioviewer without(broadband connection) proxy every thing is fine but with
  proxy, connection problems are arising and not able to get any image. Can any body help where to set these proxy settings
  inside jhelioviewer so that my browsing will be secure.

To manage notifications about this bug go to:
https://bugs.launchpad.net/jhelioviewer/+bug/906788/+subscriptions

Revision history for this message
Andre Dau (andre-dau) wrote :

Ok, thanks for the update!

Revision history for this message
Bodson (stanybodson) wrote :

Bonjour, Hello

I have the solution: you need to install java 6 32 bit(jre-6u24-windows-i586-s) the bug comes from java 7.
J'ai la solution : il faut installer java 6 32bit (jre-6u24-windows-i586-s) le bug vient de java 7.

Thank you
StantheBrain

Revision history for this message
David Perez-Suarez (dps-helio) wrote :

I've got same issue on my side! Port 8090 is closed. The proxy version Andre Dau provided helped me to go one step closer... but just to install the kadaku libraries. After that I've used both version (latest and proxy enabled) and I see nothing, either infinite loading (newest version) or error message about connection error (proxy version).

This is the 3rd institute where I've tried to get it working without luck :(

David

Revision history for this message
David Perez-Suarez (dps-helio) wrote :

Is there any update with this bug?

Revision history for this message
MEDOC IAS (pablo-alingery) wrote :

Hello,
Can we have an update with that ?
We have users that would like to know how to launch jhelioviewer with a proxy .

Regards,
Pablo
IAS

Revision history for this message
Jack Ireland (jack-ireland) wrote :

Hi Pablo,

The bug tracker has not recorded any progress on this. Daniel, do you
know if this issue has been looked at in newer versions of JHelioviewer,
or is there a solution somewhere else?

Thanks,

Jack

On 03/24/2015 11:21 AM, Pablo IAS wrote:
> Hello,
> Can we have an update with that ?
> We have users that would like to know how to launch jhelioviewer with a proxy .
>
> Regards,
> Pablo
> IAS
>

Revision history for this message
MEDOC IAS (pablo-alingery) wrote :

Hello,

quick update
In file user.properties I have added he following
jvm.arguments=-Dhttp.proxyHost=inf-tx50.ias.u-psud.fr -Dhttp.proxyPort=3128

Then the proxy is used to install the libraries needed.

I may have an issue with the jpip server

Revision history for this message
MEDOC IAS (pablo-alingery) wrote :

Hello,

What we ve found
2 proxy installed :

    proxy web (squid3) : seems to handle only web request (ports 80, 443, etc)
    in file user.properties I ve added that
    jvm.arguments=-Dhttp.proxyHost=proxy.ias.u-psud.fr -Dhttp.proxyPort=3128
    Results:
    The libraries are installed BUT the data do not flow through the proxy

    proxy SOCKS : handles every thing (especially port 8080 used by our jhelioviewer server )
    in file user.properties I ve added that
    jvm.arguments=-DsocksProxyHost=proxySocks.ias.u-psud.fr -DsocksProxyPort=1080
    Results:
    The libraries are installed , the data DO flow through the proxy

Regards,
Pablo
IAS

Revision history for this message
Juan Pablo (jp-garcia-ortiz) wrote :

Hi Pablo,

good to know that, very interesting! The way the JPIP server
communicates (chunked transfer encoding, no caching enabled...) makes
quite difficult that a normal Web proxy server (like squid3) allows a
normal data flow through it... however a low level proxy, like a SOCKs
one, might allow it, as it does indeed in your tests.

Thanks.
JP

2015-03-25 13:41 GMT-04:00 Pablo IAS <email address hidden>:
> Hello,
>
> What we ve found
> 2 proxy installed :
>
> proxy web (squid3) : seems to handle only web request (ports 80, 443, etc)
> in file user.properties I ve added that
> jvm.arguments=-Dhttp.proxyHost=proxy.ias.u-psud.fr -Dhttp.proxyPort=3128
> Results:
> The libraries are installed BUT the data do not flow through the proxy
>
> proxy SOCKS : handles every thing (especially port 8080 used by our jhelioviewer server )
> in file user.properties I ve added that
> jvm.arguments=-DsocksProxyHost=proxySocks.ias.u-psud.fr -DsocksProxyPort=1080
> Results:
> The libraries are installed , the data DO flow through the proxy
>
> Regards,
> Pablo
> IAS
>
> --
> You received this bug notification because you are a member of
> Helioviewer, which is subscribed to the bug report.
> https://bugs.launchpad.net/bugs/906788
>
> Title:
> Proxy setting in Jhelioviewer
>
> Status in JHelioviewer - JPEG2000 Visualization Software:
> In Progress
>
> Bug description:
> I am using windows xp SP-2003 which is in a local domain and having local server proxy user name
> and password. My problem is when i am running Jhelioviewer without(broadband connection) proxy every thing is fine but with
> proxy, connection problems are arising and not able to get any image. Can any body help where to set these proxy settings
> inside jhelioviewer so that my browsing will be secure.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/jhelioviewer/+bug/906788/+subscriptions

To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.