Modify

Ticket #3348 (closed defect: invalid)

Opened 3 years ago

Last modified 2 years ago

Negating search doesn't work when searching for a key with a colon in it

Reported by: avar Owned by: team
Priority: normal Component: Core
Version: latest Keywords:
Cc:

Description

...at least that's the case I tried out. Load up the attached .osm file and try searching for:

  • "name:is"=* ==> Paris is selected
  • -"name:is"=* ==> Paris is still selected even though it has a name:is key
  • "name:is$": and -"name:is$": under regex search show the same problem

It's like the tag is there but for some reason JOSM doesn't notice.

Attachments

capitals.osm (237.1 KB) - added by avar 3 years ago.
World capitals
no-name-is-keys.png (146.5 KB) - added by avar 3 years ago.
Searching for -"name:is"

Change History

Changed 3 years ago by avar

World capitals

comment:1 Changed 3 years ago by Gubaer

  • Priority changed from blocker to normal

Not really a blocker. Setting to normal.

comment:2 follow-up: ↓ 3 Changed 3 years ago by Gubaer

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

Can't reproduce.

  • "name:is" -> Paris is selected, as expected
  • -"name:is" -> Paris is not selected, as expected

Closing. Please reopen if necessary.

comment:3 in reply to: ↑ 2 Changed 3 years ago by avar

  • Status changed from closed to reopened
  • Resolution worksforme deleted

Replying to Gubaer:

Can't reproduce.

  • "name:is" -> Paris is selected, as expected
  • -"name:is" -> Paris is not selected, as expected

Closing. Please reopen if necessary.

Still fails for me:

  1. Open this file in r2021
  2. Search for "name:is" --> 30 nodes are selected, including Paris
  3. Search for -"name:is" --> 171 nodes & 28 relations are selected, including Paris

When I search for -"name:is" type:node however Paris isn't selected.

Also when I search for -"name:is" Paris doesn't show up in the selection list. And if I delete those 171 nodes it selects Paris is left behind. But there's still a red square around it indicating selection. I tried zooming in and out to see if it was a mappaint bug but the selection box doesn't go away.

Screenshot attached.

Changed 3 years ago by avar

Searching for -"name:is"

comment:4 Changed 2 years ago by bastiK

  • Status changed from reopened to closed
  • Resolution set to invalid

If you search for -"name:is" it finds the relation nation ("French Republic"). When selecting a relation the members are highlighted on the map. The node Paris is one of the members so it seems as if it is selected.

View

Add a 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.