Modify

Opened 15 years ago

Closed 15 years ago

#3348 closed defect (invalid)

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

Reported by: avarab@… Owned by: team
Priority: normal Milestone:
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 (2)

capitals.osm (237.1 KB ) - added by avarab@… 15 years ago.
World capitals
no-name-is-keys.png (146.5 KB ) - added by avarab@… 15 years ago.
Searching for -"name:is"

Download all attachments as: .zip

Change History (6)

by avarab@…, 15 years ago

Attachment: capitals.osm added

World capitals

comment:1 by Gubaer, 15 years ago

Priority: blockernormal

Not really a blocker. Setting to normal.

comment:2 by Gubaer, 15 years ago

Resolution: worksforme
Status: newclosed

Can't reproduce.

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

Closing. Please reopen if necessary.

in reply to:  2 comment:3 by avarab@…, 15 years ago

Resolution: worksforme
Status: closedreopened

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.

by avarab@…, 15 years ago

Attachment: no-name-is-keys.png added

Searching for -"name:is"

comment:4 by bastiK, 15 years ago

Resolution: invalid
Status: reopenedclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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