Changeset 19195 in josm for trunk/resources


Ignore:
Timestamp:
2024-08-14T19:44:54+02:00 (4 months ago)
Author:
taylor.smock
Message:

Fix #23860: Duplicate key+value in preset causes an ISE in TagChecker

This fixes the actual issue in TagChecker, but also adds a sanity check to
TaggingPresetPreferenceTestIT since it is usually unintended to have
duplicate key/values (and it is always a problem if they are different and are
Key items).

The fix for TagChecker is just keeping whatever value is last. Not ideal, but
it should work 99% of the time since an object won't match the preset if we have
highway=footway and highway=footway2 as Key objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r19193 r19195  
    32733273                <check key="ferry:cable" text="Reaction ferry" />
    32743274                <space />
    3275                 <reference ref="oh" />
    32763275                <reference ref="public_transport_route_optionals" />
    32773276                <reference ref="pt_route_opt2" />
     
    38093808            </checkgroup>
    38103809            <combo key="sanitary_dump_station" text="Dump Station" values="yes,public,customers,no" />
    3811             <reference ref="wheelchair" />
    38123810            <reference ref="internet" />
    38133811            <space />
     
    69836981                <combo key="generator:type" text="Generator Type" values_searchable="true">
    69846982                    <list_entry value="bioreactor" short_description="gasification" />
     6983                    <list_entry value="boiler" short_description="" />
    69856984                    <list_entry value="pyrolysis" short_description="" />
    69866985                    <list_entry value="reciprocating_engine" short_description="combustion" />
    69876986                    <list_entry value="steam_generator" short_description="combustion" />
    69886987                </combo>
    6989                 <combo key="generator:type" text="Generator Type" values="bioreactor,boiler,reciprocating_engine,steam_generator" />
    69906988                <reference ref="power_output" />
    69916989            </item> <!-- Waste Power Generator -->
Note: See TracChangeset for help on using the changeset viewer.