Modify

Opened 4 years ago

Last modified 4 years ago

#19462 new enhancement

Complain about addr:housename matching addr:housenumber and differing solely by capitalization

Reported by: mkoniecz Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Create closed way
  2. Add to it addr:housename=2D and addr:housenumber=2d
  3. Run validator

What is the expected result?

Validator complains that addr:housename and addr:housenumber are suspiciously similar.

What happens instead?

Nothing. Note that in case of exact match validator complains already.

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

triggered by https://www.openstreetmap.org/way/283874017/history

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-06-13 13:23:27 +0200 (Sat, 13 Jun 2020)
Revision:16613
Build-Date:2020-06-14 01:30:46
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16613 en_GB) Linux Ubuntu 20.04 LTS
Memory Usage: 274 MB / 976 MB (128 MB allocated, but free)
Java version: 11.0.7+10-post-Ubuntu-3ubuntu1, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
Java package: openjdk-11-jre:amd64-11.0.7+10-3ubuntu1
Java ATK Wrapper package: libatk-wrapper-java:all-0.37.1-1
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:-
Dataset consistency test: No problems found

Plugins:
+ buildings_tools (35474)
+ measurement (35405)
+ reverter (35487)
+ todo (30306)

Attachments (0)

Change History (1)

comment:1 by Klumbumbus, 4 years ago

Hm. It seems the combination of "de-referencing" * and flags is not yet supported via mapcss. I tried

*[a][b][a =~ */(?i)b/] {
    throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
    assertMatch: "node a=1 b=1";
    assertMatch: "node a=1a b=1A";
    assertNoMatch: "node a=1 b=2";
}

but JOSM throws a NPE.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to mkoniecz.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.