Opened 3 years ago

Last modified 3 years ago

#22821 closed defect

Unable to update plugins hosted on GitHub because of redirects — at Version 1

Reported by: gaben Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: plugin update redirect Cc:

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Download pt_assistant plugin from GitHub which is not the latest one, e.g https://github.com/JOSM/pt_assistant/releases/tag/v2.1.15
  2. Move it to the JOSM's plugin folder
  3. Launch JOSM, open settings, go to Plugins tab, hit Download list button
  4. Finally, click Update plugins button

What is the expected result?

Plugins updated without an issue.

What happens instead?

A dialog pops up:

Please provide any additional information below. Attach a screenshot if possible.

I experienced the same with continuos-download plugin.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-14 22:49:24 +0100 (Tue, 14 Mar 2023)
Build-Date:2023-03-15 02:30:57
Revision:18693
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18693 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro for Workstations 2009 (19045)
Memory Usage: 1128 MB / 7266 MB (427 MB allocated, but free)
Java version: 1.8.0_361-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1250
System property sun.jnu.encoding: Cp1250
Locale info: en_HU
Numbers with default locale: 1234567890 -> 1234567890

Plugins:
+ pt_assistant (2.1.15-16-gad4605c)
(...)
2023-03-16 18:16:55.933 SEVERE: org.openstreetmap.josm.plugins.PluginDownloadException: java.io.IOException: Too many redirects to the download URL detected. Aborting.. Cause: java.io.IOException: Too many redirects to the download URL detected. Aborting.
org.openstreetmap.josm.plugins.PluginDownloadException: java.io.IOException: Too many redirects to the download URL detected. Aborting.
        at org.openstreetmap.josm.plugins.PluginDownloadTask.download(PluginDownloadTask.java:147)
        at org.openstreetmap.josm.plugins.PluginDownloadTask.realRun(PluginDownloadTask.java:175)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Too many redirects to the download URL detected. Aborting.
        at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:197)
        at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:124)
        at org.openstreetmap.josm.plugins.PluginDownloadTask.download(PluginDownloadTask.java:128)
        ... 8 more

2023-03-16 18:16:55.945 WARNING: Update plugins - <html>Downloading the following plugin has <strong>failed</strong>:<ul><li>pt_assistant</li></ul><br>Error message(untranslated): java.io.IOException: Too many redirects to the download URL detected. Aborting.</html>

Change History (2)

by gaben, 3 years ago

Attachment: JOSM_plugin_redirect.png added

comment:1 by gaben, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.