abstratt / eclipsegraphviz

EclipseGraphviz makes it easier to integrate Graphviz into Eclipse applications.
Eclipse Public License 1.0
23 stars 13 forks source link

Update site location not working behind corporate proxy #6

Closed jgsuess closed 7 years ago

jgsuess commented 7 years ago

in Version: Neon.2 Release (4.6.2) Build id: 20161208-0600 both versions of setting up the tool (marketplace, direct jar URL) do not work.

abstratt commented 7 years ago

Please provide the errors logged during a failed install. I just tried it and it worked fine for me, no errors whatsoever (even though it was quite slow).

image

abstratt commented 7 years ago

@jgsuess Saw your comment on the Marketplace:

This plugin is offered on the marketplace using jar:// URL that ends in a zip file for the site. Most corporate proxies will block this access from automated user agents. This probably means this plugin cannot be installed in most major companies. To address this, the project might want to stage a regular P2 repository layout.

JAR URLs are resolved inside the JVM, your proxy will not see a request for that URL, but for the encapsulated URL only. So, for this JAR URL:

jar:http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip!/

the actual URL Eclipse will try to hit is:

http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip

Did you manage to access the error log? (Window > View > Error Log, or /.metadata/.log)? That would help in understanding what is going on.

Also, if you are having connectivity issues, a workaround is to download the update site (http URL above), and install EclipseGraphviz from the locally download (zipped) update site.

jgsuess commented 7 years ago

So the url being resolved is not for a zip archive, the response does not identify the content type as a zip, and the data being retrieved is not a zip file? Under any of those circumstance the proxy would probably block. What I am trying to say is that a zip file provided over http that is not on a whitelist is likely to be blocked.

I will provide detailed error once at work.

Thanks for the prompt response!

JG

On Fri, 7 Apr 2017 00:11 Rafael Chaves notifications@github.com wrote:

@jgsuess https://github.com/jgsuess Saw your comment on the Marketplace:

This plugin is offered on the marketplace using jar:// URL that ends in a zip file for the site. Most corporate proxies will block this access from automated user agents. This probably means this plugin cannot be installed in most major companies. To address this, the project might want to stage a regular P2 repository layout.

JAR URLs are resolved inside the JVM, your proxy will not see a request for that URL, but for the encapsulated URL only. So, for this JAR URL:

jar: http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip!/

the actual URL Eclipse will try to hit is:

http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip

Did you manage to access the error log? (Window > View > Error Log, or /.metadata/.log)? That would help in understanding what is going on.

Also, if you are having connectivity issues, a workaround is to download the update site (http URL above), and install EclipseGraphviz from the locally download (zupped) update site.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/abstratt/eclipsegraphviz/issues/6#issuecomment-292186516, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvxkXixNVnOfa3CtQnftadCq7HtyqjXks5rtPKFgaJpZM4M03Fd .

abstratt commented 7 years ago

@jgsuess It is a zip file:

$ curl -vI http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip
*   Trying 184.73.235.178...
* Connected to repository-textuml.forge.cloudbees.com (184.73.235.178) port 80 (#0)
> HEAD /snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip HTTP/1.1
> Host: repository-textuml.forge.cloudbees.com
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Thu, 06 Apr 2017 20:00:51 GMT
Date: Thu, 06 Apr 2017 20:00:51 GMT
< Server: Apache/2.4.10 (Unix) SVN/1.8.10
Server: Apache/2.4.10 (Unix) SVN/1.8.10
< Last-Modified: Thu, 06 Apr 2017 14:06:59 GMT
Last-Modified: Thu, 06 Apr 2017 14:06:59 GMT
< ETag: "16f30-54c8005c3e678"
ETag: "16f30-54c8005c3e678"
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Content-Length: 94000
Content-Length: 94000
< Content-Type: application/zip
Content-Type: application/zip

< 
* Connection #0 to host repository-textuml.forge.cloudbees.com left intact

Also, if I grab the file:

curl -v http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip > test.zip

unzip -t test.zip 
Archive:  test.zip
    testing: features/                OK
    testing: plugins/                 OK
    testing: artifacts.xml.xz         OK
    testing: content.xml.xz           OK
    testing: artifacts.jar            OK
    testing: content.jar              OK
    testing: features/com.abstratt.eclipsegraphviz.feature_2.2.201606.201704061406.jar   OK
    testing: p2.index                 OK
    testing: plugins/com.abstratt.graphviz_2.2.201606.201704061406.jar   OK
    testing: plugins/com.abstratt.imageviewer_2.2.201606.201704061406.jar   OK
    testing: plugins/com.abstratt.pluginutils_2.2.201606.201704061406.jar   OK
    testing: plugins/com.abstratt.content_2.2.201606.201704061406.jar   OK
    testing: plugins/com.abstratt.graphviz.ui_2.2.201606.201704061406.jar   OK
No errors detected in compressed data of test.zip.
jgsuess commented 7 years ago

And so it probably gets blocked. I assume it is the hosting location that is the issue. Many proxy Configs in large companies block odd combinations of UA and destination. One way to block backdoor downloads from their perspective.

On Fri, 7 Apr 2017 06:02 Rafael Chaves notifications@github.com wrote:

@jgsuess https://github.com/jgsuess It is a zip file:

$ curl -vI http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip

  • Trying 184.73.235.178...
  • Connected to repository-textuml.forge.cloudbees.com (184.73.235.178) port 80 (#0)

    HEAD /snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip HTTP/1.1 Host: repository-textuml.forge.cloudbees.com User-Agent: curl/7.47.0 Accept: /

    < HTTP/1.1 200 OK HTTP/1.1 200 OK < Date: Thu, 06 Apr 2017 20:00:51 GMT Date: Thu, 06 Apr 2017 20:00:51 GMT < Server: Apache/2.4.10 (Unix) SVN/1.8.10 Server: Apache/2.4.10 (Unix) SVN/1.8.10 < Last-Modified: Thu, 06 Apr 2017 14:06:59 GMT Last-Modified: Thu, 06 Apr 2017 14:06:59 GMT < ETag: "16f30-54c8005c3e678" ETag: "16f30-54c8005c3e678" < Accept-Ranges: bytes Accept-Ranges: bytes < Content-Length: 94000 Content-Length: 94000 < Content-Type: application/zip Content-Type: application/zip

<

  • Connection #0 to host repository-textuml.forge.cloudbees.com left intact

Also, if I grab the file:

curl -v http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip > test.zip

unzip -t test.zip Archive: test.zip testing: features/ OK testing: plugins/ OK testing: artifacts.xml.xz OK testing: content.xml.xz OK testing: artifacts.jar OK testing: content.jar OK testing: features/com.abstratt.eclipsegraphviz.feature_2.2.201606.201704061406.jar OK testing: p2.index OK testing: plugins/com.abstratt.graphviz_2.2.201606.201704061406.jar OK testing: plugins/com.abstratt.imageviewer_2.2.201606.201704061406.jar OK testing: plugins/com.abstratt.pluginutils_2.2.201606.201704061406.jar OK testing: plugins/com.abstratt.content_2.2.201606.201704061406.jar OK testing: plugins/com.abstratt.graphviz.ui_2.2.201606.201704061406.jar OK No errors detected in compressed data of test.zip.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/abstratt/eclipsegraphviz/issues/6#issuecomment-292299038, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvxkS5BxXR4MQqreMhzjyI21pHcI0Gjks5rtUTegaJpZM4M03Fd .

abstratt commented 7 years ago

@jgsuess That is unfortunate. If you confirm you can't download the zip file not even directly via the browser (how do you get Eclipse? Would .tgz resolve the issue?), you can try this other URL:

https://github.com/abstratt/eclipsegraphviz/releases/download/2.2.201606.201704061406/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip

which is a GitHub "release" I created to get you unstuck.

jgsuess commented 7 years ago

Eclipse downloads are whitelisted. In particular, the delivery server DNS name. I'm unsure what UA string eclipse uses when accessing the outside. I would need that to reproduce.

On Fri, 7 Apr 2017 06:29 Rafael Chaves notifications@github.com wrote:

@jgsuess https://github.com/jgsuess That is unfortunate. If you confirm you can't download the zip file not even directly via the browser (how do you get Eclipse? Would .tgz resolve the issue?), you can try this other URL:

https://github.com/abstratt/eclipsegraphviz/releases/download/2.2.201606.201704061406/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip

which is a GitHub "release" I created to get you unstuck.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/abstratt/eclipsegraphviz/issues/6#issuecomment-292307655, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvxkfUUt2SsGrDatDUPuasl1vxutgjRks5rtUslgaJpZM4M03Fd .

abstratt commented 7 years ago

I believe it uses ECF, which I believe uses Apache HTTP client. But does the UA matter? Are you able to grab the .zip file using a browser?

jgsuess commented 7 years ago

Just arrived at work 6.46 am. Booting up and will let you know in about 10 minutes.

On Fri, 7 Apr 2017 06:44 Rafael Chaves notifications@github.com wrote:

I believe it uses ECF, which I believe uses Apache HTTP client. But does the UA matter? Are you able to grab the .zip file using a browser?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/abstratt/eclipsegraphviz/issues/6#issuecomment-292313109, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvxkUHihUWPjLTVnz_TdZSUN_Er2cz9ks5rtU6cgaJpZM4M03Fd .

jgsuess commented 7 years ago

I cannot get the archive using curl, but can get it using the browser.

jgsuess commented 7 years ago

but eclipse reports: Communication with repository at jar:http://repository-textuml.forge.cloudbees.com/snapshot/com/abstratt/eclipsegraphviz/com.abstratt.eclipsegraphviz.repository/2.2.201606/com.abstratt.eclipsegraphviz.repository-2.2.201606.zip!/content.xml.xz failed. root cause Caused by: java.net.SocketTimeoutException: Read timed out

abstratt commented 7 years ago

Oh, that I have seen once in a while as well. At least you have the workaround of downloading the .zip file and installing from the archived update site - right?

jgsuess commented 7 years ago

Yes, that works reliably. But I think this issue might turn people off an otherwise nice tool. a.k.a. I have to do what to install it? You must be kidding...

On Fri, 7 Apr 2017 at 09:05 Rafael Chaves notifications@github.com wrote:

Oh, that I have seen once in a while as well. At least you have the workaround of downloading the .zip file and installing from the archived update site - right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/abstratt/eclipsegraphviz/issues/6#issuecomment-292354427, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvxkQd0j4JmefPgcY7e0Jh-Sls_OpaNks5rtW-egaJpZM4M03Fd .

abstratt commented 7 years ago

@jgsuess Thanks for confirming it.

Agree that it is not ideal, but it is what we have for the moment with our current build infrastructure.

I added to the readme an installation method number 3 explaining the problem and how to work around it. Thanks for helping in understanding it.

abstratt commented 2 years ago

Update site now is http based and should work behind a firewall/proxy as well.