Modify

Opened 3 years ago

Last modified 3 years ago

#21301 new defect

Broken format of message for invalid searches

Reported by: skyper Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: template_report search invalid Cc:

Description

What steps will reproduce the problem?

  1. Have some data
  2. In Search Dialog, search for id

What is the expected result?

A well formatted user instruction

What happens instead?

A message with format syntax

screenshot of message

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-09-05 22:35:08 +0200 (Sun, 05 Sep 2021)
Revision:18194
Build-Date:2021-09-05 20:36:08
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18194 en) Linux Debian GNU/Linux 11 (bullseye)
Java version: 17-ea+19-Debian-1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.FlatDarculaLaf
Environment variable LANG: en_US.utf8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME

Plugins:
+ flatlaf (35799)

Last errors/warnings:
- 05514.176 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Range of primitive ids expected
- 05606.709 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
- 05680.388 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Range of primitive ids expected
- 05723.569 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Range of primitive ids expected
- 05790.037 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Range of primitive ids expected
- 06068.318 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Range of primitive ids expected
- 06219.019 W: org.openstreetmap.josm.data.osm.search.SearchParseError: <html>Expecting <code>:</code> after <i>id</i></html>

Attachments (1)

josm_invalid_search_format.jpg (7.9 KB ) - added by skyper 3 years ago.
screenshot of message

Download all attachments as: .zip

Change History (5)

by skyper, 3 years ago

screenshot of message

comment:1 by skyper, 3 years ago

Summary: Broken message format for invalid searchesBroken format of message for invalid searches

comment:2 by Don-vip, 3 years ago

Milestone: 21.09
Owner: changed from team to Don-vip
Priority: normalminor
Status: newassigned

comment:3 by skyper, 3 years ago

It happens with all expression ending with a colon (:) and not just with id.

comment:4 by Don-vip, 3 years ago

Milestone: 21.09
Owner: changed from Don-vip to team
Status: assignednew

Mmm seems to be a side effect of r16306.. Will check that later.

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 skyper.
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.