Opened 9 years ago

Closed 9 years ago

#8886 closed defect (fixed)

Internal download of plugin does not work

Reported by: skyper Owned by: Don-vip
Priority: normal Milestone:
Component: Core Version:
Keywords: plugin download http https redirect github Cc:


Just to have it reported.

The internal download does not work as redirects are not supported.

Tested with both plugin versions and latest + tested.

You have to manually download and install the plugin.

org.openstreetmap.josm.plugins.PluginDownloadException: Server returned HTTP response code: 502 for URL:
	at org.openstreetmap.josm.plugins.PluginDownloadTask.realRun(
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
	at java.util.concurrent.Executors$
	at java.util.concurrent.FutureTask$Sync.innerRun(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: Server returned HTTP response code: 502 for URL:
	... 9 more

Attachments (0)

Change History (7)

comment:1 Changed 9 years ago by iandees

JOSM needs to follow redirects for the Github "releases" feature to work. Is there a reason why it doesn't or would you accept a patch to follow a redirect?

comment:2 Changed 9 years ago by stoecker

Other plugins are also downloaded from GitHub. You can supply a patch, but is it needed?

Last edited 9 years ago by stoecker (previous) (diff)

comment:3 Changed 9 years ago by iandees

The other plugins are either storing the binary in Git (which is frowned upon) or are using the deprecated Github Downloads feature. This Releases thing replaces that downloads feature.

comment:4 Changed 9 years ago by Don-vip

I agree we should support this. But I don't understand why there's a 502 error ? That's not the standard http redirect ?

comment:5 Changed 9 years ago by iandees

Not sure what's going on with the 502. When I curl it I get a 302 with a proper Location header that points to a temporary S3 URL for the real download:

< HTTP/1.1 302 Found
< Server:
< Date: Thu, 18 Jul 2013 14:48:00 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< Status: 302 Found
< Cache-Control: no-cache
< Strict-Transport-Security: max-age=2592000
< X-Frame-Options: deny
< Set-Cookie: logged_in=no;; path=/; expires=Mon, 18-Jul-2033 14:48:00 GMT; secure; HttpOnly
< Set-Cookie: dotcom_user=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Location:
< X-Runtime: 26
< Content-Length: 341
< Vary: Accept-Encoding
* Connection #0 to host left intact
<html><body>You are being <a href=";AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&amp;Expires=1374158940&amp;Signature=yCWNJxF3K6q7j9rJC7BvyDhboTE%3D">redirected</a>.</body></html>

comment:6 Changed 9 years ago by Don-vip

Component: Plugin fieldpapersCore
Keywords: plugin http https redirect github added; internal removed
Owner: changed from iandees to Don-vip
Status: newassigned

comment:7 Changed 9 years ago by Don-vip

Resolution: fixed
Status: assignedclosed

In 6073/josm:

fix #8886 - Allow to download plugin jars redirected from https to http, like those hosted on github

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.