| 1 | | It seems to be working ''okay'', i.e., one manages to load images w/o the OSM password being sent. |
| 2 | | |
| 3 | | The problem I experienced w/ r9312 and the WMS from comment:2 is in the context of parallel image loading: |
| 4 | | 1. 3 WMS requests are fired and executed |
| 5 | | 2. All 3 obtain HTTP 401 |
| 6 | | 3. The first one requests the saved credentials from the preferences (I entered+saved them while adding the WMS layer). It registers `credentialsTried` (in `org/openstreetmap/josm/io/auth/DefaultAuthenticator.java:55`, which is not host specific!), obtains the credentials from the preferences and loads the image |
| 7 | | 4. The 2nd and 3rd request however reach `credentialsTried` already set from the first host. This causes 2 credential dialogs to be shown at `org/openstreetmap/josm/io/auth/AbstractCredentialsAgent.java:46` |
| 8 | | So two credential dialogs are shown despite having the correct credentials set in the preferences. |
| 9 | | |
| 10 | | To be done: |
| 11 | | * make `org.openstreetmap.josm.io.auth.DefaultAuthenticator#credentialsTried` host aware |
| 12 | | * somehow fix this parallel request issue |
| | 1 | See #7122. |