Opened 13 months ago

Last modified 13 months ago

#24034 new defect

Add {apikey} support for TIGER Roads 2023 — at Initial Version

Reported by: CAM-Gerlach Owned by: team
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: api key apikey mapkey Cc: stoecker

Description

The imagery wiki data needed an update to add the latest TIGER Roads 2023 QA overlay (as the latest listed currently is 2022), that iD has had for quite a while now. I verified the URL and existing parameters work in JSOM locally (minus apikey , which I had to temporarily hardcoded to the iD value), and added the updated TIGER Roads 2023 to the Maps of USA Country wiki page based off the previous years data with the necessary updates, cross-checking it against the previous year's config and matching parameters in iD (e.g. bounds, etc).

However, given it uses apikey since #18726 , I figured it needs an update the JOSM web service to retrieve the keys, which (understandably) I'm not able to do. And indeed, I get an error dialog (attached) when attempting to add the new, wiki-derived TIGER Roads 2023 imagery from the Imagery menu to the layer stack in JOSM. Unfortunately, the exception text is frustratingly uncopyable (might want to flip whatever flag in the dialog object controls that for easier debugging :) ) but I've manually transcribed it here as well as attaching an image:

java.lang.IllegalArgumentException: java.lang.NullPointerException: Cannot invoke "String.length()" because <parameter2> is null

To my Java- and JOSM-codebase-naïve eye it seems generally consistent with an error either retrieving or inserting apikey due to it not being being sent from the server (or, that imagery ID not being present in some internal data structure).

I've been able to add/update other wiki imagery just fine as well as use the imagery from the same URL except with hardcoded API key (locally, not added to wiki ofc). Additionally, I've carefully checked for any other issues in the XML I added, specifically deltas from the previous I copy-pasted and updated that worked fine, but found nothing.

Therefore, opening this ticket so hopefully whoever is able to can make the appropriate change(s) can be made to get this working. Thanks!

Change History (1)

by CAM-Gerlach, 13 months ago

Error dialog shown on attempting to load images

Note: See TracTickets for help on using tickets.