Modify

Opened 23 months ago

Closed 8 months ago

#6562 closed enhancement (fixed)

loading of default imagery sources sometimes fails

Reported by: bastiK Owned by: team
Priority: normal Component: Core
Version: Keywords: imagery
Cc:

Description (last modified by skyper)

[4198] broke the loading of default imagery sources:

Index: trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java
===================================================================
--- a/trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java
+++ b/trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java
@@ -836,6 +836,6 @@
 
     public static void initialize() {
+        ImageryLayerInfo.instance.loadDefaults(false);
         ImageryLayerInfo.instance.load();
-        ImageryLayerInfo.instance.loadDefaults(false);
         OffsetBookmark.loadBookmarks();
         Main.main.menu.imageryMenu.refreshImageryMenu();

In combination with

    public void load() {
        layers.clear();

this discards the layers added in loadDefaults(false).

Attachments (0)

Change History (8)

comment:1 Changed 23 months ago by bastiK

In [4216/josm]:

see #6562 - loading of default imagery sources broken

comment:2 Changed 23 months ago by bastiK

[4216] should fix the problem

comment:3 Changed 23 months ago by stoecker

Your patch kills the attribution copy function, as this need the defaults to be loaded before the defined entries. Can't you simply move the clear() to initialize where it belongs?

comment:4 Changed 23 months ago by stoecker

Sorry, ignore last comment. Need to wake up first before I can read patches :-)

comment:5 Changed 23 months ago by bastiK

  • Resolution set to fixed
  • Status changed from new to closed

comment:6 Changed 22 months ago by skyper

I still have this issue from time to time due to bad connections. Strange the connection is much better with ssl than without !

Once the default list is not downloaded on your first run of JOSM and the connections fails the list will stay empty until user manually adds servers.

Would be nice if JOSM would add the default list if the list is empty (with an option to leave it empty if intended ?).

Thanks.

comment:7 Changed 22 months ago by skyper

  • Priority changed from critical to normal
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Summary changed from loading of default imagery sources broken in current release to loading of default imagery sources sometimes fails
  • Type changed from defect to enhancement

comment:8 Changed 8 months ago by skyper

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from reopened to closed

Did not happen for a long time

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.