Modify

Opened 7 years ago

Closed 4 years ago

#14102 closed defect (worksforme)

Filter gives error with certain types of tags (key:key=value) and other filter bugs.

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

Description

Add a search for example addr:street=* and the filter complains with the error "Search expression is not valid: Unexpected token: <equals>. If I do just addr=* or street=* it works but doesn't select what I want.

Another but related issue is editing the text directly in the filter window. If I create a filter such as street=* then change it in the text box to addr:street=* it doesn't automatically check to see if it's valid until toggling the hiding filter for example. Then that error pops up. Yet another problem is once it's registered as invalid, the text box disables (greys out and becomes un-editable). Thus need to open the 'edit' window to modify it. It should change colour to notify that it's invalid, but always remain editable.

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-11-06 20:18:38 +0100 (Sun, 06 Nov 2016)
Build-Date:2016-11-06 21:45:03
Revision:11223
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11223 en) Linux Ubuntu 16.10
Memory Usage: 563 MB / 839 MB (288 MB allocated, but free)
Java version: 1.8.0_111-8u111-b14-2ubuntu0.16.10.2-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1366x768, :0.1 1280x1024
Maximum Screen Size: 1366x1024
Java package: openjdk-8-jre:amd64-8u111-b14-2ubuntu0.16.10.2
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
+ public_transport (33088)

Last errors/warnings:
- E: java.io.IOException: Stream closed
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>, Error Body=<Reading error text failed.>
- E: Bad Request - <html>The OSM server 'api.openstreetmap.org' reported a bad request.<br><br>The area you tried to download is too big or your request was too large.<br>Either request a smaller area or use an export file provided by the OSM community.</html>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>
- E: org.openstreetmap.josm.actions.search.SearchCompiler$ParseError: Unexpected token: <equals>

Attachments (0)

Change History (3)

comment:1 by simon04, 7 years ago

Having : in a key/value, you need to wrap the corresponding part in "...": "addr:street"=*
Help/Action/Search could be clearer about that.

in reply to:  1 comment:2 by Klumbumbus, 7 years ago

Replying to simon04:

Help/Action/Search could be clearer about that.

I adjusted the example https://josm.openstreetmap.de/wiki/Help/Action/Search?action=diff&version=46

comment:3 by skyper, 4 years ago

Resolution: worksforme
Status: newclosed

The wiki page was updated.

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.