Ticket #3348 (closed defect: invalid)
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
Change History
Changed 3 years ago by avar
- Attachment capitals.osm added
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:
- Open this file in r2021
- Search for "name:is" --> 30 nodes are selected, including Paris
- 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.
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.



World capitals